From patchwork Tue Mar 14 16:36:48 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: 13174742 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43769C6FD1C for ; Tue, 14 Mar 2023 16:35:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbjCNQfJ (ORCPT ); Tue, 14 Mar 2023 12:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjCNQek (ORCPT ); Tue, 14 Mar 2023 12:34:40 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CCDCC2B; Tue, 14 Mar 2023 09:34:19 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id C4036100006; Tue, 14 Mar 2023 16:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678811657; 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=TF1M245wnKpVCzK6z/l3V4pcyU9Wbg1W8fUVHhSWBaU=; b=EmvzN/sMZIVfEvP3J43pltTDHqYXta3rIE5/iFL9CdqgGSV2VtWvSZygIYfNdt8PRwnVS5 xtnKIj9RoSaT1xV5kMBWzOW/jchsgZwE1ppCl5KI7nXd1KqcCaca8q2RXHp28uFzqcMBQ5 lKQypUlygCg1HGbUl5rVLVMxOCjOdwfykGzZSczVhQBz0ZKC0Ror0Z+HeBh6k1fQxNdt4o b8ZgeItIMfX6XXp1FhQNLtJw/BG6Kmor7xbovbC6mI8AhXQT962jmd8TFaIVUcnAe2mtFG JHAoM9THkHu/wTCzqAJgVxcAgD1KXm9IGXMJn/W8vQzZWL/r2C1kE6yRZpZcrg== 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 RESEND net-next v4 0/3] net: dsa: rzn1-a5psw: add support for vlan and .port_bridge_flags Date: Tue, 14 Mar 2023 17:36:48 +0100 Message-Id: <20230314163651.242259-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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. ---- RESEND V4: - Resent due to net-next being closed V4: - Fix missing CPU port bit in a5psw->bridged_ports - Use unsigned int for vlan_res_id parameters - Rename a5psw_get_vlan_res_entry() to a5psw_new_vlan_res_entry() - In a5psw_port_vlan_add(), return -ENOSPC when no VLAN entry is found - In a5psw_port_vlan_filtering(), compute "val" from "mask" 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 | 223 ++++++++++++++++++++++++++++++++++- drivers/net/dsa/rzn1_a5psw.h | 8 +- 2 files changed, 222 insertions(+), 9 deletions(-)