Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp80491ybz; Tue, 21 Apr 2020 15:43:35 -0700 (PDT) X-Google-Smtp-Source: APiQypKz/KxG2kMC2G3nEr2RN/gRtG7SQ/o26kgx2fuJ+moUP51WTxvvazKHxIYHS9ajotsMU3Ai X-Received: by 2002:a17:906:ca49:: with SMTP id jx9mr22542092ejb.246.1587509015256; Tue, 21 Apr 2020 15:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587509015; cv=none; d=google.com; s=arc-20160816; b=dSa+2GKXkQxoAUlI/Hg9YlJE53pd2owh35k/IboMbjnwQ/L+dMYKd+n2zc5d+p51yX ELGqGyTZ7bqDbb2YNL5/Ja7m4qupFXr8SwoHsbo6LbeWHxIzKhD1QL4ztJ9XLaxpaqN5 ymn8W0Xg01iChb+6ISWyROtA1YKLthENc3TP65MH0o+OD7lZn7bBhX7bWWB2PxlZObuR bAfxvD9/A1wcPmm4fAMue+htHKqIzyb8sydwWD9yk+JzvPRQZeK2WQ0Xp/ipEE3TpkZh IvPLm/ropy0TyySNLWdzqUvCRNvmK1cXX28KS61YtTnywjUr6SlpI7wgbUd+zGZDsfgl uqhQ== 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=g7E4qckF3ovUI/94pr9P+YPyTOinu19X5FiQml8zR2o=; b=f9vq6+2hOxF18ctXAjG1RAxxsp8CdzwonpzIPO7bBPUyq5ZPkv8NDUfy2OQWpax4tw mEOR4HEGtm/U9ebX8n2ixrvtatYZ4JH8XVAOiNLR+Csv3V9HjErx3ogIkIRsncXp+Twu xLqFHbtvOfQth5HBDDgvpfGEBpHqYcevnKjKoMrQMWfDqeKTmYS2JqAHkijTK0m8tarz L/R+3z1BhuuErM5iuKdY10dSgZZJ59FXEk5ddXX2ZqIOx0Sr4ZJiIZHS6Ms8ilxEABYq GWEqIdk2cfU+istuz7lEz4TBtPIAdbHWdgm3IJ+91zQFta75+kpZDkMa8dLUA9zhnfCp dtoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si2288949edx.530.2020.04.21.15.43.11; Tue, 21 Apr 2020 15:43:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbgDUWl4 (ORCPT + 99 others); Tue, 21 Apr 2020 18:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725850AbgDUWl4 (ORCPT ); Tue, 21 Apr 2020 18:41:56 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2B80C0610D5; Tue, 21 Apr 2020 15:41:55 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (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 BCEF3128E6F27; Tue, 21 Apr 2020 15:41:54 -0700 (PDT) Date: Tue, 21 Apr 2020 15:41:53 -0700 (PDT) Message-Id: <20200421.154153.172396683183248740.davem@davemloft.net> To: vee.khee.wong@intel.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, boon.leong.ong@intel.com, weifeng.voon@intel.com Subject: Re: [PATCH net-next 1/1] net: stmmac: Add support for VLAN promiscuous mode From: David Miller In-Reply-To: <20200420033359.11610-1-vee.khee.wong@intel.com> References: <20200420033359.11610-1-vee.khee.wong@intel.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]); Tue, 21 Apr 2020 15:41:55 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wong Vee Khee Date: Mon, 20 Apr 2020 11:33:59 +0800 > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > index e6898fd5223f..80250c7be783 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > @@ -4877,7 +4877,6 @@ int stmmac_dvr_probe(struct device *device, > } > } > > - ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; > ndev->watchdog_timeo = msecs_to_jiffies(watchdog); > #ifdef STMMAC_VLAN_TAG_USED > /* Both mac100 and gmac support receive VLAN tag detection */ > @@ -4892,6 +4891,7 @@ int stmmac_dvr_probe(struct device *device, > ndev->features |= NETIF_F_HW_VLAN_STAG_TX; > } > #endif > + ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; > priv->msg_enable = netif_msg_init(debug, default_msg_level); This change has no effect, because hw_features does not change across this code block you are moving the line across. So please remove this part of the patch it is pointless and makes your change harder to review.