Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1063099rwe; Wed, 24 Aug 2022 14:15:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR5iD8ftVN08FLtwZUpmqx+HPxJV7Ljz7Gheq5BpuyZpb5uCATyso+jMZEdJDOejupkSLL7q X-Received: by 2002:a05:6a00:1496:b0:52f:734f:9122 with SMTP id v22-20020a056a00149600b0052f734f9122mr870950pfu.85.1661375716181; Wed, 24 Aug 2022 14:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661375716; cv=none; d=google.com; s=arc-20160816; b=tg3aJC/EgpztkZHxfbXbqRAXh/1oLJtjNMtJWHVcDH2DJn60tuD3b3p08A+hkLE6ad 7S5mrrLTThgGfdxQFOPTAdkSlD4nc6wWr+Jiq98N7ZoyP6i02jCHK3ebPuSrSVuQdZyP Z1nbjY9AcPUZUG6QfXbm4oFAWmVY4mjfIGiHpQ4sdcqoOtjAjrVdrlW3RZvJadvR5nKZ Qh/t5uNpXzBCGks7uBfw5ICnXzVdcy22/7mAB0qolPNmEwLiDTDgve1R73Me3N7kS5v0 zFy5+WbUNr/BUEFexLNmk6uE4HV6JMuxGQB92nqLabFtz8NbHPADLqZXMj5ymwMnedtf j3Yg== 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=MkgmBMcrBMkoAOBw9FX1zlfY8WQrq3K6WjsIPMLdojo=; b=V1c9sXAZcRdclPArgzcGRk4CF8OgFkKHA4gh3BjF3yFHmsQPNW4EmTXCW4uMu04Fcj WHFMyiEKjqtubPMq7w1kB9eEgkZ5qRJ3JUXSJNnwwl+GumUTZLJZKlt8rhVwOyl3v/Zw YlRwvJyimmO+BbwAOE0LSfBkK1M76LPvOx3gR/mKcblCkY8B4vIPX2sL6fT7eA/Mw3rw 64Y46dcNvdf0RURRtCgN1tlMHDqNfGhWKKLRryBbd+zlxq3Mms0681z79PRItgfzF5qf zhbsxU2ac4Hoppch6WMhwDlyG0F3L51ycNi8mv3ZG/50FSRGaFSRkNGNTGEQBZTQcnEg v+Lg== 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 t69-20020a638148000000b00429d2838aa5si13755090pgd.635.2022.08.24.14.15.04; Wed, 24 Aug 2022 14:15:16 -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 S240368AbiHXU33 (ORCPT + 99 others); Wed, 24 Aug 2022 16:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237076AbiHXU31 (ORCPT ); Wed, 24 Aug 2022 16:29:27 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63DCC6B17A; Wed, 24 Aug 2022 13:29:23 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id C7A9E188444D; Wed, 24 Aug 2022 20:29:20 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id BEA8025032B7; Wed, 24 Aug 2022 20:29:20 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id B7D589EC0004; Wed, 24 Aug 2022 20:29:20 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Wed, 24 Aug 2022 22:29:20 +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> User-Agent: Gigahost Webmail Message-ID: <7016ed2ce9a30537e4278e37878900d8@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-21 09:08, Ido Schimmel wrote: > > I assume you want a hub to simulate multiple MACs behind the same port. > You don't need a hub for that. You can set the MAC using mausezahn. See > '-a' option: > > " > -a > Use specified source MAC address with hexadecimal notation such > as 00:00:aa:bb:cc:dd. By default the interface MAC address will be > used. The keywords ''rand'' > and ''own'' refer to a random MAC address (only unicast > addresses are created) and the own address, respectively. You can also > use the keywords mentioned below > although broadcast-type source addresses are officially invalid. > " > Ido, I am not so known to the selftests, so I am wondering why I don't see either check_err or check_fail fail, whichever I use, when I think they should and then they are not really checking... local mac=10:20:30:30:20:10 $MZ $h1 -t udp -a $mac -b rand bridge fdb show dev $swp1 | grep -q "$mac vlan 1 master br0 locked" check_err $? "MAB station move: no locked entry on first injection" $MZ $h2 -t udp -a $mac -b rand bridge fdb show dev $swp1 | grep -q "$mac vlan 1 master br0 locked" check_err $? "MAB station move: locked entry did not move" What is wrong here? For a mv88e6xxx test I guess I can make a check to verify that this driver is in use?