Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1910503rwb; Fri, 12 Aug 2022 08:42:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4KvJ1vjtRvAoMl799L+pmuvz9sE3rZna9fI6yqjLnjeOaWtEWWfPlSQBVy88oKc4D3KhOy X-Received: by 2002:a50:ed82:0:b0:43d:5334:9d19 with SMTP id h2-20020a50ed82000000b0043d53349d19mr4089319edr.232.1660318972155; Fri, 12 Aug 2022 08:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660318972; cv=none; d=google.com; s=arc-20160816; b=hBqRCWUhEgPcsGJNUYk0/75alMTnmNm0m9QtJmooQkRGCUunKNFUCjCnrAWNDHlcT2 wFjA05xqyEP7Iw8hSLD+xZb9CksY8g+eA/33tszZUESrDRkFbw38muyl0Fw00tp1gAH6 pxjtPTg07VHVvr0rjw0PzHXiG8ckgMy3FiB554980OW0mhpnI/mlizvgBC4JBg6e1JPi y1mTl0vy/ORGiWuBGMAex3qk/HDqZ0eNUKvkq9omEAX6gXHLrht6GPcWeuWnAb69hl32 P6fi7Ojw4V1PtVZCasV/6isQ+Hbn8QZ61fEof7IcYwGXmJnLgiEzeZ2E2ey/O3EJRo2b WBOw== 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=GZUY3hUU+MgIaGp8SpviPwgHhEBokUdWFkMTzlPJ1jI=; b=hW2Kt3QZFtfv2StMpTCoNLiLitI2FU4mGrOWYx7Iouv0bYi8fPsTIwS2ARO5gHyuVg AtZ3RyR8oNGssscLXd9VGA9jqhAxvA/ayOTNUlNcUWu9QNvtLMrtJ6wY5OlVn/UmH4Ex Vkjg3AdiVpTjmtt2jIPEhO8nabnyXHt3Kt9M2xs+SsgQdZLs4F5Al+HqZqa06ApscwjH 3Hz2hMlohSikfT78j7HEVLtR1iCl2TT09w7AG9+sHb+lJDikO6PmGO+XPdYpl/DC2R7E vgnv9wbsIhhx6PpUqDkftHLygOglfOsFErENDFcjpKrilsCHOv+GMOFflcbs2IlkgIjz 6kKg== 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 o26-20020a170906359a00b0072b13aacd47si1900350ejb.194.2022.08.12.08.42.25; Fri, 12 Aug 2022 08:42: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 S238097AbiHLPeD (ORCPT + 99 others); Fri, 12 Aug 2022 11:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbiHLPeC (ORCPT ); Fri, 12 Aug 2022 11:34:02 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AB4F491F8; Fri, 12 Aug 2022 08:34:00 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 6265F1884D2E; Fri, 12 Aug 2022 15:33:58 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 5798525032B7; Fri, 12 Aug 2022 15:33:58 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 4A623A1A0051; Fri, 12 Aug 2022 15:33:58 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Fri, 12 Aug 2022 17:33:58 +0200 From: netdev@kapio-technology.com To: Ido Schimmel Cc: Vladimir Oltean , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 net-next 3/6] drivers: net: dsa: add locked fdb entry flag to drivers In-Reply-To: References: <20220708115624.rrjzjtidlhcqczjv@skbuf> <723e2995314b41ff323272536ef27341@kapio-technology.com> <79683d9cf122e22b66b5da3bbbb0ee1f@kapio-technology.com> <6c6fe135ce7b5b118289dc370135b0d3@kapio-technology.com> <2491232d5c017d94ca3213197a3fb283@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: 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,T_SCC_BODY_TEXT_LINE 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-08-11 13:28, Ido Schimmel wrote: >> > >> > I'm talking about roaming, not forwarding. Let's say you have a locked >> > entry with MAC X pointing to port Y. Now you get a packet with SMAC X >> > from port Z which is unlocked. Will the FDB entry roam to port Z? I >> > think it should, but at least in current implementation it seems that >> > the "locked" flag will not be reset and having locked entries pointing >> > to an unlocked port looks like a bug. >> > Yes, now I have tried to test with a case like this using the bridge and have verified the locked entry pointing to an unlocked port, which I agree seems to be a bug, which I will get fixed.