diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-22 02:31:34 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-22 02:31:34 +0000 |
commit | d706f6e60da883d9f53673ab80472054084a6874 (patch) | |
tree | 4ad2c1df68c3b1e0c7955aedce2af05fed7d8017 /sys/dev/pv | |
parent | b0eb8a595f64a2929cf0dd38d15f81641f0f5517 (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/pv')
-rw-r--r-- | sys/dev/pv/if_vio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c index e362e0df30c..a96b96b68ba 100644 --- a/sys/dev/pv/if_vio.c +++ b/sys/dev/pv/if_vio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vio.c,v 1.16 2019/12/31 10:05:33 mpi Exp $ */ +/* $OpenBSD: if_vio.c,v 1.17 2020/06/22 02:31:33 dlg Exp $ */ /* * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. @@ -1039,7 +1039,9 @@ vio_rxeof(struct vio_softc *sc) m_freem(m0); } - if_input(ifp, &ml); + if (ifiq_input(&ifp->if_rcv, &ml)) + if_rxr_livelocked(&sc->sc_rx_ring); + return r; } |