From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC] hv_netvsc: safer orderly shutdown Date: Mon, 13 Nov 2017 09:22:53 -0800 Message-ID: <20171113092253.68dd8ae1@xeon-e3> References: <20171102103531.5514-1-vkuznets@redhat.com> <20171108.103105.142249724388345463.davem@davemloft.net> <20171110125342.7aa7943c@shemminger-XPS-13-9360> <87k1yyjty6.fsf@vitty.brq.redhat.com> <87ineebg44.fsf@vitty.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , eric.dumazet@gmail.com, netdev@vger.kernel.org, haiyangz@microsoft.com, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, David Miller To: Vitaly Kuznetsov Return-path: In-Reply-To: <87ineebg44.fsf@vitty.brq.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" List-Id: netdev.vger.kernel.org On Mon, 13 Nov 2017 11:57:47 +0100 Vitaly Kuznetsov wrote: > Stephen Hemminger writes: > > > > > The NAPI disable is already handled by rndis close. > > Sorry, but I'm probably missing something: I can only see > netif_napi_del() call in netvsc_device_remove() but this happens much > later. And I don see us doing napi_disable() anywhere on the path. > But I'm probably missing something. > You need to keep NAPI running to handle transmit completions. Disabling the Tx and Rx filter should keep spurious activity away until the halt is done.