Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4232898rwl; Mon, 3 Apr 2023 01:44:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ZuCHvv6Y4g4L5IImQ/pG5s//JdgaOoRTgQ0PZUxRoDNhiI4HHWVWSJMHYfJmJfE/bYLr5r X-Received: by 2002:a17:906:fc5:b0:928:de2a:8a3f with SMTP id c5-20020a1709060fc500b00928de2a8a3fmr35796132ejk.31.1680511492374; Mon, 03 Apr 2023 01:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680511492; cv=none; d=google.com; s=arc-20160816; b=EMSyGaY24KIYpnQ3vBOk5lWXOgScxI6tf2wGhlnYGGGFTK8fV7vKhCE+RkJ6wU+raE qaBBZD1+bjHQ05cmoBWcTgO48/UGyAnoTD7seNHR/LlIgNKsOeVAy9sjGNJrU8cJVsdR uRjyAxEVuy7M5A62LtQs+80vdFI1D9e6Bj0BhQvGFcHlWGuSWt51hBW9kdkdg+W03dmx xno+eDJvC/GPmt3CUX2l8rERVnt3Z9rawjZ6orxEJOFfTibMjw6HEgODwtxF0bCosmzs LlIqS18Nekxh5I6t6AH2imXEuZOdlSM6vnCaLYJJfgveDI7j6uxEb348/uUhZcGN/Haq mmgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=p/icM480ITW+hEvEjWgPQvUk2n0ML9zQ32CAid9neuo=; b=Jlm+4T53ZwFrUMExKDt/Geu7vIF5pXwKNfIOPBznSUP7S7ElrfPwTjc6o6FU121avZ h2IMZc2poaaMPpiPbxGowJbLKtvNIYcPZ68yln/X2FJ3Rh9y2JISZugHFnEcdOjaRx7D fu5Dy9C6/PI7gQ0o59EUifbBHfsIFdCvmjCmLVVAOE7pJaua7eFyU2zyTnSh7lsBZtWZ HwVK/jOrB8tb8b4gdQHEHQtAT9hfsIXVzM4HD9Jli/HzMpD9lSNz1NSHWckCDp7nLSaI 83k4PFyS+iFueWEKVjb+hrCpdktdx/eFXL9ofW4fh+8DJsChEu7jO8EvG+E+ASYq1Dae tDjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc7-20020a170906f90700b008cbb481fc84si4372001ejb.20.2023.04.03.01.44.28; Mon, 03 Apr 2023 01:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231831AbjDCIm3 (ORCPT + 99 others); Mon, 3 Apr 2023 04:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231778AbjDCImZ (ORCPT ); Mon, 3 Apr 2023 04:42:25 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C22DCEC6E for ; Mon, 3 Apr 2023 01:42:17 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pjFlE-0008IB-6R; Mon, 03 Apr 2023 10:41:56 +0200 Message-ID: <33b8501c-f617-3f66-91c4-02f9963e2a2f@pengutronix.de> Date: Mon, 3 Apr 2023 10:41:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [Linux-stm32] [PATCH] net: stmmac: remove the limitation of adding vlan in promisc mode Content-Language: en-US To: Clark Wang , peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mcoquelin.stm32@gmail.com Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230403081717.2047939-1-xiaoning.wang@nxp.com> From: Ahmad Fatoum In-Reply-To: <20230403081717.2047939-1-xiaoning.wang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-3.6 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Clark, On 03.04.23 10:17, Clark Wang wrote: > When using brctl to add eqos to a bridge, it will frist set eqos to > promisc mode and then set a VLAN for this bridge with a filer VID value > of 1. > > These two error returns limit the use of brctl, resulting in the > inability of the bridge to be enabled on eqos. So remove them. > > Signed-off-by: Clark Wang Please add a suitable Fixes: tag pointing at the commit introducing the regression. Thanks, Ahmad > --- > drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > index 8c7a0b7c9952..64bbe15a699e 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > @@ -472,12 +472,6 @@ static int dwmac4_add_hw_vlan_rx_fltr(struct net_device *dev, > if (vid > 4095) > return -EINVAL; > > - if (hw->promisc) { > - netdev_err(dev, > - "Adding VLAN in promisc mode not supported\n"); > - return -EPERM; > - } > - > /* Single Rx VLAN Filter */ > if (hw->num_vlan == 1) { > /* For single VLAN filter, VID 0 means VLAN promiscuous */ > @@ -527,12 +521,6 @@ static int dwmac4_del_hw_vlan_rx_fltr(struct net_device *dev, > { > int i, ret = 0; > > - if (hw->promisc) { > - netdev_err(dev, > - "Deleting VLAN in promisc mode not supported\n"); > - return -EPERM; > - } > - > /* Single Rx VLAN Filter */ > if (hw->num_vlan == 1) { > if ((hw->vlan_filter[0] & GMAC_VLAN_TAG_VID) == vid) { -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |