diff options
Diffstat (limited to 'sys/arch/sparc/dev/qe.c')
-rw-r--r-- | sys/arch/sparc/dev/qe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c index 0da22b6e595..8251d544311 100644 --- a/sys/arch/sparc/dev/qe.c +++ b/sys/arch/sparc/dev/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.46 2015/11/24 17:11:38 mpi Exp $ */ +/* $OpenBSD: qe.c,v 1.47 2015/11/25 03:09:58 dlg Exp $ */ /* * Copyright (c) 1998, 2000 Jason L. Wright. @@ -192,7 +192,7 @@ qestart(ifp) struct mbuf *m; int bix, len; - if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING) + if (!(ifp->if_flags & IFF_RUNNING) || ifq_is_oactive(&ifp->if_snd)) return; bix = sc->sc_last_td; @@ -228,7 +228,7 @@ qestart(ifp) bix = 0; if (++sc->sc_no_td == QE_TX_RING_SIZE) { - ifp->if_flags |= IFF_OACTIVE; + ifq_set_oactive(&ifp->if_snd); break; } } @@ -355,8 +355,8 @@ qe_tint(sc) */ if (sc->sc_first_td != bix) { sc->sc_first_td = bix; - if (ifp->if_flags & IFF_OACTIVE) { - ifp->if_flags &= ~IFF_OACTIVE; + if (ifq_is_oactive(&ifp->if_snd)) { + ifq_clr_oactive(&ifp->if_snd); qestart(ifp); } } @@ -717,7 +717,7 @@ qeinit(sc) i = mr->mpc; /* cleared on read */ ifp->if_flags |= IFF_RUNNING; - ifp->if_flags &= ~IFF_OACTIVE; + ifq_clr_oactive(&ifp->if_snd); mr->maccc = QE_MR_MACCC_ENXMT | QE_MR_MACCC_ENRCV | ((ifp->if_flags & IFF_PROMISC) ? QE_MR_MACCC_PROM : 0); |