Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1063746rwi; Thu, 20 Oct 2022 08:15:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CuKcMjMRcXhv+vdP9hXtXT6ixugimjpJATqJzjm7vxa5HSxnYVxZAnZ7x3dFhkaMHgKJZ X-Received: by 2002:a17:907:7244:b0:78d:cedc:7a9e with SMTP id ds4-20020a170907724400b0078dcedc7a9emr11224862ejc.600.1666278906714; Thu, 20 Oct 2022 08:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666278906; cv=none; d=google.com; s=arc-20160816; b=IBORtnciN4AmQCk8bbdIG4yWcuqaLFRvLUnI8DNP6iufEhstzXCXlbCjdgO81zhBlN WGG/CLJZUxFFaWKs87W8t3MFox1Cof8Ozr28IuGgzar4zyt1LeFyWm/1Nxs/nZeZ1EIH UGPzLA5cQAAjCTEDeyLHw/yWWxNlJ0CCWrTti/8rNQ3m0hq0548u4doNw9PahV+a4YUq l1NVDX529sfCqT2/OQs6JRAH9J+VihvDFuafjkuagiCnQhrzCxif0r8MflWoX6kafp9I 1kWNfCnvzks1/HP57N2E54BhkBXpaPZm31rQJ5rWdoUEbO06z9Kglys072/0GmlMJMo6 Pa1Q== 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=lmwon3whKue/CVr8WrW952+rwBDr0RPAb1kYusMk964=; b=dSUOKMV0GzTeXLurCH+eWLx+8+SC0QxbcrYGVAyHz2OKAgFra+GvHfbHC/WoXMyxdL D3OXBbRxMi35pEbuU7T30mqJ4bXLBX5Ugz3rxOBkjnzMNDH+NEUG5mYZPgvJnTQoWcMd Fs0x5AG3ondYCD6gjWqQAFvndoRoy+zSZ5+JMb+nDN2HzafNOTABk84cu1ZoiOcuulWV UmGKjyUgu0G+KlFmZ5RZTdNtAOMYfze6oKNQm0BE58wU3R075mYJ6iOzehY5TPhgEjdE 61mHv6aJ3aKrLmIDlHxR+A1Nl3S+qt/rnsPHlF7DvRJtvBn8qlIe19mEH6c7NWO7AxgT OjWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h80IgPyA; 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 t11-20020aa7d4cb000000b0044d7a93e44dsi15170156edr.579.2022.10.20.08.14.40; Thu, 20 Oct 2022 08:15:06 -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=h80IgPyA; 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 S229740AbiJTOLP (ORCPT + 99 others); Thu, 20 Oct 2022 10:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiJTOLM (ORCPT ); Thu, 20 Oct 2022 10:11:12 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D32B170B77; Thu, 20 Oct 2022 07:11:11 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id r17so47672146eja.7; Thu, 20 Oct 2022 07:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=lmwon3whKue/CVr8WrW952+rwBDr0RPAb1kYusMk964=; b=h80IgPyAct7MK5zRLczRsF/1fG3PBVUcnjpRONux/l7QMniZAgQZF7KLJ/b8Xb57nV eNAHIneSfPVRYfQcjBU3UbTc8pcRnTz9EZFVSA2Wme8B885eczCZhwaStsn2GzrZ+2Yh enoURpRTuzQsVnhi3X9wa5HCqzTl9P29ZaZd/6G3Bqi5N6nREPYEZxVqPLjXeaVZq0Ps fqwmyJ29Jjtsc72JKjktuIL9cU5LUimNJgQZFh2PNUR3x6l8gj7g9UKGLd4ZQxSomeBp sbCQCd8BswmIENyTJcTrmwGkm6PzlkR13ILiaHEOGbZjT+4lhpa2zKxGvQ6fu5DKQUUB em4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=lmwon3whKue/CVr8WrW952+rwBDr0RPAb1kYusMk964=; b=KB991ka1v00FADRhHBeNS+LRvDsWvYR2tjajeBCpXYz1A11W44eIFzsXFs5F4QGcVc czXrk+kENlIO0WVTs8mmo1iOwrnePssU0MgaG3c70Ia+hBfWevESFuFpMfpZoKsRBOg7 4F2tyR2pnss0EzXiPQhFnvHYqC8X7yAkwPLVj5gD44BD2G/SoAsmt3JZj0TNRqw8MNbS D7VFZGrPf+8D3y1CAJ6YvRdyaMXQ6SMEexbTgRsORyWBoNn7CZcVNnO/kHnFi337Bhxv ZcaXAzV4x3SV9cY6Sjvze1KkNDrpMeqN90HOJky0MZOYCeEtOYmNMleNyXYfnhaecBrD sr2g== X-Gm-Message-State: ACrzQf1+zXGVj1KwUlx4nyrNJrP6H0h3vhtPeoFaPo6qRUCopWXrnB1z sIFE6botQASoVo3mlYA6m94= X-Received: by 2002:a17:906:a4a:b0:782:686d:a1b6 with SMTP id x10-20020a1709060a4a00b00782686da1b6mr11023934ejf.232.1666275069320; Thu, 20 Oct 2022 07:11:09 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id l17-20020a056402345100b0045cba869e84sm12232510edc.26.2022.10.20.07.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 07:11:08 -0700 (PDT) Date: Thu, 20 Oct 2022 17:11:04 +0300 From: Vladimir Oltean To: Ido Schimmel Cc: "Hans J. Schultz" , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v8 net-next 05/12] net: dsa: propagate the locked flag down through the DSA layer Message-ID: <20221020141104.7h7kpau6cnpfqvh4@skbuf> References: <20221018165619.134535-1-netdev@kapio-technology.com> <20221018165619.134535-1-netdev@kapio-technology.com> <20221018165619.134535-6-netdev@kapio-technology.com> <20221018165619.134535-6-netdev@kapio-technology.com> <20221020130224.6ralzvteoxfdwseb@skbuf> <20221020133506.76wroc7owpwjzrkg@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 Thu, Oct 20, 2022 at 04:57:35PM +0300, Ido Schimmel wrote: > > Right now this packet isn't generated, right? > > Right. We don't support BR_PORT_LOCKED so these checks are not currently > enabled in hardware. To be clear, only packets received via locked ports > are able to trigger the check. You mean BR_PORT_MAB, not BR_PORT_LOCKED, right? AFAIU, "locked" means drop unknown MAC SA, "mab" means "install BR_FDB_LOCKED entry on port" (and also maybe still drop, if "locked" is also set on port). Sad there isn't any good documentation about these flags in the patches that Hans is proposing.