summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-08-06 07:21:29 +0000
committerdlg <dlg@openbsd.org>2019-08-06 07:21:29 +0000
commit3867ce6a490f459643b1092b19785bac76a0e34e (patch)
tree076c780bb3210f1addae907fe1ef2a793a82f233
parentResolve some minor nits in diskmapioctl(): (diff)
downloadwireguard-openbsd-3867ce6a490f459643b1092b19785bac76a0e34e.tar.xz
wireguard-openbsd-3867ce6a490f459643b1092b19785bac76a0e34e.zip
use ifiq_input so we can call if_rxr_livelocked to apply backpressure
-rw-r--r--sys/dev/pci/if_vmx.c5
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];