From: K. Y. Srinivasan Date: Sat, 25 Mar 2017 03:54:36 +0000 (-0700) Subject: netvsc: Fix a bug in sub-channel handling X-Git-Tag: v4.14-rc1~960^3~337^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1dd90cea725f794185a66c4e4ccfd4fb84632b5;p=platform%2Fkernel%2Flinux-rpi.git netvsc: Fix a bug in sub-channel handling All netvsc channels are handled via NAPI. Setup the "read mode" correctly for the netvsc sub-channels. Signed-off-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 91b3bcf..98358252 100644 --- a/drivers/net/hyperv/rndis_filter.c +++ b/drivers/net/hyperv/rndis_filter.c @@ -1002,6 +1002,11 @@ static void netvsc_sc_open(struct vmbus_channel *new_sc) if (!nvchan->mrc.buf) return; + /* Because the device uses NAPI, all the interrupt batching and + * control is done via Net softirq, not the channel handling + */ + set_channel_read_mode(new_sc, HV_CALL_ISR); + ret = vmbus_open(new_sc, nvscdev->ring_size * PAGE_SIZE, nvscdev->ring_size * PAGE_SIZE, NULL, 0, netvsc_channel_cb, nvchan);