Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5872637ioo; Wed, 1 Jun 2022 14:36:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwii87kYU1nzv8ykmh6IYPm2Lq+783JjXczv0cEYN914JAxCkJ+/Lp2f1Tbrv1b684SSRPY X-Received: by 2002:a05:6a00:1c5c:b0:505:7469:134a with SMTP id s28-20020a056a001c5c00b005057469134amr1633608pfw.16.1654119401155; Wed, 01 Jun 2022 14:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119401; cv=none; d=google.com; s=arc-20160816; b=gdFl0bEFaC/ZKY24dfDDx1VQ2ZHwJLsUoEJ5KTDT5STGzggmQEn8FrH6h/ZWFLYV/Q hpTzidKwzsiEmIEZp2CV18JLEy8+WD60zpZgCup/aoQpbueTVo4JJlLW/MDZLLzolBKH TGicgJFjFRfA72M/gZzGVckZX16y//Nr3gdYeIovV/JsP2NQJ0itlkAFE/Ax7I9zY14Y PO6Akjatvf9giVnBcrMTfluNf2ftJedP1BjhPj3LESj7a6Qz/7XwS8qrKV04oBfE4FpV Rnsyu6eJsBttKooLtlcshMxRjh+qXaGeZRKJdFGFH5fAYoB4fxCxlSbW3eJBptJZ3Cx4 AORQ== 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=gw2op1nbtK3mVTVBPWekT+bSJAQAjZ1vIS0T45KFcIQ=; b=pgsX7qCuTrn/HllLVtHZ1U/gQXpvXT1g+xJuotrQqc0Qqvb0zbWdUZ0Ut5/kXGcF65 NBVfJHPrTBpA4PuNZle36wO9zSku66KVpA9hFnf5FHWgmJu5tVjPmlbCNDDWkFbGa7/+ RN/EL+CQGg1lzFtuhmbLVz/b3Dp1Ob6XT5Ae941xdWdi1t3tKS9Hq+p20OdbrIqq7Kg7 96l5I0dDpbHR97tgnkBnWpDR802Ghkq1p4Y73iIMbFQDgzZC3RjEatk3A0V1/7cBHf6b 9bjD5lEhJXRMpt5dn99LfYRInlHCnSfdAeecqDzakm1Nd1AE3lVn4B2uvIJQfaxhWVD6 OkVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iXzsl86G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1-20020a63f241000000b003db238f2a93si3615312pgk.815.2022.06.01.14.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iXzsl86G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8432E26A0A8; Wed, 1 Jun 2022 13:43:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241167AbiEaJej (ORCPT + 99 others); Tue, 31 May 2022 05:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245306AbiEaJe1 (ORCPT ); Tue, 31 May 2022 05:34:27 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9504490CCA; Tue, 31 May 2022 02:34:25 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id i10so1114269lfj.0; Tue, 31 May 2022 02:34:25 -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=gw2op1nbtK3mVTVBPWekT+bSJAQAjZ1vIS0T45KFcIQ=; b=iXzsl86GOZS+imC0ArAHsoDuo4IhbRivbe1549gE+1CLhRDLVbYVAAnQEHbcFq81oV x2a/pQ779e0xE79rsATIaTBWiEqi3l6fmQhBoHqaXerolirKxgx181e2vUrm6zNeKDd8 FByKn1yB4UJGpvD6/6WesdI7RvOmE7xR299sKuHbQr/mIc6lSaVxuq8lf7CKYpKt+Whi IcAoU1G0kUR+IDBlnXPcUEmhXQ2p6IdPHJw2YhBaICZ5/tewHdA7QasPcMPvn5GEIQxC CBAn0nAyc2OHRZfk/YBCtXJRqaQ4fABslZ7cFsN5C/0S94I9Mo6HAQ4hFlva1tif02BQ yMQg== 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=gw2op1nbtK3mVTVBPWekT+bSJAQAjZ1vIS0T45KFcIQ=; b=jw5nA424eM4wUB6fh8rH5u4nFaHHa2TPLhhTHrtSkQnrKvrLX0c9/sX94QHfq0mCB0 Vb3lRzN8gESUKjK8RlWdBfEITk8ao+j97F2V814+50xSrYAGdTgOwTo1w8FCBwJ4zrqN iMykMaZ3YJKyVah3SMxiVMchUA9RfYMVD8VKW/geBHw2h2NK7LGMwZISdzadKetGWQqV HMLpNWtVNXjDDo3Sqmn5N/qK6WU3QWoDse4cejT0uYVxy4blsoGJq79aCL2aKxmRKDtP tcsyF6bmh6RPEPFZsmV1BbeTb8PzTZn+snjVyqZVgVucMm9ZWADkd2Jr1Xh1gKBB7Z/T gOXQ== X-Gm-Message-State: AOAM530W1xZEusfD0ABJDOBCrP2M+ZKtux0ffMCZncZQ+92z8y3vjFUo 6cBqGq/wN1cOLTXWljUyEzB9C4Ldvho= X-Received: by 2002:a05:6512:33cb:b0:477:aa55:5f3e with SMTP id d11-20020a05651233cb00b00477aa555f3emr44429766lfg.488.1653989663734; Tue, 31 May 2022 02:34:23 -0700 (PDT) Received: from wse-c0127 (2-104-116-184-cable.dk.customer.tdc.net. [2.104.116.184]) by smtp.gmail.com with ESMTPSA id w25-20020a197b19000000b00477c1172063sm2855486lfc.165.2022.05.31.02.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 02:34:23 -0700 (PDT) From: Hans Schultz X-Google-Original-From: Hans Schultz To: Ido Schimmel , Hans Schultz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , 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 Subject: Re: [PATCH V3 net-next 1/4] net: bridge: add fdb flag to extent locked port feature In-Reply-To: References: <20220524152144.40527-1-schultz.hans+netdev@gmail.com> <20220524152144.40527-2-schultz.hans+netdev@gmail.com> <86sfov2w8k.fsf@gmail.com> Date: Tue, 31 May 2022 11:34:21 +0200 Message-ID: <86sfoqgi5e.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > Just to give you another data point about how this works in other > devices, I can say that at least in Spectrum this works a bit > differently. Packets that ingress via a locked port and incur an FDB > miss are trapped to the CPU where they should be injected into the Rx > path so that the bridge will create the 'locked' FDB entry and notify it > to user space. The packets are obviously rated limited as the CPU cannot > handle billions of packets per second, unlike the ASIC. The limit is not > per bridge port (or even per bridge), but instead global to the entire > device. Btw, will the bridge not create a SWITCHDEV_FDB_ADD_TO_DEVICE event towards the switchcore in the scheme you mention and thus add an entry that opens up for the specified mac address?