diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-11-24 21:28:54 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-11-24 21:28:54 +0000 |
commit | 2cedfc3f7eb58c8a3d35de226c63066946d9beb0 (patch) | |
tree | 25b6a32825a31ee040d49bc435f4c723d8886518 /sys/net | |
parent | 35b12b8711d0d20f9aba77d7f62cffa59e625b7a (diff) | |
download | src-2cedfc3f7eb58c8a3d35de226c63066946d9beb0.tar.gz src-2cedfc3f7eb58c8a3d35de226c63066946d9beb0.zip |
if_epair: ifdef vars only used with ALTQ
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_epair.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 89483db46337..699d74ee4fb4 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -271,8 +271,11 @@ epair_transmit(struct ifnet *ifp, struct mbuf *m) { struct epair_softc *sc; struct ifnet *oifp; - int error, len; + int error; +#ifdef ALTQ + int len; short mflags; +#endif if (m == NULL) return (0); @@ -309,10 +312,11 @@ epair_transmit(struct ifnet *ifp, struct mbuf *m) m_freem(m); return (0); } + +#ifdef ALTQ len = m->m_pkthdr.len; mflags = m->m_flags; -#ifdef ALTQ /* Support ALTQ via the classic if_start() path. */ IF_LOCK(&ifp->if_snd); if (ALTQ_IS_ENABLED(&ifp->if_snd)) { |