diff options
Diffstat (limited to 'sys/dev/isa/if_el.c')
-rw-r--r-- | sys/dev/isa/if_el.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index 9cc69f33a40..c2128770433 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_el.c,v 1.30 2015/11/24 17:11:39 mpi Exp $ */ +/* $OpenBSD: if_el.c,v 1.31 2015/11/25 03:09:59 dlg Exp $ */ /* $NetBSD: if_el.c,v 1.39 1996/05/12 23:52:32 mycroft Exp $ */ /* @@ -272,7 +272,7 @@ elinit(sc) /* Set flags appropriately. */ ifp->if_flags |= IFF_RUNNING; - ifp->if_flags &= ~IFF_OACTIVE; + ifq_clr_oactive(&ifp->if_snd); /* And start output. */ elstart(ifp); @@ -296,12 +296,12 @@ elstart(ifp) s = splnet(); /* Don't do anything if output is active. */ - if ((ifp->if_flags & IFF_OACTIVE) != 0) { + if (ifq_is_oactive(&ifp->if_snd) != 0) { splx(s); return; } - ifp->if_flags |= IFF_OACTIVE; + ifq_set_oactive(&ifp->if_snd); /* * The main loop. They warned me against endless loops, but would I @@ -384,7 +384,7 @@ elstart(ifp) (void)inb(iobase+EL_AS); outb(iobase+EL_AC, EL_AC_IRQE | EL_AC_RX); - ifp->if_flags &= ~IFF_OACTIVE; + ifq_clr_oactive(&ifp->if_snd); splx(s); } |