Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2504590imw; Wed, 6 Jul 2022 07:05:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uFiYG46gLr2A1MuL1V3KeG4AEwBAz6uXuz7dJipAqx/+ziTv+SnWe55nZ80dBNlOU9ANe0 X-Received: by 2002:a17:902:d2d0:b0:16b:ea70:6014 with SMTP id n16-20020a170902d2d000b0016bea706014mr13519580plc.37.1657116347752; Wed, 06 Jul 2022 07:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657116347; cv=none; d=google.com; s=arc-20160816; b=G/4EgY/+6s9mOQhhYJO0fflb5DDWw+TMFWuArpZi/qh4rdPTk6gQfpkt/VA6KZ9DG5 SKsYSqtKJa81Atg1GlnQQo6MgDAUa5ouhDHrEYho6/XndqC8xeT/uqp/Fc7cmaaDVAUu 6JG1fTVs96NIkOToqbGmycDE8S3PSYK8AMACmxlEI7I/ixrynU1+1OfGYMh3s3QygyHK YzewrD0bhKMGN4PUUeSfXD+vB3vKV0GviNVrS1anuQOqZ+e7qwLn06ngHAlJJLsRIGDz q4flsByh8KoaEhorhcI06SStqvu1EjZjBqwy0Xd+lufizoVjbfOMWRGS4398g07wlmr8 h47A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7VGDIlKV6gAV8St0jIFraWnG2EvF6VYrYLOYj9aX/Sc=; b=C0wtxY1y78q1ICNyt0UgXU+s8XN0xMOyx4XMuz5B3Osoj+4q7hiBblprQQJXukEy1G vcbYM38YNA3dOHWBxoGfTBnefdd3KdA1zFgw+3ntvmLiw+TaW2WNd6hJt2fFI9MtSjua IlYnlCMCAJZU6x4hIKm7yQmFZKU/SfDgiV6MfFo33kv7hqIcrSxwcC/6Ev2VGEnq/7B1 PzvJtys3XMQfBFxkD40KrL08m0QugoH7FyumfVo13uDf56HKG5yynuVj9LkKKINyNIpx J9nlauLfUSJa7p0Y+ep3xmA2AEARDObBhDvj0rEtLRvjlFXblsivZpqzj9SPabCXbSC4 kCcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmdcHEVe; 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 h9-20020a636c09000000b00411e30e0f24si10989004pgc.395.2022.07.06.07.05.34; Wed, 06 Jul 2022 07:05:47 -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=GmdcHEVe; 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 S233071AbiGFNse (ORCPT + 99 others); Wed, 6 Jul 2022 09:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233467AbiGFNsa (ORCPT ); Wed, 6 Jul 2022 09:48:30 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C88EABF1; Wed, 6 Jul 2022 06:48:28 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id h17so9013049wrx.0; Wed, 06 Jul 2022 06:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7VGDIlKV6gAV8St0jIFraWnG2EvF6VYrYLOYj9aX/Sc=; b=GmdcHEVeVUWW4yGaLtIyHZprjnISw5pW33LwCwJJ7/fDA6Hcfxby9OeEN4idkGEUJr tlORqJvsztOQN74ymQ3E4sWlPqW/6bsqHfxN0YB8ADgv1BjiKCRCjYDOh7lZQBb3Tgl5 BdUozqnyBMsdWXGwJFWBmb35kvsmDF2WLkvQp9mRsWZPmu6EbUWcypm8pcp2H715FnU4 ipRQuQXENffTeeb6WWoDToEU9RkLs53PtRT5L1YrX7g0bef34vYKUzk1UcPVf5OSAeT5 XYbuV7KUIBSkcnstqa0uuwHszYv7gMD72sraYPrXUBZl/08SljwdSVHfeHp5mJ+welFO bGEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7VGDIlKV6gAV8St0jIFraWnG2EvF6VYrYLOYj9aX/Sc=; b=4SGArS9OC4LziXmsCsYGBgdBut5nCJLRneBTOep1W7bemhUtqfIXrekVF67eIirlnl GGLZaa5QLfz07mIiFg03Zo69c42rKFquZpchF6qqqAD+Dl6igxNKpCHcp8jr3GIUkC9v 9x+jgKQ30wRklijN3fRNF03YA1/kFHmeOJ/ctjTU8/PJAHlVwI4IFJP8kCairBzNHU4k n3rjdd6EpcwSZBdOCEvPoyxWllYdm899foiwhOZZP4kaM7+SuxB045F738yXyqQRc2TV uF75t1EIMcSLKebub7a61VRGAfF1sl504bbiIBptTUq9TG8AY6+LQFGsNkRf08BhjTPG 5jig== X-Gm-Message-State: AJIora+rB9gU/Ub/Zqaq0Ru4H+PBZ1X7Os2KqIhodVOtQqoAp0U3/2rj HDZ4UsbHFpQD1afYGZpnT48TnQ6xwuXsYfhKSSo= X-Received: by 2002:a5d:658d:0:b0:21d:6e90:c2ed with SMTP id q13-20020a5d658d000000b0021d6e90c2edmr11899137wru.113.1657115307223; Wed, 06 Jul 2022 06:48:27 -0700 (PDT) MIME-Version: 1.0 References: <20220524152144.40527-1-schultz.hans+netdev@gmail.com> <20220524152144.40527-4-schultz.hans+netdev@gmail.com> <20220627180557.xnxud7d6ol22lexb@skbuf> <20220706132834.rdw7mmpbwt55kt4r@skbuf> In-Reply-To: <20220706132834.rdw7mmpbwt55kt4r@skbuf> From: Hans S Date: Wed, 6 Jul 2022 15:48:16 +0200 Message-ID: Subject: Re: [PATCH V3 net-next 3/4] net: dsa: mv88e6xxx: mac-auth/MAB implementation To: Vladimir Oltean Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Hans Schultz , Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , 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 Content-Type: text/plain; charset="UTF-8" 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, Jul 6, 2022 at 3:28 PM Vladimir Oltean wrote: > > On Tue, Jul 05, 2022 at 05:05:52PM +0200, Hans S wrote: > > Hi, does anybody know what it going on with this variable? > > struct dsa_port *dp ->ageing_time; > > > > I experience that it changes value like a factor ~10 at times. > > Could you be a bit more specific? Are you talking about STP Topology > Change Notification BPDUs, which trigger this code path? > > diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c > index 7d27b2e6038f..9b25bc2dcb3e 100644 > --- a/net/bridge/br_stp.c > +++ b/net/bridge/br_stp.c > @@ -671,10 +671,10 @@ void __br_set_topology_change(struct net_bridge *br, unsigned char val) > > if (val) { > t = 2 * br->forward_delay; > - br_debug(br, "decreasing ageing time to %lu\n", t); > + br_info(br, "decreasing ageing time to %lu\n", t); > } else { > t = br->bridge_ageing_time; > - br_debug(br, "restoring ageing time to %lu\n", t); > + br_info(br, "restoring ageing time to %lu\n", t); > } > > err = __set_ageing_time(br->dev, t); > > Coincidentally the default values of 2 * br->forward_delay and br->bridge_ageing_time > are 1 order of magnitude apart from each other. > > [ 139.998310] br0: topology change detected, propagating > [ 140.003490] br0: decreasing ageing time to 3000 > [ 175.193054] br0: restoring ageing time to 30000 > > What's the problem anyway? It might be a topology change as you indicate, though I am not sure. So I am not using that variable any more for determining the ageing time for the locked FDB entries, but instead I have made a function to read the time from the chip instead. The problem with that, I have mentioned in my latest reply to the mac-auth patch set...