diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-03-01 09:45:41 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-03-01 09:45:41 +0000 |
commit | 8b18066adb684e14a24bbf162082713266c76e62 (patch) | |
tree | 38390cabf1277e12ecc5acffe687f03d04dcecf5 /sys/dev/pci | |
parent | e56626b56353fec1c12116c82618a7fc3bcd189c (diff) |
use ifiq_input instead of if_input
call if_rxr_livelocked if ifiq_input says to slow down
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ixl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c index 2c938e584de..ae7389540e4 100644 --- a/sys/dev/pci/if_ixl.c +++ b/sys/dev/pci/if_ixl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ixl.c,v 1.23 2019/02/26 23:12:58 dlg Exp $ */ +/* $OpenBSD: if_ixl.c,v 1.24 2019/03/01 09:45:40 dlg Exp $ */ /* * Copyright (c) 2013-2015, Intel Corporation @@ -2709,8 +2709,9 @@ ixl_rxeof(struct ixl_softc *sc, struct ifiqueue *ifiq) if (done) { rxr->rxr_cons = cons; + if (ifiq_input(ifiq, &ml)) + if_rxr_livelocked(&rxr->rxr_acct); ixl_rxfill(sc, rxr); - if_input(ifp, &ml); } bus_dmamap_sync(sc->sc_dmat, IXL_DMA_MAP(&rxr->rxr_mem), |