Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp40750imm; Thu, 7 Jun 2018 13:25:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqc2PgkUBeXMhOMIRE4ptnPCqqaQFas7Y45Ho7eYRthBKiSWZIblnrOue+n0yV2NeqVKpk X-Received: by 2002:a62:6a46:: with SMTP id f67-v6mr3070356pfc.105.1528403152532; Thu, 07 Jun 2018 13:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528403152; cv=none; d=google.com; s=arc-20160816; b=ijkKyxarXIrKoa8DFhivrNwkIduBjvtxstIc3PBE38GZDCg9fJ24KwN8HVyaLd2ehH Cpg8O/aLgY0Iv1T6meLliAE03FXFPP30iABive89P+VjnphxxLJZeX8mYtf65+zn94ot Xv79eriyB9pQ0svggR21iDnnUodMJw9vK40BTyFDocWHGwGiEMfxzO0+kZaR9YPWPmU0 pHT3zA/ZBngybIDJV2xho04xhIPnRGuauZVonyXkdK0yeiQLq9XUK47kxjKNPC4kTXPS Pp+PArKWSSa97nbvF9JUZgsyQ6Q5Hym8MCXr8bSZbIGVtiLNAW3B+Zq4gQmZoIzN7mlS zKvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=3xkhFwR4y9WRZ/DCq7NJvjOywvhzNz53ZcGmSEdR2QY=; b=slFUQa9HwKRnHP+ouwS3Xrj7HFMwe47ktZScNwuDhoelfQASNO3YD3xKMvfggDhO/k BOIcVnEs+vQ5v2Z8VD8LTnr5znpO/b+tPswEJ4CXLN2embzfvqmsq1wwnvtBgEseehTv C23HTRV3kDWMLFl+e2mkVCJdantmI4RB1+toIoE6N1Cdk2UqjB7Az+uGAICT2KdHsnEX PFlZIwgpfHb1fud4j//l3OK0L01qnU2LlIAKUkL4KTBOVZ3gHn+PLAtJMQLu5o1tiYRV V9TIDy8yCv3zZcYYnQ//xV311GBsVN7+RlSaeyJiijzGdhW4iokRjqMPY4+Ojn8DNNqk aBeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14-v6si32002601ply.102.2018.06.07.13.25.38; Thu, 07 Jun 2018 13:25:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932463AbeFGUYw (ORCPT + 99 others); Thu, 7 Jun 2018 16:24:52 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:33930 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932212AbeFGUYs (ORCPT ); Thu, 7 Jun 2018 16:24:48 -0400 Received: from localhost (unknown [66.187.232.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5876410870464; Thu, 7 Jun 2018 13:24:45 -0700 (PDT) Date: Thu, 07 Jun 2018 16:24:43 -0400 (EDT) Message-Id: <20180607.162443.917679158498262601.davem@davemloft.net> To: decui@microsoft.com Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, netdev@vger.kernel.org, devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, vkuznets@redhat.com, marcelo.cerri@canonical.com, jopoulso@microsoft.com, Stephen.Zarkos@microsoft.com Subject: Re: [PATCH v2] hv_netvsc: Fix a network regression after ifdown/ifup From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 07 Jun 2018 13:24:48 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dexuan Cui Date: Wed, 6 Jun 2018 21:32:51 +0000 > > Recently people reported the NIC stops working after > "ifdown eth0; ifup eth0". It turns out in this case the TX queues are not > enabled, after the refactoring of the common detach logic: when the NIC > has sub-channels, usually we enable all the TX queues after all > sub-channels are set up: see rndis_set_subchannel() -> > netif_device_attach(), but in the case of "ifdown eth0; ifup eth0" where > the number of channels doesn't change, we also must make sure the TX queues > are enabled. The patch fixes the regression. > > Fixes: 7b2ee50c0cd5 ("hv_netvsc: common detach logic") > Signed-off-by: Dexuan Cui Applied and queued up for -stable.