Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2031367imn; Mon, 1 Aug 2022 08:43:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7likcBNHTkjiKLUcaGzVYu+coG1cl3zr/ohezQ107vUWadBy+Bz4g5+PviRlfPMFAUSL/i X-Received: by 2002:a17:903:1c3:b0:16d:7864:ff77 with SMTP id e3-20020a17090301c300b0016d7864ff77mr17334424plh.76.1659368627946; Mon, 01 Aug 2022 08:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659368627; cv=none; d=google.com; s=arc-20160816; b=ksnVL/XAeG9CKscpuVeJN7ZYdzlV0RArhMWB5mZWPrWi0u4wPEX8XIZr07hxleyUP4 gYLZxXQ/8mAjkz8+cId9FcbmKhknpTAzkn1z/zQuqFNX8II1R1DjuUndd6kWvs+q8+HR zk5uHGRLXGjbGJ173jpTh4Xo64XDN9tZf85qbwvNDY2vkIG3rSIEugr+C0k+N9ryOpCW 0sBvnNylvtAdmCQB6WGz5gulB+T6WrIAF+2Cx3fGezmbpuJZCJFKSNhXgdnkO9M13SNS JbquKh+q61AcM0J9iRhjMlqS9DG2G/0oGRJuRdsOQuJS225Fuj/JC0vB4IxG0tEKE3tq DnZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=JgxToUOsGK/5fY2N9CfazoyzDXAKUg1VyvLalhGdbHY=; b=tEprS0AY7nfpZtSqqZ3zhaFjXEZ9Ezo5Rp8OcL+RoJGQ4T4XarvELuR1SCvEQYwGrs AnOdZiFrvEs+1bHgjQ4ljwk4RKQRZh29Wd4y0lyicPBDR8t+4jRuYRS07BW0svmXZdrp jq03iWpmS5VgpKenJsII6aGfM+mnF1wA5qSmnpoZUDf+0WDs1SIsYWn4fo5Ftpmx1Ru+ 5uQDCktEb8noRPMoMj74MpfcA3IGHC5eb8+GqJHE5ojiITnPcZyDDbxSPztzcBH1NG/z /39FpGQ5HlzDmrMxClcUIxpWYWH1YNB1/aJUuMwXVYjSlubV53NrBHVDnYhmaQP6RbJy /FmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a630217000000b0041a604c9d08si230671pgc.826.2022.08.01.08.43.33; Mon, 01 Aug 2022 08:43: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232249AbiHAPd5 (ORCPT + 99 others); Mon, 1 Aug 2022 11:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbiHAPdz (ORCPT ); Mon, 1 Aug 2022 11:33:55 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4AB2AE26; Mon, 1 Aug 2022 08:33:53 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 85EE41884D45; Mon, 1 Aug 2022 15:33:49 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 7F56925032B7; Mon, 1 Aug 2022 15:33:49 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 766EAA1E00B9; Mon, 1 Aug 2022 15:33:49 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Mon, 01 Aug 2022 17:33:49 +0200 From: netdev@kapio-technology.com To: Ido Schimmel Cc: Vladimir Oltean , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 net-next 3/6] drivers: net: dsa: add locked fdb entry flag to drivers In-Reply-To: References: <20220707152930.1789437-1-netdev@kapio-technology.com> <20220707152930.1789437-4-netdev@kapio-technology.com> <20220708084904.33otb6x256huddps@skbuf> <20220708091550.2qcu3tyqkhgiudjg@skbuf> <20220708115624.rrjzjtidlhcqczjv@skbuf> <723e2995314b41ff323272536ef27341@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: <79683d9cf122e22b66b5da3bbbb0ee1f@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 2022-07-13 14:39, Ido Schimmel wrote: > > What are "Storm Prevention" and "zero-DPV" FDB entries? > For the zero-DPV entries, I can summarize: Since a CPU can become saturated from constant SA Miss Violations from a denied source, source MAC address are masked by loading a zero-DPV (Destination Port Vector) entry in the ATU. As the address now appears in the database it will not cause more Miss Violations. ANY port trying to send a frame to this unauthorized address is discarded. Any locked port trying to use this unauthorized address has its frames discarded too (as the ports SA bit is not set in the ATU entry).