diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-22 02:27:05 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-22 02:27:05 +0000 |
commit | b0eb8a595f64a2929cf0dd38d15f81641f0f5517 (patch) | |
tree | 6f4a75d69eee8b24fe89d6375d8d502ced8dca8b /sys/dev/ic/hme.c | |
parent | 9eae6da0e733d1ed416f4c846f6dcb696a48f41b (diff) |
use ifiq_input and use it's return value to apply backpressure to rxrs.
this is a step toward deprecating softclock based livelock detection.
Diffstat (limited to 'sys/dev/ic/hme.c')
-rw-r--r-- | sys/dev/ic/hme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index 9ab36cf07a3..fd536dadd0d 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.81 2017/01/22 10:17:38 dlg Exp $ */ +/* $OpenBSD: hme.c,v 1.82 2020/06/22 02:27:04 dlg Exp $ */ /* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */ /*- @@ -844,7 +844,8 @@ hme_rint(struct hme_softc *sc) ml_enqueue(&ml, m); } - if_input(ifp, &ml); + if (ifiq_input(&ifp->if_rcv, &ml)) + if_rxr_livelocked(&sc->sc_rx_ring); sc->sc_rx_cons = ri; hme_fill_rx_ring(sc); |