summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-08-09 17:46:04 -0700
committerDavid S. Miller <davem@davemloft.net>2017-08-11 13:59:42 -0700
commit5e20d55a23a76a876396ba1235bdf019e74d0c6f (patch)
tree6e63a1a4e1f9b0789c2c71839569d13d8d068938 /drivers/net/hyperv/netvsc.c
parent6123c66854c174e4982f98195100c1d990f9e5e6 (diff)
downloadtalos-op-linux-5e20d55a23a76a876396ba1235bdf019e74d0c6f.tar.gz
talos-op-linux-5e20d55a23a76a876396ba1235bdf019e74d0c6f.zip
netvsc: don't signal host twice if empty
When hv_pkt_iter_next() returns NULL, it has already called hv_pkt_iter_close(). Calling it twice can lead to extra host signal. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r--drivers/net/hyperv/netvsc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index bffaf93d3cb0..b5fc8fb56b88 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -1191,10 +1191,6 @@ int netvsc_poll(struct napi_struct *napi, int budget)
nvchan->desc = hv_pkt_iter_next(channel, nvchan->desc);
}
- /* if ring is empty, signal host */
- if (!nvchan->desc)
- hv_pkt_iter_close(channel);
-
/* If send of pending receive completions suceeded
* and did not exhaust NAPI budget this time
* and not doing busy poll
OpenPOWER on IntegriCloud