Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2005118imm; Thu, 24 May 2018 04:22:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpIV6pTNxGAwt7gvdfWoTzLnp0tbypaiwZrhYb+u3b3NID+yGtn7jYom6eQQr3zR8JUvHOy X-Received: by 2002:a63:6096:: with SMTP id u144-v6mr5499335pgb.433.1527160968186; Thu, 24 May 2018 04:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527160968; cv=none; d=google.com; s=arc-20160816; b=ijA1Y5Ce3m8LdjhPwKyoawz3vkvPgzX5JjlU1jj7t2cXe6SX76k/p6bSCEvz0xxYiU SiWPxZ2bKYUF1iycfA9Puk64Z1VtU9opRti3wc/kc3VxlPJ7N4qjs3cDtCGgrDhx2Yla ay4IqK7G9+ylEf/JKRpwulqqjL2IwH5sqXI1rb26S7ES7YfwHB6cZQQaWvcx6SD33Cgq Kz+BkfZlK8GiJXxQS/3xf8lTwVrWd9qLwPb8o7UO3o7SlV6/WVNB5qIFCcTRV3fWX5I7 eAt7qLZc52CLWn4NDyAxNz8v2AMcRd8UvxCoTl4q6NG3Fx78OcqNp+sED0ikqccYpXvK OU+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=uAZ3It/JZ76SgZ+0T4D4AeM6VfC7WprYp6BPc2lE2PM=; b=iUkGYlLS27Epcs9Fhl8mju2/wqpPheIzyDllLN39M11o1qbYqvcU/icqHTIwiLLTQW SnIeonlUlL9cLd/PoGRND+knJFvKPxTy5K5n3PRR/XKZjhTyzPwNJv9FuQ9Ed8H9K+z2 tSCagfS1W0/cZAoIEODu1OTZ2J2xN+RuVEmkNHB70u7U21ei7Y+6Gef+k2s+6VBTdz7j MoqnvQpYrUwsweMiDqBZZyD12sw0Z7ZvvbQ4ozJLkQjDb5YXjAl7v35WbyOJ5doYrdid 42N8AIhg7j0gqPQ+Qw2ssnHj/mJ3rzUW04NzAvkTKqxPUAmMr5FwtBXHrrsINTb1o0Yo 4P6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BeFAYHqR; 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 c12-v6si16633170pgq.162.2018.05.24.04.22.33; Thu, 24 May 2018 04:22:48 -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; dkim=pass header.i=@kernel.org header.s=default header.b=BeFAYHqR; 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 S967857AbeEXJwY (ORCPT + 99 others); Thu, 24 May 2018 05:52:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:50374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967380AbeEXJwL (ORCPT ); Thu, 24 May 2018 05:52:11 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3EA0120847; Thu, 24 May 2018 09:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155530; bh=bnGO93YK/0mkMRHBuwkj2/k+JCSA1/oGQypIkqA3/nA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BeFAYHqRQr00kO/piX5Tkaul2uIEOheDEJiFcl7i1lssqttcI2/SqJmzwWvZecI6k qfN6w7LCvJ5RPgvEoTRUf7kCjKKL0zSXgrCKZkPsf5HEZdg8K+NWrQ2txZlikSF3me 4OeHMB77/KIPYF70p1YWRMdbRn72A1XY1Rd6+Fs0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Hemminger , "David S. Miller" Subject: [PATCH 4.14 022/165] hv_netvsc: only wake transmit queue if link is up Date: Thu, 24 May 2018 11:37:08 +0200 Message-Id: <20180524093622.877633496@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stephen Hemminger [ Commit f4950e4586dfc957e0a28226eeb992ddc049b5a2 upstream. ] Don't wake transmit queues if link is not up yet. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/hyperv/netvsc_drv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -88,12 +88,11 @@ static int netvsc_open(struct net_device return ret; } - netif_tx_wake_all_queues(net); - rdev = nvdev->extension; - - if (!rdev->link_state) + if (!rdev->link_state) { netif_carrier_on(net); + netif_tx_wake_all_queues(net); + } if (vf_netdev) { /* Setting synthetic device up transparently sets