Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1354169imk; Mon, 4 Jul 2022 01:03:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqV6qVhcODOPdy3JxNqVDcyXO9g7FfzYBiGxaSA70UetFxKkrgKSaK3f18cSdeiwzzbsmR X-Received: by 2002:a17:906:6989:b0:726:f129:1748 with SMTP id i9-20020a170906698900b00726f1291748mr26888784ejr.495.1656921795040; Mon, 04 Jul 2022 01:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656921795; cv=none; d=google.com; s=arc-20160816; b=Kh3e1OPBCfj1F5MHyZ/ICHbuH2TB6SG3J6TPqnT8CxZMKkJ0jl6g3KEuyUXMFNvT8i F0XCV9kZ74LWPiUgiJp1rVXc1BngCujLYWe+V2waqrvlDBjRntvY+T9EK7pXTFGIwG1e i9sup7QjfCMfiVpmSO3bd2vTK9+Zfsa1d8GYvjjcHyudAi8X02Ra8E37kTJ/0mAP6PaE CDYPpWkZ0/PeI08A3SeHPGhUiQnBsbq/6lxEwQh2zsFIQz0XcGMVAZgaL+d/EVxFF3Sl L06hRVt3Uvig0CeqxIWmK6WjPzBUId/wDSIsJ8F2hiAJW7YEkGEAp1CtjbEiiE1PzDp7 eVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kBt8UkN3aWCTiSF8Lh8xZQRr6v5h00YtDHTaqSFljec=; b=nVEbw627newijuLI65Kuez3z2klQW/S57rTXkZou/giYyYDqi80pDofKYxZH0Kin3z YEW+J4k3BX4qv71lJ4z1354y27Ijgg73MpCkd22qixUAdObyS+oNMyETlWdCO/carsuf YaZkxap6gNhon/QFHDhAHKUYsNxibw78uAormkO8ErziUtPCFtFgbhmhG2le/ivPxHbC 0J6rv8l1w2Ln+aboswEZtCyTs3WgL/UUHzc4A9z2tubhItPvnhEt02g8if9V33xiqBTd NXlDpE23G5O0JDmNfu/VYTn5pIFTtX51xxAUtB2IBNnyt1OydPjMab2aqZSSK1gys6V/ sPxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cC7gFTPZ; 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 g14-20020a056402090e00b0043a0ca47337si7056874edz.185.2022.07.04.01.02.49; Mon, 04 Jul 2022 01:03:15 -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=cC7gFTPZ; 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 S232258AbiGDHyq (ORCPT + 99 others); Mon, 4 Jul 2022 03:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiGDHyo (ORCPT ); Mon, 4 Jul 2022 03:54:44 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C81619FE2; Mon, 4 Jul 2022 00:54:43 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l40-20020a05600c1d2800b003a18adff308so5149061wms.5; Mon, 04 Jul 2022 00:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kBt8UkN3aWCTiSF8Lh8xZQRr6v5h00YtDHTaqSFljec=; b=cC7gFTPZu/aPJz87RZe/z5TpXDPurO2A6Cb/+oswtY3Sx2RhvcCJBPKJ/+T2UF17J1 RBMUfv1aH45VHiF5kxJprtroCBFRVGeGdSdeApWbVy7NJryexftlPSVOR+aZTfDNcScP FL0egZZgY9fTZaAka+QZ/S6AwirONIg1sycBSUdTAVi18Q/q4ojoXEPnCuJbE6UOJJsd okRmwOIlFkHHVuCSV0qwt1rdwRwk1JEuTgJsazs3DSjIfZxNyZCcCcLBTC/ISt8Fcioc r+YKMeRKDYfSIV0PCSYSlUYta8wsU8jgiqsefwiPxfIpGzd1FocS4pOAW3vC0jxUtQNJ KSQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kBt8UkN3aWCTiSF8Lh8xZQRr6v5h00YtDHTaqSFljec=; b=zYKCGTUe9fuX1dBg2ASlxG9Wc28uKhB9one4nh0tAe8Gi+4o8Hv2XgiiF9b1SlLhv2 pE3eE2/q54ZXVg+Nv5lwiKhCL2Dz0bIic+CRNvlq9r+lmfxyA9qQr1FXIPveAUTEHRcX A1dYzORZccRUTzhjXqa7nDjQo7qmCqvG8rIhJ9NhpKcRJPybJyNuStfMIuVpSieuEDsf 4OH521iBKdrP6/T70c7q7nN2jab42GzCA3sD//dbeVVRZURGmk/nwZKnwzA7byVzjMD7 gIXoG2tdbpVV9c+hv2xdbJ+wqw8bGfVn+q30NHHScsDg38+5ovH64XnNUtf9xTugPKxn WLgQ== X-Gm-Message-State: AJIora+5RZtAPoBfRz2ISSwy8rAn64w0DcNHRzHtZXUnuGwAXeDZVYAm CBMFb57SLnH38q6o7YWgKX8BoMMfMWzMGd8UzrA= X-Received: by 2002:a05:600c:4f81:b0:3a1:a8e7:235b with SMTP id n1-20020a05600c4f8100b003a1a8e7235bmr4385163wmq.149.1656921282262; Mon, 04 Jul 2022 00:54:42 -0700 (PDT) MIME-Version: 1.0 References: <20220630111634.610320-1-hans@kapio-technology.com> In-Reply-To: From: Hans S Date: Mon, 4 Jul 2022 09:54:31 +0200 Message-ID: Subject: Re: [PATCH net-next v1 1/1] net: bridge: ensure that link-local traffic cannot unlock a locked port To: Ido Schimmel Cc: "David S. Miller" , Jakub Kicinski , 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 , Hans Schultz , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 > > IIUC, with mv88e6xxx, when the port is locked and learning is disabled: > > 1. You do not get miss violation interrupts. Meaning, you can't report > 'locked' entries to the bridge driver. > > 2. You do not get aged-out interrupts. Meaning, you can't tell the > bridge driver to remove aged-out entries. > > My point is that this should happen regardless if learning is enabled on > the bridge driver or not. Just make sure it is always enabled in > mv88e6xxx when the port is locked. Learning in the bridge driver itself > can be off, thereby eliminating the need to disable learning from > link-local packets. So you suggest that we enable learning in the driver when locking the port and document that learning should be turned off from user space before locking the port?