From: stephen hemminger Date: Thu, 10 Aug 2017 00:46:04 +0000 (-0700) Subject: netvsc: don't signal host twice if empty X-Git-Tag: v4.14-rc1~130^2~288^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e20d55a23a76a876396ba1235bdf019e74d0c6f;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index bffaf93..b5fc8fb 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