Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp391426pxm; Wed, 23 Feb 2022 02:44:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzANwkTi90Sd0lcdDkIzkwVbOSwXMQdU/F/UuTynl7m/M2TQJJg5IIfSBq7kvsEWlLBTIsS X-Received: by 2002:a17:90a:b398:b0:1bc:3ab0:cea7 with SMTP id e24-20020a17090ab39800b001bc3ab0cea7mr8489429pjr.222.1645613042504; Wed, 23 Feb 2022 02:44:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645613042; cv=none; d=google.com; s=arc-20160816; b=GSdHBJVFM6noFJAFIMMsk/UrFt9IpOt8gIwEhXACEplEGkDhJj7EcFCnWKxdHR490C CUVZvXpJ9lYVXu+1wdUo2ypsrH/8wPJFh7mdd3/3vKT8KHX5gPIQ3yGA4Z0+VpD4kYW/ PWrYiSoXxA7kZlIE/T45XlrZwYIoY0um+SyF1aAubpllDImm2HZ969nqDBeOiSRhVuSx fVwdArbB4vPPyI8rfvfIPYpnI9U/m63+pzLKyRzyKVKIT6jeyAkiyegkJpq4isT8XkVb yxTJgqcycZQ5GznyCVBIqiRBPHCHe2Rp0Y7RJST5Ix+r6aORXlRHGHyjVul6W7EvbDJc yFQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z+hbLNvF0Nhve3XBOMxW8KtWdx8aJiHJ43sZ0z9sw1E=; b=QSktPXnO7f39gwSM2A/9YqGjAqTsDIHd52qQ0l346dJtb5EKn6ON2W0hhw1y08Q1J8 o+m0FmjIN+g1XOnIU9QEaA659X8cbzKjA+o5OwsL8BanzvTnq5ptE0KtHtn0UePUu3D0 4j8Q+UlEKSVPydvKauypEdAyh/P3fNHAebf8ZV9sRC72voDPeuE5MMd/Fx5ewqqp1w95 bw0RNCTdkLqswC+DVlgqfAf2UkMAymqwEW5+omjARuI1iZcCARRTTSV/tHHhVQIYGnkD 2EtJx0t5QPzE0WSCqQPBxf5xwZqmGIX6gRiXWfICqFl5j1XSKHpI29Y4edDN7Yosq7jm GaNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EquzZhxn; 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 o6si12497952pfu.251.2022.02.23.02.43.48; Wed, 23 Feb 2022 02:44:02 -0800 (PST) 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=EquzZhxn; 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 S239597AbiBWKSF (ORCPT + 99 others); Wed, 23 Feb 2022 05:18:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239573AbiBWKR4 (ORCPT ); Wed, 23 Feb 2022 05:17:56 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C16F37CDFB; Wed, 23 Feb 2022 02:17:28 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id e2so20437757ljq.12; Wed, 23 Feb 2022 02:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:organization:content-transfer-encoding; bh=Z+hbLNvF0Nhve3XBOMxW8KtWdx8aJiHJ43sZ0z9sw1E=; b=EquzZhxnieCrk3INNeTDu6kmQ8PDFht+473pRAMO2lVGaI5CtlUgrT19oecm4EbYCw hD6M14xHzJXWrndGSkPG4myjk46PwiuoXhCGn8s7I6u/nBqTi7YXbUL+s4VLsKyn6XfO m1a6muPJyaMEX4pfdpXdQKf1dd9hLUs7Xs3DHZqrBVjJG9yWu3ZEpGhxlQWbtusDskTG g/Cv78MImpgV3i0Br+nrhxXoFWVhYV98vIQ/VJNd17kXrgnupVZhcSJCNj0WYRqveCCB JSvyMH/eyilIIJn2yp4wfdhMPnMavV+Peq3Z4de/JtuoNGG2lzZzmOFfQXnLsxAPY5u4 WPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:organization:content-transfer-encoding; bh=Z+hbLNvF0Nhve3XBOMxW8KtWdx8aJiHJ43sZ0z9sw1E=; b=jEclS4owtQvsr4w2GlLyprh0BeXw16qig3vHuBdqHzncoz1djWlu0+7L+84P0zIM5e zOzXEHaOhk84EJEwd1rOj/NAFtl35/gPG+drMobIEYCjO75WPvCCrSvbU2c5oh2PxtRk UVXDyG6kEztY4t9xcqx7dE8+F6YxcsHovLVvxKr5algJxbggeZ/UlmGmAxsklxf1RYJW dmXkI88+5Z3CQSrCARnvLh0lyGEpk9C7XBsFeDUYbcXUQm4xHOZwcemNCCS/8iBOaZob lhLuVMvsnCHyGcV0/dMUPUmQbO5cpmrrEnZncDqc3NJvOJlwjBrutO/DAxkBXj8bpaXE e/nA== X-Gm-Message-State: AOAM533vgalTsIZCWht2T6pSevpV05/wPW2s6HcT4GJUP9cVsEBo/ie8 W9MSZocKfME2NP1CUfZ1mus= X-Received: by 2002:a2e:819a:0:b0:244:c4cb:5141 with SMTP id e26-20020a2e819a000000b00244c4cb5141mr21329064ljg.477.1645611447205; Wed, 23 Feb 2022 02:17:27 -0800 (PST) Received: from wse-c0127.beijerelectronics.com ([208.127.141.29]) by smtp.gmail.com with ESMTPSA id d5sm1613102lfs.307.2022.02.23.02.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 02:17:26 -0800 (PST) From: Hans Schultz X-Google-Original-From: Hans Schultz To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, Hans Schultz , Vladimir Oltean , Andrew Lunn , Vivien Didelot , Florian Fainelli , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Stephen Suryaputra , David Ahern , Ido Schimmel , Petr Machata , Amit Cohen , Po-Hsu Lin , Baowen Zheng , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: [PATCH net-next v5 3/5] net: dsa: Include BR_PORT_LOCKED in the list of synced brport flags Date: Wed, 23 Feb 2022 11:16:48 +0100 Message-Id: <20220223101650.1212814-4-schultz.hans+netdev@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220223101650.1212814-1-schultz.hans+netdev@gmail.com> References: <20220223101650.1212814-1-schultz.hans+netdev@gmail.com> MIME-Version: 1.0 Organization: Westermo Network Technologies AB Content-Transfer-Encoding: 8bit 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 Ensures that the DSA switch driver gets notified of changes to the BR_PORT_LOCKED flag as well, for the case when a DSA port joins or leaves a LAG that is a bridge port. Signed-off-by: Hans Schultz Reviewed-by: Vladimir Oltean --- net/dsa/port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/dsa/port.c b/net/dsa/port.c index bd78192e0e47..01ed22ed74a1 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c @@ -176,7 +176,7 @@ static int dsa_port_inherit_brport_flags(struct dsa_port *dp, struct netlink_ext_ack *extack) { const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | - BR_BCAST_FLOOD; + BR_BCAST_FLOOD | BR_PORT_LOCKED; struct net_device *brport_dev = dsa_port_to_bridge_port(dp); int flag, err; @@ -200,7 +200,7 @@ static void dsa_port_clear_brport_flags(struct dsa_port *dp) { const unsigned long val = BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | - BR_BCAST_FLOOD; + BR_BCAST_FLOOD | BR_PORT_LOCKED; int flag, err; for_each_set_bit(flag, &mask, 32) { -- 2.30.2