diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-06 07:21:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-06 07:21:30 +0000 |
commit | 8196b1c96833423ea3c0d8c1905a8f7c67ff01b3 (patch) | |
tree | 0d200b721e1e3a489dbd3ff5ab5bc809887f6cda | |
parent | 26c3391758b5c6627f2788b54f3f54ad227ec7f3 (diff) |
use ifiq_input so we can call if_rxr_livelocked to apply backpressure
-rw-r--r-- | sys/dev/pci/if_vmx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c index 953a6e5e86a..46ce9619aca 100644 --- a/sys/dev/pci/if_vmx.c +++ b/sys/dev/pci/if_vmx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vmx.c,v 1.45 2017/01/22 10:17:38 dlg Exp $ */ +/* $OpenBSD: if_vmx.c,v 1.46 2019/08/06 07:21:29 dlg Exp $ */ /* * Copyright (c) 2013 Tsubai Masanari @@ -785,7 +785,8 @@ skip_buffer: } } - if_input(ifp, &ml); + if (ifiq_input(&ifp->if_rcv, &ml)) + if_rxr_livelocked(&ring->rxr); /* XXX Should we (try to) allocate buffers for ring 2 too? */ ring = &rq->cmd_ring[0]; |