Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2230729rwb; Sat, 8 Oct 2022 04:40:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gdgdxHT+gz6ZfXZR0XoWnuBpoD1eqUACZSjtE9WlRAiZWJoSrlPBK8UDmVdNBdDQ+R9Om X-Received: by 2002:a17:90b:1a91:b0:203:c2:7102 with SMTP id ng17-20020a17090b1a9100b0020300c27102mr10626514pjb.154.1665229235282; Sat, 08 Oct 2022 04:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665229235; cv=none; d=google.com; s=arc-20160816; b=D7+q21xSvmSfAuMT+rcmqHJ7UkZXzN/+3jW5i0XuhM01NNFDvYUEvC6OQpRNIDFJrY +oeyTvRP0mUHN84JMrFbd/4Ru5zXKAVhzEk7opg8plDD2sS1VRIc0mtGZBAQAUHMsfaU BMzdO8X2m1S/QDPmprsZAL3aOg1Ru0WdGASmxc6w0ihasBOGEYHKljf1L4bU0LNX6UxL XwX9bE413pGFgOJd1PkQhP47mLCwapIpO+ofZIRp2g2dYP9Stk7jDja+rKp71e+BELp+ hGY4nF+gQ1CgL1br2ysMN6bkj/fWK8LeR1cXv0a+8HiwoK30cfJf/lR/aZLow0UqFXTj hDsQ== 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=OF/hTp+ABwK+temkMFdR0yLky5OMDtwq89l36tacv+4=; b=iHDLa1JpQN0OsQFtz/OH6iprqk95ZVSHcJpj8/qiIo1Qg37iZYYOEibpZDs0al8DRr 5EJgVTpBpoFFLKP/HdWnjmU1fWrrsDLfx/WzpO1tGl1PlgmvBaBu4H7hAMIrBYBPe9lC XmWjcPl0WzStOYOXIgjvBrQtiKdf7mZ7B9hmSMMkz+/Bj0QdrOW+1ivKOytcDX82MmAG 1j0XpReeNWKMVzyLdnyYMsLi6dKsq0fiMuHp6tNkSRxDyABuHnddpcq9NJAMT9U3uShp SW9Y4ayLVsOtK/7FJ4Gvht2emO1zgOvGbm8eeY/UO79Pa2bhh7U5CEtWEOF1wpG9K3tL MUyA== 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 y184-20020a6232c1000000b0056282b4a984si4603302pfy.126.2022.10.08.04.40.22; Sat, 08 Oct 2022 04:40:35 -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 S229605AbiJHLeZ (ORCPT + 99 others); Sat, 8 Oct 2022 07:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJHLeX (ORCPT ); Sat, 8 Oct 2022 07:34:23 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D9247B99; Sat, 8 Oct 2022 04:34:19 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 1067E1884502; Sat, 8 Oct 2022 11:34:17 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 062492503DE3; Sat, 8 Oct 2022 11:34:17 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id F11D99120FED; Sat, 8 Oct 2022 11:34:16 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Sat, 08 Oct 2022 13:34:16 +0200 From: netdev@kapio-technology.com To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , 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 , 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 v6 net-next 9/9] selftests: forwarding: add test of MAC-Auth Bypass to locked port tests In-Reply-To: References: <20220928150256.115248-1-netdev@kapio-technology.com> <20220928150256.115248-10-netdev@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 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-03 15:40, Ido Schimmel wrote: >> +locked_port_station_move() >> +{ >> + local mac=a0:b0:c0:c0:b0:a0 >> + >> + RET=0 >> + check_locked_port_support || return 0 >> + >> + bridge link set dev $swp1 locked on > > It is quite pointless to check that an entry cannot roam to a port that > has learning disabled... Need: > > bridge link set dev $swp1 locked on learning on > >> + >> + $MZ $h1 -q -t udp -a $mac -b rand >> + bridge fdb show dev $swp1 | grep "$mac vlan 1" | grep -q "master >> br0" > > bridge fdb get ... > > Same in other places > It seems that the output of 'bridge fdb get' does not respect the dev it is given as input and outputs the (MAC,vlan) when found on another dev...