Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967127AbdCYD4B (ORCPT ); Fri, 24 Mar 2017 23:56:01 -0400 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:39892 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966875AbdCYDzr (ORCPT ); Fri, 24 Mar 2017 23:55:47 -0400 x-originating-ip: 107.180.71.197 From: kys@exchange.microsoft.com To: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, leann.ogasawara@canonical.comi, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: "K. Y. Srinivasan" Subject: [PATCH net-next 1/2] netvsc: Fix a bug in sub-channel handling Date: Fri, 24 Mar 2017 20:54:36 -0700 Message-Id: <1490414077-12617-1-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1490414048-12578-1-git-send-email-kys@exchange.microsoft.com> References: <1490414048-12578-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfLshEMs3UZY5jBaaLByJ5YMTYenF1HfCbDnMEwkfF1ZVrHvDy5g8bGuBlfk+P03VC9NDA/kAwqCovslfv2Km9L+BxFheVsFQHX/6Vlt0d/Hff4ONn5Hz KvqHVHsDr85DmBWaLzH4gBBqILe3UXHMgjSm83smCvGzlBq40cOZvEoA5rXa35kIUtLJyY4y/yj/n77kRdc/WHamGdV4Bn0sxEpXwDf4bdfw3DN47k6oQb3N VkKSpBemm7+sIDAQo9BqipeqtjEtdm61Z3d6t9PXPLsdIHMl27aIfb0IhZ57+TGQa15Uxp9wf1u8Gj5iKcNia0qu9f8norOd3ov7w6h1VDy0O5KiWt9cteVx //pGrtMn2IGYzFrLgHKeA+4OqmfVX1YmUUgpugr3EKuvKCDpzxjY0nW2KRchDZnPXlbIuCRocPpuQIZFNm0LQec2kKdTTlqK1BLDdX654rNcbzdRN/fMApic uhZPwDD60QPVAd6MK76UN21fvGgBw4IUF3CC3JymGcMagcvtk5zEGMfaskU= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 28 From: K. Y. Srinivasan All netvsc channels are handled via NAPI. Setup the "read mode" correctly for the netvsc sub-channels. Signed-off-by: K. Y. Srinivasan --- drivers/net/hyperv/rndis_filter.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c index 91b3bcf..9835825 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); -- 1.7.1