Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3669000rwn; Sat, 10 Sep 2022 17:41:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rHGlrqkvCYvYKEltx8qMP1bcQbaTUFzKXMxyPQ/wFj3qGHfnoxsMoLx2nzbD6A9AdbCLy X-Received: by 2002:a17:902:e5cc:b0:16f:1e31:da6c with SMTP id u12-20020a170902e5cc00b0016f1e31da6cmr20322686plf.66.1662856913111; Sat, 10 Sep 2022 17:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662856913; cv=none; d=google.com; s=arc-20160816; b=yqywSLWPZlGuPrC+dj9+uZyW6qZ6YUqXC/eP/zUtWr31ubAbT1BVv3Fpel0X/UToll o6t1WzLUVvMjmPQox0PMbRV2J7RX12S7dpAKv0c5PHqk4tsZr8j9e33cRDXsuvGKyf9g eXPGC0MgwoJfVirC8LL8LyqAm59isk8BqdhtWTD4bVSorjMboa6e9hNnpQ2ZuOYZYShQ CrzosQqVMbtCqny34d1Sl8g//1mQ7rZd76zng4SjPwineAebZ/NLjX+OGCKv/h7rGR9D tP5OtIlWTj9Hm0sgd8ulleYdZAJDNN2ibK9CEX0lfweKCDMhrm3d56vRdiXDpFhju8KF tPMA== 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=bppXW6VDR+pb+O0s/GBMgHjeo0dyk4Z19CwR9nRdUqY=; b=oM/0+kTNh6ZOGmVw1wKsB6SjzZZduW9HhrADMCOBwnEjJER6iQB3a7BhoIbP3DA/7i 3C5OJKF1sRSfv6yi5s3NA0a6s9uqg7KSYmd0CeZgcu2EeYgKA2q0c63xez8+Zp6bAeWT ODO+rWxzn0oLkTeiiue6QCCuI2yy5gOLrfkWKwVS2u4j8DABN2r8dvhuQnZGrRcPCZyc RAdQ/+XUJLoHMGIHVg8Pg48VRTRfXY1o6WMqRvD9lkg7DHvWULgxsf2Ai8w+5LAsONl7 1xVXyBJXnUxXdO9A9f9CWrMqgiugWA9+/w95oimrZEyA//rfWBsHbP2ZBtN7Arhf67Ss 5J/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="I/dbdccp"; 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 v36-20020a634824000000b00430ae3ac71csi4821836pga.267.2022.09.10.17.41.20; Sat, 10 Sep 2022 17:41:53 -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="I/dbdccp"; 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 S229597AbiIKANz (ORCPT + 99 others); Sat, 10 Sep 2022 20:13:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiIKANx (ORCPT ); Sat, 10 Sep 2022 20:13:53 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8DEA2E694; Sat, 10 Sep 2022 17:13:52 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id z21so7886441edi.1; Sat, 10 Sep 2022 17:13:52 -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; bh=bppXW6VDR+pb+O0s/GBMgHjeo0dyk4Z19CwR9nRdUqY=; b=I/dbdccpmFyof6NN2fUQMmS80Kye7WCB0cQOnWsCWr6kbYBSqsVNXYvpajN4WTXs5N PXhbKdVGq8qaZvgMB0u24QvcgieMU5sZBUZfzJF2amKkSCjUsiAOitoc/N3eYjx4+nbU UkvrRIvjsJnsPK6sjy/HtdP6xSLhmtUOAOXnyRclsyX3fiW0yb7AKTCDLDXVMQdlnFWk mil8xpZZTzvqkglqCqTqsMJxVx8FC4xg6utVXrjwvfOZdCzMwfSKP+sa1fb1IAQfgDPQ pESQws6EXy9LgJ4AVvyxftq7I/HfsvAzi5cWrDfXOlqoYDBtxh9cVpuCsIrL0Hca4ds+ PlOQ== 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; bh=bppXW6VDR+pb+O0s/GBMgHjeo0dyk4Z19CwR9nRdUqY=; b=6i5RrHr4AIjiu4minWhu7eZ3nuHOj7o92JMK4qN0UHDPI3qEhDpsuZmmvOC10eq96p CDxef1LzefhJQeCAmB+MPtgJW3oYtVZhM+Ql02YwQLJObKFwreCz27ofFuYKrOCIXSa+ mZxnuYpCqDoFcmzylb+M9BO69FYizlAgzTDK0Qlif+X0snQQNJFD8z/4bPz2dhtZVxmq YO0ljaIEYU35jF+desU79zF/PKg7miDpU8SlfSSLnB0wPfevHlx4/id0wMzU1EE2qEUe xjWLdPDfneSXNEK2ILQkNawYHHBMrKzeCfhH7AuJLtHXswTgS/uNrnj6/lZTxmvWbEzi V0yA== X-Gm-Message-State: ACgBeo30soNkELZdwX8mfJ8aAYH+NLM4S0JjGspeaDm2n4Q1YVWOW20p J26aeEtDTIXhsdq9WpbAPys= X-Received: by 2002:a05:6402:110d:b0:451:9fc5:fe7f with SMTP id u13-20020a056402110d00b004519fc5fe7fmr346191edv.200.1662855231160; Sat, 10 Sep 2022 17:13:51 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id c18-20020a17090618b200b00773f3ccd989sm2265945ejf.68.2022.09.10.17.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Sep 2022 17:13:50 -0700 (PDT) Date: Sun, 11 Sep 2022 03:13:46 +0300 From: Vladimir Oltean To: netdev@kapio-technology.com Cc: Ido Schimmel , 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 , Christian Marangi , Daniel Borkmann , Yuwei Wang , 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 v5 net-next 6/6] selftests: forwarding: add test of MAC-Auth Bypass to locked port tests Message-ID: <20220911001346.qno33l47i6nvgiwy@skbuf> References: <69db7606896c77924c11a6c175c4b1a6@kapio-technology.com> <5cee059b65f6f7671e099150f9da79c1@kapio-technology.com> <8dfc9b525f084fa5ad55019f4418a35e@kapio-technology.com> <20220908112044.czjh3xkzb4r27ohq@skbuf> <152c0ceadefbd742331c340bec2f50c0@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152c0ceadefbd742331c340bec2f50c0@kapio-technology.com> 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,T_SCC_BODY_TEXT_LINE 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 Fri, Sep 09, 2022 at 03:11:56PM +0200, netdev@kapio-technology.com wrote: > > > > On Wed, Sep 07, 2022 at 11:10:07PM +0200, netdev@kapio-technology.com wrote: > > > > > I am at the blackhole driver implementation now, as I suppose that the > > > > > iproute2 command should work with the mv88e6xxx driver when adding blackhole > > > > > entries (with a added selftest)? > > > > > I decided to add the blackhole feature as new ops for drivers with functions > > > > > blackhole_fdb_add() and blackhole_fdb_del(). Do you agree with that approach? > > > > > > > > I assume you are talking about extending 'dsa_switch_ops'? > > > > > > Yes, that is the idea. > > > > > > > If so, it's up to the DSA maintainers to decide. > > > > What will be the usefulness of adding a blackhole FDB entry from user > > space? > > With the software bridge it could be used to signal a untrusted host in > connection with a locked port entry attempt. I don't see so much use other > that test purposes with the driver though. Not a huge selling point, to be honest. Can't the blackhole flag remain settable only in the device -> bridge direction, with user space just reading it?