From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754054AbdKMRW7 (ORCPT ); Mon, 13 Nov 2017 12:22:59 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:54564 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753988AbdKMRW4 (ORCPT ); Mon, 13 Nov 2017 12:22:56 -0500 X-Google-Smtp-Source: AGs4zMazzXRkylaWJRbmKGRyDn+iQHcmAN/LnJt1VAbUlhRM8u0bCCiRHnqRecscxwo+h13JUWiZsA== Date: Mon, 13 Nov 2017 09:22:53 -0800 From: Stephen Hemminger To: Vitaly Kuznetsov Cc: David Miller , Stephen Hemminger , eric.dumazet@gmail.com, netdev@vger.kernel.org, haiyangz@microsoft.com, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org Subject: Re: [RFC] hv_netvsc: safer orderly shutdown Message-ID: <20171113092253.68dd8ae1@xeon-e3> In-Reply-To: <87ineebg44.fsf@vitty.brq.redhat.com> 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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.