diff options
author | 2014-07-08 00:11:50 +0000 | |
---|---|---|
committer | 2014-07-08 00:11:50 +0000 | |
commit | 9f7246cf080a61a0add1a65f5f6342f98c84e69a (patch) | |
tree | da5584d4c8fc05b0a619b31c2cef70cd5f03ec91 | |
parent | if em encounters a heavilty fragmented packet, it can (will) stall the (diff) | |
download | wireguard-openbsd-9f7246cf080a61a0add1a65f5f6342f98c84e69a.tar.xz wireguard-openbsd-9f7246cf080a61a0add1a65f5f6342f98c84e69a.zip |
em_rxeof is only called from em_intr, and only if IFF_RUNNING is
set. em_rxeof doesnt have to check that flag again.
-rw-r--r-- | sys/dev/pci/if_em.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index ceb3720ac78..fa0feea0175 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.281 2014/07/07 23:12:00 dlg Exp $ */ +/* $OpenBSD: if_em.c,v 1.282 2014/07/08 00:11:50 dlg Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -2850,9 +2850,6 @@ em_rxeof(struct em_softc *sc) ifp = &sc->interface_data.ac_if; - if (!ISSET(ifp->if_flags, IFF_RUNNING)) - return; - i = sc->next_rx_desc_to_check; while (sc->rx_ndescs > 0) { |