Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp496799pxb; Thu, 24 Mar 2022 00:52:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFsncB21MEFEYOEI9o0D+6e/R6GaYohzcw0/tP6WgSt3z4O3blxe3x9MsGDqEHlbXcHGRZ X-Received: by 2002:a05:6a00:2186:b0:4f7:5544:1cc9 with SMTP id h6-20020a056a00218600b004f755441cc9mr4023593pfi.62.1648108346297; Thu, 24 Mar 2022 00:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648108346; cv=none; d=google.com; s=arc-20160816; b=vwO68ZXyGq1J/9cdQ5j+FSlV8H0QCCT8mXklxa7TxLlTboy2rX2k7iwaS78h72zZoy kc5uIHIa5RCtvtyOVlP7swTWPmRgRTOU2Mws4k9NmGC0+W25oRIokKzR5yEQLFbcm6GP lyCJdCIiUZ4i4F4GnVzLsNw7mTpk2pD0AIHaaa2pSekMDU9ghNnOuWN6wvRJ4W///3jr Q31hdeNvEU9XFHO40DUKTRstyY3fqNWZ2iWik8hJylP2xO5m9i7S/LEfaTS5M97oO+fO Rf6AZFt4A1QALm1mHqifJyFiK5yVa6awYErT2uGNjBHe/Jy6jCl81yUoqtTqyvao6h1d 2GGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hpxed2/jWw1SnL0rgO1qfgfRqMtI3k981lUGVm09vkU=; b=eD+L0q51NlFNZF6uXseFFm6NZpYW2KZK6d1IeSdcMIKdWgecpwOjUKNh5qQMx/vziW yYG3eoTsi+VQgaH7zW+5XaDpyqhQIrD0Ddm1o5aOECRRkipHL+RZI2Z9ACd4Ik6XRkDN MqjL+1xtbamjdG7Ym/ykfOnlrUXMUYHF+rPHuiDu+vSUVgmDpaYKyZAd9y/GxDhXlmTP NytnJkQJiYwxuN64qdj1VBkNvZtkx8N3JkZNoquScsfo07o1X/8mESOBsGb09jC1Ouam 3UIK8NtobVEHFxbMrIy8lgriZ0w2IjfXrL5vQDPFeN7ldyFki1tb7NPgxGKm5u4/Tg1B 5Ddw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O2BqoSAh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw11-20020a17090b4d0b00b001bf020c5dafsi2515335pjb.32.2022.03.24.00.52.00; Thu, 24 Mar 2022 00:52:26 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O2BqoSAh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244768AbiCWOom (ORCPT + 99 others); Wed, 23 Mar 2022 10:44:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbiCWOol (ORCPT ); Wed, 23 Mar 2022 10:44:41 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E09585F56; Wed, 23 Mar 2022 07:43:10 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id j15so3265985eje.9; Wed, 23 Mar 2022 07:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Hpxed2/jWw1SnL0rgO1qfgfRqMtI3k981lUGVm09vkU=; b=O2BqoSAh8gk1zLk+rTW6Ok7XPTKVbiDZpl3IsitPRospP8Ri04nFQm3HmjmxWD8esZ TXlNJRszB3c+JWkthBN0VqA68eeZNepKxhkBr/i6KRJ0mjx0O83AaS1wxvPJtGncuWbf 2ioHKTZBpE1JeMuH5lWQmzVAw18gaQUjfSvRNysQbBEA2TAjHJZlPm30ZkCIVy03ALNU 1ByYkDchELaUiRr9VHUFbLPb7AQWOeloXV4Dw6A1+gwGf/nVEQm6Jwd+SbR2pxBhl0ax tpdpy1ZjS5rouUd5ItbkvxVQJHNzQx7NOZeJzU6uousyu3EiPEFktr2bh53oRTJ9kaSI fmnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hpxed2/jWw1SnL0rgO1qfgfRqMtI3k981lUGVm09vkU=; b=bvNtkVWGJkyDHihos6fj26hvlU/j/e1xuqsmq4mzE6u9VGpnDrSVpS5UTaVSn4t8vC nzr2H0PhbkWyjN6bWFtj15EDZYY8NXaWZlOCb7ypcnwSsiZJc14hdiMXcUGZND/yUYkK Ue8vOUpdHUjNaWx5Km3qof7s2kLtijeM8AEXqpFPhL66oiHyMo+LCbaoQaKjerzWaZnr 5NeNdcZoagOg8vLeTr8BP9o7oqvq7mGFVYFUbcqMY+XHgQwWAgBahM1TvmJh0o5ukQrc Jg1KElxy/9/9TjhleZtf7jejNxddgQTwR0JXLq0zLKRCaU9C7F1WiUi6DCkjq3e19yjv 8KMw== X-Gm-Message-State: AOAM530WwpAoxiIPqDePOlkp2ALRYkbHfz+twBTpyRKuNxscIg8atQ4y SrQDcc9a1o8ZZTstEvunkPI= X-Received: by 2002:a17:907:b590:b0:6cf:48a4:9a4c with SMTP id qx16-20020a170907b59000b006cf48a49a4cmr329020ejc.6.1648046587068; Wed, 23 Mar 2022 07:43:07 -0700 (PDT) Received: from skbuf ([188.26.57.45]) by smtp.gmail.com with ESMTPSA id n2-20020a17090673c200b006db8ec59b30sm24449ejl.136.2022.03.23.07.43.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 07:43:06 -0700 (PDT) Date: Wed, 23 Mar 2022 16:43:04 +0200 From: Vladimir Oltean To: Hans Schultz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , Ido Schimmel , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 net-next 2/4] net: switchdev: add support for offloading of fdb locked flag Message-ID: <20220323144304.4uqst3hapvzg3ej6@skbuf> References: <20220317093902.1305816-1-schultz.hans+netdev@gmail.com> <20220317093902.1305816-3-schultz.hans+netdev@gmail.com> <86o81whmwv.fsf@gmail.com> <20220323123534.i2whyau3doq2xdxg@skbuf> <86wngkbzqb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86wngkbzqb.fsf@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Wed, Mar 23, 2022 at 01:49:32PM +0100, Hans Schultz wrote: > >> Does someone have an idea why there at this point is no option to add a > >> dynamic fdb entry? > >> > >> The fdb added entries here do not age out, while the ATU entries do > >> (after 5 min), resulting in unsynced ATU vs fdb. > > > > I think the expectation is to use br_fdb_external_learn_del() if the > > externally learned entry expires. The bridge should not age by itself > > FDB entries learned externally. > > > > It seems to me that something is missing then? > My tests using trafgen that I gave a report on to Lunn generated massive > amounts of fdb entries, but after a while the ATU was clean and the fdb > was still full of random entries... I'm no longer sure where you are, sorry.. I think we discussed that you need to enable ATU age interrupts in order to keep the ATU in sync with the bridge FDB? Which means either to delete the locked FDB entries from the bridge when they age out in the ATU, or to keep refreshing locked ATU entries. So it seems that you're doing neither of those 2 things if you end up with bridge FDB entries which are no longer in the ATU.