hv_netvsc: use napi_schedule_irqoff
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 Mar 2018 21:49:06 +0000 (13:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 03:18:20 +0000 (22:18 -0500)
Since the netvsc_channel_cb is already called in interrupt
context from vmbus, there is no need to do irqsave/restore.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c

index 4237cedc4f0851d135c68d6251ca7d941b741dc2..0265d703eb030515dacab7a83e84c169f89250dd 100644 (file)
@@ -1233,7 +1233,7 @@ void netvsc_channel_cb(void *context)
                /* disable interupts from host */
                hv_begin_read(rbi);
 
-               __napi_schedule(&nvchan->napi);
+               __napi_schedule_irqoff(&nvchan->napi);
        }
 }