Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4876899rwl; Tue, 28 Mar 2023 12:38:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bT7PaCrRhs6kVibTsOIIsn6KO0AOCjHBCLGD0rhw2vh1pRonvFh/KYMZm2Q834x50D/w3m X-Received: by 2002:a17:906:3449:b0:93b:b8f3:225d with SMTP id d9-20020a170906344900b0093bb8f3225dmr16824384ejb.15.1680032312850; Tue, 28 Mar 2023 12:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680032312; cv=none; d=google.com; s=arc-20160816; b=wdv/PEJ+eqTlSFflXCMfYzPNi2bHxXJz514kgK9S7qlAuQ4c16fYK386AcseeP1iI7 NivrjFvj90RgA+BN+UPhHKJhdSuauPVz7s4NA8j80aimFlZOvSY70+PmEmFLcWzQdA7+ 81Vl0ti9Bx/0cxfA2hCZ0VKcRArDmTP760N1TviCdM+V7ydYbM/JYkbpbwH+0iJbqzQn Uludvp/C2hzCBdzLNg4AbsAJ3CRVv9yxfSIZeLnGv7qQ6q34v8WxPrBlpAuzGs3vcE3P qkusUYNQt0Vav6hCVSy8wx1Ic0AaUL0PvHWAV5fpsvwUvrukdxH8dqX7UGwewfYOHORq aJhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=F0J4QTkVBj6HBDcmeBwgSPiZ9KYcm6+jO65oOjptUwI=; b=PFy3xIXgVPMxG1gwrOBSRonkZR+828lqlqJQq95Y7lDp+FFbevkN9/QDH6d/odBF9y hVk5m02dG5v1Svq500ETuvpm8GhijpKUBEoO1nbVdAbDKHti6nQEIBsDUkMPyKLjHZ7a 75FhfN8RBUEDWBykMXyf0pt9byJjUv0+n/0W0F5ktYXZZdXxt658bc+vtbnGOfFGriHz 5piswj7Ts/QoN9t3i85+/EbxlevtYXaKm25URfYmbZUUm9RGwDHqMAF+lGp9NGF36Xp3 0pIHQDIeROkIO6soNFB+5RRwtCPFb8ohCBicOL+ly7+kcgPzbl/uwYM0nNqCPWIoY6gl kPXQ== 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 r21-20020aa7c155000000b004adbb59bc8fsi14374463edp.16.2023.03.28.12.36.49; Tue, 28 Mar 2023 12:38:32 -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 S229511AbjC1Tcv (ORCPT + 99 others); Tue, 28 Mar 2023 15:32:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjC1Tct (ORCPT ); Tue, 28 Mar 2023 15:32:49 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAA8D3582; Tue, 28 Mar 2023 12:32:47 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 9589D18839ED; Tue, 28 Mar 2023 19:32:45 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 73D132500389; Tue, 28 Mar 2023 19:32:45 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 6502E9B403E2; Tue, 28 Mar 2023 19:32:45 +0000 (UTC) X-Screener-Id: e32ae469fa6e394734d05373d3a705875723cf1e Received: from fujitsu (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id 975A691201E3; Tue, 28 Mar 2023 19:32:44 +0000 (UTC) From: Hans Schultz To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , AngeloGioacchino Del Regno , Claudiu Manoil , Alexandre Belloni , =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Christian Marangi , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , "moderated list:ETHERNET BRIDGE" , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH v2 net-next 6/6] selftests: forwarding: add dynamic FDB test In-Reply-To: References: <20230318141010.513424-1-netdev@kapio-technology.com> <20230318141010.513424-7-netdev@kapio-technology.com> <87a5zzh65p.fsf@kapio-technology.com> Date: Tue, 28 Mar 2023 21:30:08 +0200 Message-ID: <87fs9ollmn.fsf@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Tue, Mar 28, 2023 at 19:40, Ido Schimmel wrote: > On Sun, Mar 26, 2023 at 05:41:06PM +0200, Hans Schultz wrote: >> On Mon, Mar 20, 2023 at 10:44, Ido Schimmel wrote: >> >> + $MZ $swp1 -c 1 -p 128 -t udp "sp=54321,dp=12345" \ >> >> + -a $mac -b `mac_get $h2` -A 192.0.2.1 -B 192.0.2.2 -q >> >> + tc_check_packets "dev $swp2 egress" 1 1 >> >> + check_fail $? "Dynamic FDB entry did not age out" >> > >> > Shouldn't this be check_err()? After the FDB entry was aged you want to >> > make sure that packets received via $swp1 with SMAC being $mac are no >> > longer forwarded by the bridge. >> >> I was thinking that check_fail() will pass when tc_check_packets() does >> not see any packets, thus the test passing here when no packets are forwarded? > > What do you mean by "I was *thinking*"? How is it possible that you are > submitting a selftest that you didn't bother running?! > Sorry, but I have sent you several emails telling you about the problems I have with running the selftests due to changes in the phy etc. Maybe you have just not received all those emails? Have you checked spamfilters? With the kernels now, I cannot even test with the software bridge and selftests as the compile fails - probably due to changes in uapi headers compared to what the packages my system uses expects.