From patchwork Wed Feb 8 16:04:50 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: 5135 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3539112wrn; Wed, 8 Feb 2023 08:05:46 -0800 (PST) X-Google-Smtp-Source: AK7set+xhM1VRRhsDK4c1FV0+39B7Bm/Q/n26NHQdEpqPWtDPjxxe37MCQtMOGAr4uvenmkajhHT X-Received: by 2002:a17:906:73dd:b0:894:4341:77d6 with SMTP id n29-20020a17090673dd00b00894434177d6mr7419749ejl.1.1675872346597; Wed, 08 Feb 2023 08:05:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675872346; cv=none; d=google.com; s=arc-20160816; b=BoP2fDDTPIannOgek0TJXiY/74eeXlD31zVbkepk+gOTPXKuwRfryoXOvkjgNKwDKg v2WFGTIHEMvercN79BTlfbeFVMinV3iQJ74WUh55j54VqXEqHzZFt7W8qX9RES7wC/e4 K9RQ+W2BpY0fKhmZdYuu+oWdOF+u3r8hx/JP7RvCXIPEAtLTPjZBz2ITUOSgTuZ0elnK WaHnTvZb3u8kwfOUSx8uqM1n/U00V5QCY3vs81FaIC7h6E2uXL2k/p6j/ANMbbRa1q4N aParX181l86pO6cDv5WlHz7JmCdAUdb5Ch1MqZJ4/F0j5TzywVafLJCF9LqzxnNJcLPe ePng== 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=4nUYbtsLt+veEgQI6xwynluDHXKugHNm7VF61na3Lpc=; b=eVjb3qH1uVzT62xcCM0JzGjRCx096t89TNP7WPo0iq7K7pRsPasJuD9MPrkERCiCo5 iOu5bskNfBs92jXlZf4j+RHsPOG2zBRV/rQTE3Hv5/c3+xPk7uc4+P8U65yMHaIyEna9 bvGzJisRRrQo9UIIRbKqtv8/DhhBRhwz6DLwIr3+4Ss0hyABGsPv9opyeSK6B3VjhQvu f/aTlR3IUkbOOGfNDo5o0Ab0axipueKCLMl1EnFGxAKFkij3y+CANqdcMW1vCRLNZmZr ahBU0VBxZXpHRQCYCVUeTBV1PntzIipyY0tw2lBvyt6W4jaT0hl1jojeG/m6wniLWfno bDmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YE08zyF3; 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 uj5-20020a170907c98500b0086e4e761d7esi1111434ejc.393.2023.02.08.08.05.23; Wed, 08 Feb 2023 08:05:46 -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=YE08zyF3; 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 S231321AbjBHQCw (ORCPT + 99 others); Wed, 8 Feb 2023 11:02:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjBHQCo (ORCPT ); Wed, 8 Feb 2023 11:02:44 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC6E34ABC9; Wed, 8 Feb 2023 08:02:42 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 6A87EE0005; Wed, 8 Feb 2023 16:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675872161; 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=4nUYbtsLt+veEgQI6xwynluDHXKugHNm7VF61na3Lpc=; b=YE08zyF3kO1ggQH4YJyBKDNoLsqq4GntatCIgS8Z2Eag+91x+7+pA3PjlKrqF++G8cG+Gf Bc6Yza/BKH7rLI+9Qxs0A8dgPrmjjt+jevIHWPk7rtQMP6rl++bO2FM3uqY1nkvn5o4D8H C21q1HVPjxTssikc3OXj2MU2k+TgYE4FlSeZoJQyEeN2Y88syb7doWrZhWlkBk7gKQ8HqP BbN8F9171lIjHEA+0/Sk3HlneDkYTLeiamZR5xMS2YXOXerymSouFjf3shYMHbhse84e4K KVKPeGsn3Ud6CGID/qbn90/0D5Z0RDpJJJsHtiRIpLEVGVtOF1GgztOT+/nRfg== 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 0/3] net: dsa: rzn1-a5psw: add supoport for vlan and .port_bridge_flags Date: Wed, 8 Feb 2023 17:04:50 +0100 Message-Id: <20230208160453.325783-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1757279521612580227?= X-GMAIL-MSGID: =?utf-8?q?1757279521612580227?= 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. ---- 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(-)