Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1228141rwl; Fri, 24 Mar 2023 07:53:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZHL9nDHwmi83UnBGoAbL4RmGUtfiCKqJPgiyhhRixr36tpsDeL+oGAq87y5DI0U/PyYnoV X-Received: by 2002:a17:907:c20e:b0:93e:6f52:ac0 with SMTP id ti14-20020a170907c20e00b0093e6f520ac0mr1395395ejc.14.1679669608791; Fri, 24 Mar 2023 07:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679669608; cv=none; d=google.com; s=arc-20160816; b=rSeIE9+zkqlVORRt0amhALBs9+fDmUqnY0unw2NYCH5aJZ4gS+7AnASo98j07gPqpD riTkW6pxMZIX3pk6NUq+EJuFMR0MhfSnkc75Lz0AFul1697d3IuxW70TkuPPRG6IJH5K uXnfDR5KQ9Qv3NAFLCJj+Qi3OrsRgoo4D+5Q4xNGOIOitbyPRHPB0qzH5HfvmSEghI1I DxV1FhX1Vf0Ixmf+1X2xCzEijkWwI0vmbEqc/1Xw9tKhnUv9dKr1mZHcZXvFdyhy56qg RwUtNYVgq5HieWNhZCSH1+8bmOLoq1xM96/7fbZc7itoSRir8lFIsmk0YsnLXuyR3mDU QiPA== 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=w8i/6q7CgrLLxreHR0W5NCOW5wTxfi6u94FOfCVLsm0=; b=zHqbuA0VQ8oWx9boQMuC9LS3t249dulVgnyCxqoTfXbZyRa/w+DYGkUbPOUDGmgiP8 CN5EfpXLS9GY3CT4ubSmDAIv7zJRMJ6monqZwr4cfXBUZyj8cMweYm+H7JTgoJDekuR4 c89I0uM9wpqUvl1C3GK9BaFNbInVYMWxNV7Ayy9b1yTZ2Z5kZzLEzYnX7ocrAzkm30ct BwRw4KOAYvKljM4cMNOYka2mITqrjIiXhmp4CRiTPEfCEEcG1ZT3QVh5f62WeuRHxbPt IkJGK91GIa+gofcQbwpo3o3+VCP1J3IolFNGOWy0LmtyzcDySOgkKSRXiI2zvzJYPAi8 5xqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Zk3c3TRL; 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 kn4-20020a1709079b0400b0093e3156ba08si1633277ejc.991.2023.03.24.07.53.04; Fri, 24 Mar 2023 07:53:28 -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=Zk3c3TRL; 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 S231684AbjCXOts (ORCPT + 99 others); Fri, 24 Mar 2023 10:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232195AbjCXOtd (ORCPT ); Fri, 24 Mar 2023 10:49:33 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 769361990; Fri, 24 Mar 2023 07:49:21 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id eh3so8774048edb.11; Fri, 24 Mar 2023 07:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679669360; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=w8i/6q7CgrLLxreHR0W5NCOW5wTxfi6u94FOfCVLsm0=; b=Zk3c3TRL/FP6vnqOFa4Destc9U8oW93K0Tt67Z9wd8D4dQ8SwzRZe2DksNhRPQYo3M SP5nzHrVR//sGHv8YdyGR/OvPSRSh1piHbPqnf4bZIVkpZRYMlF4UhaJ8UikcX/8JeID eRtxVf7ZdEgW7Di2K5k9VRpp1sMdEZ42o2masVQfalkmq3tCFsYaYVDhU1Rij1hzphbI 50YeqcoutdXco//y6pkv2/5qVsbMxpLD4JMSvUQES629ddgu0aEYmVgIPjDLodE8xiPO HYiczflbpiSGtqQbRVc1V74NRXBiyC24TrdpSgr9n2BZvXKqh0gGSJ1Iw2dRHonvziUU PdQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679669360; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w8i/6q7CgrLLxreHR0W5NCOW5wTxfi6u94FOfCVLsm0=; b=wMLjy4bX1K3ej5plzWa2L8kg69O6w45QG1YS7E8vpSsmVy4rcdo7nzghfL300Ckc9K j8HfQ0Qup46E3x/Lr3NHG0oZbW6f5kFJLXQVVKRPpPqulFs3u2qOFKIu2M6GpFFOXrrJ 03SfH08QNlofwScCvdy0HegmG0vWEY8smZD0xhwdPaJfqtvtDMJnrEG538vSVaHxt+Zl mLNd8u2kbkE/Ul7HTrZPlqvbqQDdIFVuBpvviG1ebOk/7KN6c+iNEUE09fyAIPh3AFXD js/VEeyLxWb65w/aBgWTu3dJY7y56k76tmFneb8zoOQBbiLT+zg6YjMG9WpsT7tABTO6 /VRg== X-Gm-Message-State: AAQBX9dCTjK8p9v028a2ejWs6A+TH20cw/2UFhWlQDgHPbEUCYn6iu4L EYiHJ6vTAm33V7SVUpQcWn4= X-Received: by 2002:a50:ed11:0:b0:4fc:b51f:ff50 with SMTP id j17-20020a50ed11000000b004fcb51fff50mr3102806eds.30.1679669359773; Fri, 24 Mar 2023 07:49:19 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id xf9-20020a17090731c900b0093debb9990esm1303227ejb.212.2023.03.24.07.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 07:49:19 -0700 (PDT) Date: Fri, 24 Mar 2023 16:49:17 +0200 From: Vladimir Oltean To: Oleksij Rempel Cc: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Woojung Huh , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, Nikolay Aleksandrov , Roopa Prabhu , Ido Schimmel Subject: Re: What is the best way to provide FDB related metrics to user space? Message-ID: <20230324144917.32lnpgtw5auuyovy@skbuf> References: <20230324140622.GB28424@pengutronix.de> <20230324144351.54kyejvgqvkozuvp@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324144351.54kyejvgqvkozuvp@skbuf> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Fri, Mar 24, 2023 at 04:43:51PM +0200, Vladimir Oltean wrote: > Also, some DSA switches have a VLAN-unaware FDB, and if the bridge is > VLAN-aware, it will have one FDB entry per each VLAN, whereas the > hardware table will have a single FDB entry. Sorry, imprecise language. I shouldn't have expressed this in terms of "VLAN-unaware" and "VLAN-aware", but rather, in terms of "Shared VLAN learning" and "Independent VLAN learning". Where the software bridge implementation uses IVL, certain switches might use SVL.