Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp420715iog; Thu, 30 Jun 2022 03:27:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uI9WOmLWa5mAnKwyEfOMwNxiWzdhXuDoU1ooTCbrLdp5lEsWqLzai0vFSyWXqGiDzqkwkG X-Received: by 2002:a17:902:e483:b0:16a:6113:c1d with SMTP id i3-20020a170902e48300b0016a61130c1dmr13978199ple.62.1656584841695; Thu, 30 Jun 2022 03:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656584841; cv=none; d=google.com; s=arc-20160816; b=c0KjIdT52cPSwO5HNqqmwl6cNRC/znUKrx6NruvxPn1Zt5Nea2PAvF02AwZuqlrqZB qSHwMRr9/B3eX2LJ26phBr2si+khQncoF8OwmZQaebBwAsX2hnCmJHwvNc1jr40/sB94 Q6WyOsutooD5q7CQBlheVMTLy2/vmAHhYcFBdoUIwChBC4mxOfG6MGU3gS1/BPqgX6xs /WC6tUv2urGy5lJR/DPyOLyIpFZ7zmxCuPJYZL6/o35uscqADq8WOFmcUuxVJEIL6Uy2 2uooL2vLY0KeFsJnImJHqyhOaw/IFT/UR8wWP9ct+MS+LagvxFvU2TnChuaCB5JvhfoE 74IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=y5UsByWLMWEYobec0CN6KDFyOSWUvAwaZ8r1U9iYpCA=; b=TcTpUb1Jfui7Trl35ZKyV9Ep+Wn7vCUT8t1bg7kl4kkiWvUsYA8Zx3CLE+CKiw9v7K XaUuASeiWwUMRyLvmsg1w3U9RPYm5pGDy4kag215X/IWixMESlGjv/8JFRWrUDlkbVTt /0NG/7nFcIPBRwlzrU8oC/ZTdKPMRhXCtYk8hSZiQglI01otipyuwf0dVow5vz7K4Gz1 roJbPnJweMMlU60BbiLcDAoLJiRx6NjJE85NOUIlFS+OPDEvRs4C3RY4vzpdwA+n7OuU o2hr5dP0tZJTcJdCZOdeDcXdPAeHNzFq+uodDwSnUPDKuCKzm3Axa7eSsyU/vU3mkbk2 suUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=GSP8LRnE; 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 62-20020a630141000000b0040c9268b3e9si22982328pgb.723.2022.06.30.03.27.09; Thu, 30 Jun 2022 03:27:21 -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=@blackwall-org.20210112.gappssmtp.com header.s=20210112 header.b=GSP8LRnE; 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 S234192AbiF3KXG (ORCPT + 99 others); Thu, 30 Jun 2022 06:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235021AbiF3KWq (ORCPT ); Thu, 30 Jun 2022 06:22:46 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C6E457B6 for ; Thu, 30 Jun 2022 03:22:41 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id n8so11950499eda.0 for ; Thu, 30 Jun 2022 03:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackwall-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=y5UsByWLMWEYobec0CN6KDFyOSWUvAwaZ8r1U9iYpCA=; b=GSP8LRnEUC3YB9em437uwIQRy41VuAuO8g4G5+rvlN9pk2hRaUTIC7RPWtP+4/iLfX NbsuWSaMTClElRWXyedG58ZqOOrY3YChazC5x54rw4O8k7egy1jc2YTFgWJa0c+1ttes WDniBrpGY8CGEvQSfn1HIIBiabI/klkG7e0t/6oshc86Mmf1IwxQVWtQIdNQz47n2Wxq Ue14QtxdR3M9VfCM5ucJ5Mlfr4QiWIiaFaUzmo4H9QDF7WWHx7EXyIYXWUM/c6ey2xDY JLckjeXOeuKccRqfKBHHRBOHdgNiEomFXjbyXjpOSC/DPYhETa51oG8U7CQViQueT1hO iA+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=y5UsByWLMWEYobec0CN6KDFyOSWUvAwaZ8r1U9iYpCA=; b=KdI5pm6bD3JIShy2wQ9o1sGPw2/9IWUb7T3ZWT+sL6o0VatLZ7KSzyovdVF2OHhTLP ZW7HnP3y29V+2tuY1Xi+8AYxa98Rj9nUn3FPu7tdltue5C6PgcLizRs9lhiBWmm63uNH ZJXAKtKqaKAYhsL/ZEvhspipdWdioLuJH1QY2b+LRzg02+DsrrjxvuNP3eEuDIG3YU11 UVsD7PSbrkT5uMjyTaB0bJHsT4Qkr9CsaxrxzjL9LoLXR1kymJEPb+wAdzngvMAePo0d PnoMgJ6olVDyX6aipyhiY9GcLdC5FFzRh7v3Co8s7HZGsX3D8zfILI3OJEegSpwUnRSW mhuw== X-Gm-Message-State: AJIora8BrZH/PJ9tPokjYhzMbXhBgGA40ch2Ho/L60sLhbXYxiWw8aH4 SdG8REFmMRNkJu3jp6iWAO0jPQ== X-Received: by 2002:aa7:d484:0:b0:435:65b0:e2d8 with SMTP id b4-20020aa7d484000000b0043565b0e2d8mr10622588edr.373.1656584559605; Thu, 30 Jun 2022 03:22:39 -0700 (PDT) Received: from [192.168.0.111] (87-243-81-1.ip.btc-net.bg. [87.243.81.1]) by smtp.gmail.com with ESMTPSA id u17-20020a056402111100b0042deea0e961sm13022756edv.67.2022.06.30.03.22.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 03:22:39 -0700 (PDT) Message-ID: <47d8d747-54ef-df52-3b9c-acb9a77fa14a@blackwall.org> Date: Thu, 30 Jun 2022 13:22:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH net-next v1 1/1] net: bridge: ensure that multicast packets cannot unlock a locked port Content-Language: en-US To: Hans Schultz , davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Shuah Khan , Daniel Borkmann , Hans Schultz , Ido Schimmel , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org References: <20220630100512.604364-1-hans@kapio-technology.com> <20220630100512.604364-2-hans@kapio-technology.com> From: Nikolay Aleksandrov In-Reply-To: <20220630100512.604364-2-hans@kapio-technology.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 30/06/2022 13:05, Hans Schultz wrote: > This makes it possible to use the locked port feature with learning > turned on which is needed for various driver features. > > Signed-off-by: Hans Schultz > --- > net/bridge/br_input.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c > index 68b3e850bcb9..a3ce0a151817 100644 > --- a/net/bridge/br_input.c > +++ b/net/bridge/br_input.c > @@ -215,6 +215,7 @@ static void __br_handle_local_finish(struct sk_buff *skb) > if ((p->flags & BR_LEARNING) && > nbp_state_should_learn(p) && > !br_opt_get(p->br, BROPT_NO_LL_LEARN) && > + !(p->flags & BR_PORT_LOCKED) && > br_should_learn(p, skb, &vid)) > br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); > } hmm this is called for link-local traffic (01:80:c2), the title is misleading please include the real traffic type because it doesn't concern mcast Also please include the long explanation from the 0 patch in this one and drop the cover letter, it's good to have the info. Thanks, Nik