From patchwork Wed Feb 8 16:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 5136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3551156wrn; Wed, 8 Feb 2023 08:26:07 -0800 (PST) X-Google-Smtp-Source: AK7set8AYUcRbnTVl5/jRaKAZrc/VlOCzokxEUJtK1PnPORHs91ntAstekdKfnoNLZGf/1+xO8zb X-Received: by 2002:a05:6a20:69a3:b0:c0:2875:9e8c with SMTP id t35-20020a056a2069a300b000c028759e8cmr7849913pzk.1.1675873567463; Wed, 08 Feb 2023 08:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675873567; cv=none; d=google.com; s=arc-20160816; b=dAaaHsTpyrYlXFqx50rExS9jDy88L9l9s9Vs8BkWmf7D4BEBSdFiuFpw6t103she6n j5DHT5/P20GsYx8vwQMBnTRWy6535plUrGmzeRdLKS0XO2hwKq0HaQ6zPDKhNt9C15Yt Bvhx2QysvFJRjsQ+ZSSwGNAFXF1hvhYagYmWzh1/9kC1hsgkBilMefJGhTDw5Hp8/P8I e4yVdx3DBvOAKB5Bf1M1yOYEYvd5OZ6BaUuGfE8OohfP6fTyt/AY68LuDd4SYT+06Feh v3VA6PpfU6Ri+IeqG3+fs5z/B1ysYw+GIldWCYS5r4p/5oV0vajVW0cch6Yq41xy1M6V M7Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qlvnkFV8VWKfamM60da0SN3gJp83h4aWTne8pK7HrZY=; b=heVTpNmhk61I6Hp5FBQJGeHDzfEzEO+jzsifY0VUCMytT+NWxWCNTZWrdFzs183THV TSzYllUsWWbaj1zoOTissGJLcs0XrMfzS3MJiT0Y9NTpkvIqWLAgtwoRms58Br66suFt 5Scmw+8Evpa09PikN8JO7ByrVfE3FiuQnMvql00MBwTonL0ttolyPqrzXRRyaY6O5WuU s84smy2hdMzWgY/1QnDHgoXVscJgJvCiKD46sXwzzHqI/2h5hiRpNhnha7KaufPpLYmK PnmNFe2zlexX8cc1PPt2RXaIErUeh0l+coA3cybJZUQvOK67rMQf5GADrHt5RhDxNXhJ CS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=es879cjv; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gg23-20020a17090b0a1700b002311ef542b4si1147584pjb.28.2023.02.08.08.25.53; Wed, 08 Feb 2023 08:26:07 -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=@bootlin.com header.s=gm1 header.b=es879cjv; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbjBHQQN (ORCPT + 99 others); Wed, 8 Feb 2023 11:16:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjBHQQL (ORCPT ); Wed, 8 Feb 2023 11:16:11 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A1C4ABD3; Wed, 8 Feb 2023 08:16:09 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E7FE8C000E; Wed, 8 Feb 2023 16:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675872968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qlvnkFV8VWKfamM60da0SN3gJp83h4aWTne8pK7HrZY=; b=es879cjvBkfP0gfI8FUTFM6eNhzWD2cIimV/rYKfyAet5Bpbe1DzEqpsY+0QnEwQNzYn7n CxFwN6e1OShOS3YCn/HfY916OYH5LSx697sBadn4iWfXjqhdC8Eam8qKl+Xii4/rdH3zbC 3phTWO7byyg88z3yKxm8O3LApyokemiF17/B8falmK/WySogP74qi2qI+UPXnG/GPF9fEL NaHZHfBaJC5cielLWmRYvD49mTWU/J0VwxKxxY6Zg+D29egNCtnbgdtWDi0+vOM9daX8jU lTtRzqYpSpVwKGLM4bebR3kVWw2a27uVHxGA379p5TKGA37FVdFE3yx0HzEz5Q== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Thomas Petazzoni , Herve Codina , =?utf-8?q?Miqu=C3=A8l_Raynal?= , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Arun Ramadoss , linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v3 0/3] net: dsa: rzn1-a5psw: add support for vlan and .port_bridge_flags Date: Wed, 8 Feb 2023 17:17:46 +0100 Message-Id: <20230208161749.331965-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757280802048230965?= X-GMAIL-MSGID: =?utf-8?q?1757280802048230965?= While adding support for VLAN, bridge_vlan_unaware.sh and bridge_vlan_aware.sh were executed and requires .port_bridge_flags to disable flooding on some specific port. Thus, this series adds both vlan support and .port_bridge_flags. ---- V3: - Target net-next tree and correct version... V2: - Fixed a few formatting errors - Add .port_bridge_flags implementation Clément Léger (3): net: dsa: rzn1-a5psw: use a5psw_reg_rmw() to modify flooding resolution net: dsa: rzn1-a5psw: add support for .port_bridge_flags net: dsa: rzn1-a5psw: add vlan support drivers/net/dsa/rzn1_a5psw.c | 224 ++++++++++++++++++++++++++++++++++- drivers/net/dsa/rzn1_a5psw.h | 8 +- 2 files changed, 223 insertions(+), 9 deletions(-)