Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1153738pxb; Thu, 24 Mar 2022 13:55:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP8dJ+yy2KDlcwH65kponPjO8Sa/yeup2G0hXmzCFo6hfZ/WVI4xwLX6W6hx6CYcTRVxNr X-Received: by 2002:aa7:88c2:0:b0:4fa:ba98:4f6f with SMTP id k2-20020aa788c2000000b004faba984f6fmr7032538pff.41.1648155302999; Thu, 24 Mar 2022 13:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648155302; cv=none; d=google.com; s=arc-20160816; b=jKPjd7FvhjVJwAOb1EJV5CtGiXmBcMIxlWlRnkHzhaRsa07izH1TCWb2jFPW1YFab1 vIh7oywVY0h5Ouqz0AgYjoXfm/cswNwCWO2+33J9rVw0h/QfUrv3fQE0z1k2VLpJnlDA ucMAqZHIsfeLx3WBtyyLs/2+KwtSdfGhrFtRqitBV4QPeX7ljRkJIulB6nIAIMzEfyml MEJLGvS7XskFn5PT57wo1uVxuceYsR5r5rjRfwOG2nL9q4TrsL4FNckkAWWGBCJMsF6m C7i++opHX0TDIDFy9lIoETixEYY7bdRrq6EhVK+VCeI0fYYrpNtxoi9RbGOdpiIBnI2I uYAw== 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:dkim-signature; bh=yIGBhHdGmmA6wfhq/C+I/3lptUPuCRf9dLkGG/+jm/0=; b=KyF6CercDupkpdqE0Rda6v6OUHN3mXYev9NZ58P4ozLkMBeXGL/337CQTT74Oy4Y9G mYOrW/89Xx7/cj5G7twsPVL1SRhtRGRNfOsz6F+7BkeGAr/tOs/zEz+aTUii3LIc+Vu8 qGPNqZCD7jutO2T5ntoLAHWHCfUP8aiIWOO0tX+KELCYOGHEhakrZ2tr7VAi5HnXT30I NfcEoTugYi/94iha5FeG9hY7KnfNG+8IDO7k7hVQmAIMYyBTwgnA95kqb4vzXjEnDb82 Zn/EzuievnDPxsrvOGz+E37/gGrVPf/oC3kz3xlLoKqnPPRbKjuj3pn5VmUm8UUDSnTJ xe6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UECv386z; 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 bm6-20020a656e86000000b00382b21d82a2si362984pgb.366.2022.03.24.13.54.49; Thu, 24 Mar 2022 13:55:02 -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=UECv386z; 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 S240786AbiCXKdq (ORCPT + 99 others); Thu, 24 Mar 2022 06:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbiCXKdp (ORCPT ); Thu, 24 Mar 2022 06:33:45 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83D39E9CC; Thu, 24 Mar 2022 03:32:13 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 17so5519175ljw.8; Thu, 24 Mar 2022 03:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=yIGBhHdGmmA6wfhq/C+I/3lptUPuCRf9dLkGG/+jm/0=; b=UECv386z8DX2m17XrbzsWDtNOzryfJvtsSbyNTgODZ/baOrSAi26WyQodjOx/EVuTN i9gdHVYgFlKbM9Q1+/08aVpUWHklq+lG/ToDHtsZwCGIbpPEHAkKJwagSfcUXchYQejK CEImEFdTQxPQ1Jk2Gq5CPAcOGTEVQlzJT13oM8IuTCrtBQ5xUp1CLp/Ot0YOfOGJ578W Vjnyi9PMvGfFyTaOCvwUxNTPFE3UMKE8WF+xWZCJf92txuRqerdZCpuWlHA0tiW9mYZr cqBHnDx2AnoP/LKtZ6tYr5mbrEwS85AKdUkKcKL+QNtDieFCglv+4bovA/N8I6rA8S9r /6ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=yIGBhHdGmmA6wfhq/C+I/3lptUPuCRf9dLkGG/+jm/0=; b=0VFXeEwBL8RdeAvHfUDf7U/S4V6iP0ouyFiAv+ng+sgHZuYi0V9nwXb4Xy7vBe/qYB 2vNVaPEAkkz9XpC3WgfppQaboDufeuVDG4xtA4f+juC08PTXQ95pIk321r/5g76oIxkX xmlHKhQUIUMJlEk4gqovgBZxFMYGIaIH4XBA89E8FKf3jzvudIzInJxbxHwlGZKBzR+f hC25gdnqw+WDKPS3DzCnEKgavQZdSy/phMhPquy8Odc1vK1gi2/gD1XGEiLlsovT147b WLoFuSztjhtWoQKQQsR67iqYXYACZ2JqJnZlIWuXJ7cAeCKuCiDjoG2Sie054LLTnHH9 UqcQ== X-Gm-Message-State: AOAM533Eup4wSGamh/0yasGXQ4Qk2b7zopa+qd+kipwO7/3xi8iVnX/r FQJTnbpiyU4HUsTbIZ1f77gmcmAMpl2HiWf2 X-Received: by 2002:a2e:9904:0:b0:247:ec95:fdee with SMTP id v4-20020a2e9904000000b00247ec95fdeemr3684456lji.291.1648117931993; Thu, 24 Mar 2022 03:32:11 -0700 (PDT) Received: from wse-c0127 ([208.127.141.29]) by smtp.gmail.com with ESMTPSA id g27-20020a2eb5db000000b002498222c8dasm286633ljn.65.2022.03.24.03.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 03:32:11 -0700 (PDT) From: Hans Schultz X-Google-Original-From: Hans Schultz To: Vladimir Oltean , 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 In-Reply-To: <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> <20220323144304.4uqst3hapvzg3ej6@skbuf> Date: Thu, 24 Mar 2022 11:32:08 +0100 Message-ID: <86lewzej4n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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 ons, mar 23, 2022 at 16:43, Vladimir Oltean wrote: > 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. Any idea why G2 offset 5 ATUAgeIntEn (bit 10) is set? There is no define for it, so I assume it is something default?