Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp797843ybb; Thu, 28 Mar 2019 12:22:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHyD/KdUoxYO9SmOmBDVX/fJtVRIBGeT57P7kmwqtTW9k0rnSzMAktEoAm3RtRvt8pc+zi X-Received: by 2002:a17:902:b948:: with SMTP id h8mr15427065pls.39.1553800955231; Thu, 28 Mar 2019 12:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553800955; cv=none; d=google.com; s=arc-20160816; b=KJsgUbiMiZ1PeKO7Y8k45S4SL1dk5wfdQ848hTPkFAfrqiX3hBTseOtc19dRbkcNuh 6Y0W30zQpeHcVs+OVjPG6mK7wCBwyq/cTvC8uqfwPcvAarMJdMFBGzhfRqEamz+pcTG/ EMVMgDBQj27YLX9o4wm9/h2pQzFHfRxi1i8Omkd01BH8Lb/pF4awwtliAY4GHxQ2tiWp s0AbAA901HpFAMZqTvYI2P6DIf6M5sb4IlHiYav+t1dXfxEfe5H83Tx1PKNhel7Wdu1Y cE8azAw7v4CVe8rYl/3qfu6wnPRRYKdUA5pQsjtveV0k01g0lFasNC8OL3mih68ohxyu j/WA== 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; bh=iSDjMIi59am54YTgwCRi2e4iHmjjZ7+a5hrj83m1/to=; b=EiPb8DGq6DIucB3wi4Mr1Dz3UZ5yPENZPpnwGXKxCknAv35lrC/lNJP6dd+lbDPQWN bUHPQUYkWNQh5+KNS3JkxEGcQ+Te81al/NPJIiREKy4eEMlCowhqPZ5Qr/p7BEwUvEBT VG6g4OM3559OnyJqpU78i9ZSKIkF/HmLq9Ugw2Cvw8KXdsjO36b/H+Yyj4KNOUkAFRQD OeboiBLC2yrMkqa3JuX1mzE3D696+jNZCXUCLq6bF9figbLZg8ICVsvkx/Lg+E9avs8s /uZdDQe4GU4jqVMqWGRxpUfzGt52GSCaw4WzHeLB++cBDQatGMp4z7nBn7Fa+MJhXqZ0 bVDw== 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 59si23076999plc.84.2019.03.28.12.22.19; Thu, 28 Mar 2019 12:22:35 -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 S1726195AbfC1TVo (ORCPT + 99 others); Thu, 28 Mar 2019 15:21:44 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:52728 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC1TVo (ORCPT ); Thu, 28 Mar 2019 15:21:44 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (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 7F7F0108607D1; Thu, 28 Mar 2019 12:21:43 -0700 (PDT) Date: Thu, 28 Mar 2019 12:21:40 -0700 (PDT) Message-Id: <20190328.122140.386564208141305518.davem@davemloft.net> To: haiyangz@linuxonhyperv.com Cc: sashal@kernel.org, linux-hyperv@vger.kernel.org, haiyangz@microsoft.com, kys@microsoft.com, sthemmin@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH hyperv-fixes] hv_netvsc: Fix unwanted wakeup after tx_disable From: David Miller In-Reply-To: <20190328174845.4799-1-haiyangz@linuxonhyperv.com> References: <20190328174845.4799-1-haiyangz@linuxonhyperv.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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, 28 Mar 2019 12:21:43 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haiyang Zhang Date: Thu, 28 Mar 2019 17:48:45 +0000 > diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c > index 1a08679..0824155 100644 > --- a/drivers/net/hyperv/netvsc_drv.c > +++ b/drivers/net/hyperv/netvsc_drv.c > @@ -109,6 +109,15 @@ static void netvsc_set_rx_mode(struct net_device *net) > rcu_read_unlock(); > } > > +static inline void netvsc_tx_enable(struct netvsc_device *nvscdev, > + struct net_device *ndev) Do not use inline in foo.c files, let the compiler decide. > @@ -184,6 +193,17 @@ static int netvsc_wait_until_empty(struct netvsc_device *nvdev) > } > } > > +static inline void netvsc_tx_disable(struct netvsc_device *nvscdev, > + struct net_device *ndev) > +{ Likewise.