Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2515732imn; Tue, 2 Aug 2022 06:01:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5UNzfHe3OQrtYoECghX5JfrPutGpzv3x0MkAvAM9obGgqf6SWXVgyxLUrZOEiut2dsGu8G X-Received: by 2002:a17:90b:1c01:b0:1f3:2f26:e7b2 with SMTP id oc1-20020a17090b1c0100b001f32f26e7b2mr24772048pjb.111.1659445285413; Tue, 02 Aug 2022 06:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659445285; cv=none; d=google.com; s=arc-20160816; b=K2zjPgiCasl/5oIFwXJv1jXpqy5VHnuS/YMGYrOtcJxI0IQcMm6dJ2L5jtoflPCwX6 MpsxN7m7MKDcL9kP15/AmgbOWfrsz2VnaGs1vaROe0FxHQgSrAG++xHdut5t7XxBmvsk eWHyhmNgg82t1Z8LjcUsf9f22XVSVwpN+wBeipp9zbChPoyEBJ4fRdkeyFiEyVegAj0q V6CBr+PZVI19yVUn1nLNB3MuR0XjWJ/hMTasTO5s8yvMX/50zWRTscLbhnxdWsmQpiB7 km0nFCvCAJ2tHGh3wfiPHTLIrUvkR5EScz9vcDZOzTSE39cCJa6Klyb+Mx7mdWjP04QL x7eg== 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=E8V++cEvzH1uZBAH1C1QkE1N7p/2qnwDdzF5HpfzCUY=; b=Inc0CCCvuGB1mkG4EeBssZsb56PtQv/qZvjKfU9wEUx+yLTpbH4DKVR+oLI6Zv7dUd z1mltO5ccLDO9XQCI5Vw/yhuatfL0r0Vs0UtGcJ0EQXnfBGra7HIi8tDW+xUl7SyP4ag A6zFDLa60Vrued3uEhjY2DvxpQqi1pst5nMPqN8O/TexaBkzXnXCHx0t8zmbP4ogGFos pI9xkOpkU6O/7CjHHhaWpBlu78Dp0Ov6JGscBrohH/mmVNZ/d8VMI3bvJVdFo/YRGsvd T+MZk0nQn/N5PI7IdtLGn3/J28dJu9tTxvOIq9gg9qkUUl6gIXCD6lzRt9lD3plAr9Ub kU9g== 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 p19-20020a170902b09300b0016c1fcbe411si14049190plr.195.2022.08.02.06.01.10; Tue, 02 Aug 2022 06:01:25 -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 S236701AbiHBMy5 (ORCPT + 99 others); Tue, 2 Aug 2022 08:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236248AbiHBMyy (ORCPT ); Tue, 2 Aug 2022 08:54:54 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E668214D0A; Tue, 2 Aug 2022 05:54:52 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 9B01318857C4; Tue, 2 Aug 2022 12:54:50 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 9324925032B7; Tue, 2 Aug 2022 12:54:50 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 8A8CEA1E00BE; Tue, 2 Aug 2022 12:54:50 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Tue, 02 Aug 2022 14:54:50 +0200 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: Ido Schimmel , 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: <20220721115935.5ctsbtoojtoxxubi@skbuf> References: <20220708091550.2qcu3tyqkhgiudjg@skbuf> <20220708115624.rrjzjtidlhcqczjv@skbuf> <723e2995314b41ff323272536ef27341@kapio-technology.com> <648ba6718813bf76e7b973150b73f028@kapio-technology.com> <4500e01ec4e2f34a8bbb58ac9b657a40@kapio-technology.com> <20220721115935.5ctsbtoojtoxxubi@skbuf> User-Agent: Gigahost Webmail Message-ID: 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-21 13:59, Vladimir Oltean wrote: > On Sun, Jul 17, 2022 at 05:53:22PM +0200, netdev@kapio-technology.com > wrote: >> > 3. What happens to packets with a DA matching the zero-DPV entry, are >> > they also discarded in hardware? If so, here we differ from the bridge >> > driver implementation where such packets will be forwarded according to >> > the locked entry and egress the locked port >> >> I understand that egress will follow what is setup with regard to UC, >> MC and >> BC, though I haven't tested that. But no replies will get through of >> course >> as long as the port hasn't been opened for the iface behind the locked >> port. > > Here, should we be rather fixing the software bridge, if the current > behavior is to forward packets towards locked FDB entries? Yes, I think that locked entries should block egress to the respective hosts behind the locked port, which should be fixed in the bridge.