From patchwork Tue Feb 21 09:26:23 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: 5668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1769916wrn; Tue, 21 Feb 2023 01:41:46 -0800 (PST) X-Google-Smtp-Source: AK7set85JAWgD5WPE5w5HFbeeHyD5tk4VfyILd287fE30Nt4mzrIaJIFz7Vpsr5PYLCGe+F5dNF0 X-Received: by 2002:a17:906:af10:b0:8aa:c038:974c with SMTP id lx16-20020a170906af1000b008aac038974cmr11521401ejb.54.1676972506481; Tue, 21 Feb 2023 01:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676972506; cv=none; d=google.com; s=arc-20160816; b=C9aIWrpUWYEnHrMnvij8IkgGfvfalCAPCzynoLVVnCS1IX2WGBZcKdAqvwkztcLdiP E3XuqKT07FiTI2b9ZiTJBPGzpoD9th28OlcyjNQZDKlAXl0lYJbN2KFYbJNSrakiEoA8 meUcz7m2UgSGleEqOoZHwRqu70PRR15F5oxgchkNjNhLqIxi06fSWPN+jNLEyV7EvWa2 r3orqstaOZ7ylKF0NYruyhwoZuK5as1/pq53mAdtpR1GtUll91AKE0isQCbAhWhEIfa3 9lRJsqnN0B/0s43CYkXTil9CVQtPl/kU7GMOUWtJ1BUGRoJhL1txXlPPORdoOwqz6Mig TayA== 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=sF6cTrmRbsTNZI9mfS1d6w4kuvwM4DluVhRpiXiPKYg=; b=fgi4CzuZNS/JeuBOdz8uHfCbskOF5hshX/bAQi/8GYlmgIbhlpwjMph3nNd3OtM1Do woz6NqhCHPuKt7OkKoTw81xNhddULn5Q6+T9mc8OoEmjFl/QZkv47sd1WJhhrNIP5VMy 2pvJzCi1HW4f8XioHR3t6sT+0NwKPf1306a4LHxKQt7SvptKVHoQDXgo6qQIkF8hDYyE +jAuLp2m45oM+yPiW6U7fj/gpuYNYMEoLbw6v+nBekf5we7EFnH/nrMkmAtmTDn7Pqb0 THAYb+5lFG0xbynDR2SGfFfM6PUaGK4OnwLcEhRsC6Dn7S0WRkTkOPqCqiRLT8L+zUj6 guTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=JOJfyebb; 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 ew10-20020a170907950a00b008b13006fbb8si12915669ejc.63.2023.02.21.01.41.23; Tue, 21 Feb 2023 01:41: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=JOJfyebb; 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 S232324AbjBUJZT (ORCPT + 99 others); Tue, 21 Feb 2023 04:25:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233935AbjBUJZR (ORCPT ); Tue, 21 Feb 2023 04:25:17 -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 292DA222ED; Tue, 21 Feb 2023 01:24:59 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 99E6BC0007; Tue, 21 Feb 2023 09:24:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1676971498; 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=sF6cTrmRbsTNZI9mfS1d6w4kuvwM4DluVhRpiXiPKYg=; b=JOJfyebbXafvS+9Jf24BLnzMwI6Vm+P8p48Cwb5cP9cbkReOmVz42FK5n2btKD4tGtKN+4 3nRmRAnlBAg1K7vN8+9rVO79ZEfWku+WkRzc0qr4Ng5ORFmss2ewR7hyVFh69w6BmkbhiA gT4MoFiSZsBiOl3rbJao18x+YVmVxgn22lajMe5TcYWAzREyhWqlxZb6EDj5bT+hVBDtbS LaAk2SBNYFAioGDoMoV0AWKbchDwxnyDZZ2iYOwbqYFKbJeZZLkK27onxCYJWYkJTHcU+r EAFT2WefHXNZ38+fbP8MuMC65nMr8JRNXFcOHhqajPRtoYq4TLBsjMM/0GhIwg== 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 v4 0/3] net: dsa: rzn1-a5psw: add support for vlan and .port_bridge_flags Date: Tue, 21 Feb 2023 10:26:23 +0100 Message-Id: <20230221092626.57019-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?1758433122981016254?= X-GMAIL-MSGID: =?utf-8?q?1758433122981016254?= 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. ---- 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(-)