diff options
author | 2019-08-06 07:21:29 +0000 | |
---|---|---|
committer | 2019-08-06 07:21:29 +0000 | |
commit | 3867ce6a490f459643b1092b19785bac76a0e34e (patch) | |
tree | 076c780bb3210f1addae907fe1ef2a793a82f233 | |
parent | Resolve some minor nits in diskmapioctl(): (diff) | |
download | wireguard-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.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]; |