Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1502495rwi; Thu, 20 Oct 2022 13:22:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gLGYatVLH8OgLWefhDeHBfDZeCVmhhOwKW+zDKtVwJJBmQcP+hqMfv4D+6NaK8rmnS16V X-Received: by 2002:a17:906:3fd2:b0:78d:b793:5ef9 with SMTP id k18-20020a1709063fd200b0078db7935ef9mr12104915ejj.496.1666297356251; Thu, 20 Oct 2022 13:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666297356; cv=none; d=google.com; s=arc-20160816; b=kkX/3WBPpD9A5pRy0lmXou4FrJoBfe4HlnsJS2mzcKctrYZfp6WsONj8k5kGJL2uW3 yQQs4DQ3c2fIjC93jKE48dKLExVa6QEqFBCswZLNMkb2uttVc464PlkaXZiVQTTmrQ7h b+PMgiw+yztPzg41pMDuwwgbSw1ZonsnTW6m8z1gmHlC/CBzHTf5OOiSRTRfFTNs+5QO f/F3gsUD4S97sZW2G3BTt2dXdP6ZOV2n29bYoeIorRYNK2PFAuUy/wn10GyjXWhTQxHm NFUg0GjZdaHLWHyPH2qPWF/1Kg5NzXT6W1Mx919dA+/5WXe/Y/Ho9+gBvau9sRlt3Uaf bMlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=KypGk5l4XtLAqzliKLeIIF93r2u+whMZfZS1GhrD218=; b=ZXHzx4Ej2lOHi1KalOoOj1r7ta9sZPKg9F+TbW5kui5F/r/F2qaDwIj9bt5jyIUmsN QHuUbU8JEGgyEy0M+gn4DkxsiEa8OvmoeQmtjy2IT2gMF4WdjOq1/4qDxkFJ3Bgu/uz5 iPhPg+N5ZKrbaHVOwLN540BHM8j4KHl2+18gAzhHS+ji09/OfQCDp0Wzt7AnNwDRb6kI zYVngzobSUILpq6gee3BKLv+efMxAcx7lUav/tIdN1pTj04apawAw234LquYXAT1xlKn skaQj5vgYCC12uS0rY5sRxK3z4WWruMJ0sPKZcdDzkomDO03UI2JAKrRnnejFWKLYN4o 4tvw== 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 n1-20020a17090625c100b007417c6edb0asi15150564ejb.402.2022.10.20.13.22.10; Thu, 20 Oct 2022 13:22:36 -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 S229908AbiJTTno (ORCPT + 99 others); Thu, 20 Oct 2022 15:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiJTTnm (ORCPT ); Thu, 20 Oct 2022 15:43:42 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D61F220751E; Thu, 20 Oct 2022 12:43:41 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 79FDA1884CC9; Thu, 20 Oct 2022 19:43:40 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 5680725001FA; Thu, 20 Oct 2022 19:43:40 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 4B1A19EC0001; Thu, 20 Oct 2022 19:43:40 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Thu, 20 Oct 2022 21:43:40 +0200 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Ido Schimmel , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v8 net-next 05/12] net: dsa: propagate the locked flag down through the DSA layer In-Reply-To: <20221020130224.6ralzvteoxfdwseb@skbuf> References: <20221018165619.134535-1-netdev@kapio-technology.com> <20221018165619.134535-1-netdev@kapio-technology.com> <20221018165619.134535-6-netdev@kapio-technology.com> <20221018165619.134535-6-netdev@kapio-technology.com> <20221020130224.6ralzvteoxfdwseb@skbuf> User-Agent: Gigahost Webmail Message-ID: <715c068915c9f07ad62d9837e70df7a1@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On 2022-10-20 15:02, Vladimir Oltean wrote: >> --- a/net/dsa/port.c >> +++ b/net/dsa/port.c >> @@ -304,7 +304,7 @@ static int dsa_port_inherit_brport_flags(struct >> dsa_port *dp, >> struct netlink_ext_ack *extack) >> { >> const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | >> - BR_BCAST_FLOOD | BR_PORT_LOCKED; >> + BR_BCAST_FLOOD; >> struct net_device *brport_dev = dsa_port_to_bridge_port(dp); >> int flag, err; >> >> @@ -328,7 +328,7 @@ static void dsa_port_clear_brport_flags(struct >> dsa_port *dp) >> { >> const unsigned long val = BR_FLOOD | BR_MCAST_FLOOD | >> BR_BCAST_FLOOD; >> const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | >> - BR_BCAST_FLOOD | BR_PORT_LOCKED; >> + BR_BCAST_FLOOD | BR_PORT_LOCKED | BR_PORT_MAB; > > Why does the mask of cleared brport flags differ from the one of set > brport flags, and what/where is the explanation for this change? > I guess you mean, why it differs from the inherit flag mask list? If so it is explained in the update to v7 in 00/12.