Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp634518rwe; Thu, 25 Aug 2022 06:45:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6van0blkE+pks1fj6woB2dEXRaSvj1xRQsWOxMGomAzQpB/bfu5viTqZ2FfMMC5FsSaO+7 X-Received: by 2002:a17:907:1b09:b0:72f:d49e:6924 with SMTP id mp9-20020a1709071b0900b0072fd49e6924mr2572933ejc.15.1661435117899; Thu, 25 Aug 2022 06:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661435117; cv=none; d=google.com; s=arc-20160816; b=wtOpOytwSK924sDJArkpYhWYZ0QUg9KXc2FgYmwlo+W4i5b/dYonklbXoazfqUfm7s gGZf1y7rUCSax6H0mz6SyVZPLvIBUXWk1F1MBZpvfuYUtrEPbjk9PJq/DYztfYb27Z6z bXJq4MC4u2JypLuBci6wrP4S548E+vIeuQYT6Xy+yMo7qPxWXgnOeM9Ot/VXblKbR9Oq VyyKn4zeDMVAgmqhtoMzCkinY3YYZRvPrbYUtDnCm9UHUfkvcfdXtHtkTkFAoG5F3Fb5 1WuL4H1lamafV5WPLQqiMvQ9hWtTF/jYOM5/xpyf7VCD6oosqDrbQMPt8drchB12Qxrb oDZg== 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=CbCaGpEJwPTwrdr26xWdKrr8rffqgM3oZwu0wvLJEVI=; b=sFSwktmYiCP29RpeV3JMcqo6GWzZ8wJ9wKm2muOF3upR4F1O5+K5pc0ij9bak9aBHN 0OnbYprwsmwCdm6yrYO/yre3zVCzk656MIc5elaVDfci3CgeoeMCYZlIV+YLa/NPb3wh uArwRqrQ87L4AsnCBLuQISGB9EexhqSxkhSmKN0RClVtjmtOu8gtF35mUhJEt/ccnkCQ NQcHgUIAQa2VAT70hb1wygAcRE8vKYBixmd4iRU7sAPowiKAyvzyIHN6Jyamej/wysy5 guY913bumgtbsPugOkwPpcJpIg/+5V0INyP1o8qrK4j2odK4Z3xWGJGNI3SNX3tOfvTn VF6g== 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 hr14-20020a1709073f8e00b0073d9d374e81si4139656ejc.681.2022.08.25.06.44.52; Thu, 25 Aug 2022 06:45:17 -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 S241979AbiHYNl5 (ORCPT + 99 others); Thu, 25 Aug 2022 09:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242052AbiHYNly (ORCPT ); Thu, 25 Aug 2022 09:41:54 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B212AE232; Thu, 25 Aug 2022 06:41:52 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 7BDFC1884D63; Thu, 25 Aug 2022 13:41:49 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 733B225032B7; Thu, 25 Aug 2022 13:41:49 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 571599EC0002; Thu, 25 Aug 2022 13:41:49 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Thu, 25 Aug 2022 15:41:49 +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: <5a4cfc6246f621d006af69d4d1f61ed1@kapio-technology.com> <34dd1318a878494e7ab595f8727c7d7d@kapio-technology.com> <7016ed2ce9a30537e4278e37878900d8@kapio-technology.com> <7dfe15571370dfb5348a3d0e5478f62c@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: <6fa538a1489a73fdf8b1fa92785185aa@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,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-25 13:58, Ido Schimmel wrote: > On Thu, Aug 25, 2022 at 12:27:01PM +0200, netdev@kapio-technology.com > wrote: > > Instead of skipping it you can check that roaming fails when "sticky" > is > set. > I think that the sticky flag topic generally is beyond the MAB feature, and it doesn't really fit into the bridge_locked_port.sh. But anyhow I guess I can add it to the bridge_sticky_fdb.sh tests. >> >> The bridge_locked_port.sh test is linked in >> tools/testing/selftests/drivers/net/dsa/, but if I cannot check if the >> mv88e6xxx driver or other switchcores are in use, I cannot do more. > > Since the behavior of the HW data path is reflected to the software > bridge and user space via "sticky" / "blackhole" / "extern_learn", you > should be able to add test cases to the generic selftest. For example, > if "blackhole" is set, then simple ping is expected to fail. Otherwise > it is expected to pass. The problem here is that the "blackhole" flag can only be set now from the mv88e6xxx driver under a locked port, and the locked port itself will not allow ping to work anyhow without a FDB entry free of the "locked" flag, as the MAB tests verify. And disabling MAB on the locked port on the mv88e6xxx will clean the locked entries. So I see it as a flag for future use, otherwise I will have to add a userspace command to enable the "blackhole" flag. I have now made station move tests for both the locked port and MAB cases.