Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1778194rwl; Sun, 26 Mar 2023 08:58:09 -0700 (PDT) X-Google-Smtp-Source: AKy350a5P566S8N/gS+4SePPLqXMx2TQ1ZJRum69Vf/xeWZYjyoPPTq7fqXLyS/yYANTmW7U6qoR X-Received: by 2002:a17:906:da82:b0:933:4d47:55b7 with SMTP id xh2-20020a170906da8200b009334d4755b7mr12046335ejb.2.1679846288935; Sun, 26 Mar 2023 08:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679846288; cv=none; d=google.com; s=arc-20160816; b=nTT9nIaBDBENAHJxdJGU+6QxA6SeH6Pf3yp6SLM0+yitQXCSHAT9zXLWJKf7Jt4s21 YZuHw+Wospa06y8nKenVEeWqzukmD1KdQuoxf/dZrn2NYz5fHzjh0XZzo0w2dKYaI1FM gXsD44cI6u1mw/KrLoUntusUjOjTSEL+8XV0dEe7BSB3Q0wkDRuoY1JeY3BWzBMjfnSS 3fd/eFEoc/UCA6MP5iMYIGrM7/EKiVrP0c8/xsjWJ0oB2N5Byiwg7ubXqP15cm3UXsmV Z0MgNwadZc+rIj4iVD911EbjBNcJ5yIz0LLoctK3P0mrpO8Cw7gvkaaWAlr87dUoYFej vsUQ== 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=nEiG75v5j15tNIUli4H2SDRDPK1F/fPhkD69bf1zzUc=; b=MeHln50kUENUZnvImyOAiGGIACk27b5Txw+L8uy8DBdZbNYooPhzaybbu9eziIkQ46 xl1/dSQGrUmidEwu5JuFD5jJMRSVopTaT4YNEmPMAdadSrxLAm/u2fJutSBrgISAyqPZ YEocfH1dXXI+nrV9Fy9/rbInrgBxP5LXMnrCMwQV1Bz3Jw/o+wh7meQdbUPq0p//HLtz kgXVhGHa+GHJ/RftuB2ee5WRIxZmQVJxhEhO5eVBgejUi9Q7gBliIJVLnp/y91de1NXm s991+ge/ruVC4KIu1alGPWhKFcELW6n3IYmQqMowys5S2CBQpjAow+vRUOoeVkiPYG4F HenQ== 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 i7-20020a1709064ec700b008cc8a6fea26si25577673ejv.561.2023.03.26.08.57.43; Sun, 26 Mar 2023 08:58:08 -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 S232563AbjCZPnv (ORCPT + 99 others); Sun, 26 Mar 2023 11:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjCZPnt (ORCPT ); Sun, 26 Mar 2023 11:43:49 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C03B61B9; Sun, 26 Mar 2023 08:43:47 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id DD21F188397D; Sun, 26 Mar 2023 15:43:44 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id C9D3025002FD; Sun, 26 Mar 2023 15:43:44 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id BBDAA9B403E2; Sun, 26 Mar 2023 15:43:44 +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 C4E5391201E3; Sun, 26 Mar 2023 15:43:43 +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> Date: Sun, 26 Mar 2023 17:41:06 +0200 Message-ID: <87a5zzh65p.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 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? > > Also, I suggest executing 'bridge fdb get' to make sure the entry is no > longer present in the bridge FDB. >