Message ID | 20230108094849.1789162-1-netdev@kapio-technology.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1639014wrt; Sun, 8 Jan 2023 01:52:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXvaZ9MU9dqNhmfKTGX6wVrfHw9cp3WEt6co+8evoYDyymmUMNZ/wAaKnNp5zlGj3hD5JHvO X-Received: by 2002:a17:902:7d89:b0:190:fe60:48c4 with SMTP id a9-20020a1709027d8900b00190fe6048c4mr73148237plm.21.1673171576437; Sun, 08 Jan 2023 01:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673171576; cv=none; d=google.com; s=arc-20160816; b=MnAfNptybYTENHKm5qS6Bwhg4u3YXwy6Z55CJI2MrwxEe2LgQlxxQPD5xI7K40hDI3 8pmxjo9N8K3QNVIOI7CdyeMRWkJX6tvlVCsBzV12Hj8Kze4CB7HNuN05Wh0cutwP/iN8 PtaP2C0c2Og+t97Mma7IzkezjdUM+DjOnwRuOta3yBgfKblFfnueQIhWOsNHZ9/KX+V2 Gm3sVy/hm38nIHISkd7xOM4yNJS2y89IJ0F5nZrsTtO6m+aIO5dP2tdXowgbE3hdhSm0 d3FuKrW5mnPTl3pG/gk5NmnKiSoIPGr4Z/awzhfs+E45W8u/YKHtKFtGmZnkfXZ10XnR ABRg== 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:message-id:date:subject:cc:to:from; bh=jcyiGzSaILCHtJqRZ7AtV+VxKBtR/i6j75Z76bsxr10=; b=Hr98LRhau5oKpJ4eTwaWqdd5pG5fI2I0jZFxTDytUeb0rHIxtIAfXp5GojjQ73Xsar ayGp3KEe56you6pk8BUWqQ58aXIDRmMrLidkPfpZ5Jm9uiGkBslGQekLWYyrMXi2LGJY 2LV/zRC+Wic6wylUn7mfkk4fn6uWMIDfexB7ciCcgix6PoacP+Fh7t53WkCsVGbRDzu2 vTTYv79N8L6MNTgBcKVqjnEUYEiA9Vr9/z6+6MYp23NJbZM5Z+nZtpFM9Vwr893LnC6u NZRTvUkkDX9jVrzumEluMdLGDEXkugirun9QygLS2sO8a3REjrbS+7TOadfiBCHjw/iD gQ1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a170902d58800b00192b09ce09asi6076040plh.318.2023.01.08.01.52.43; Sun, 08 Jan 2023 01:52:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232979AbjAHJul (ORCPT <rfc822;old.home.clock.tower@gmail.com> + 99 others); Sun, 8 Jan 2023 04:50:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjAHJuc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 8 Jan 2023 04:50:32 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26527186AD; Sun, 8 Jan 2023 01:50:29 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id E40A118838D4; Sun, 8 Jan 2023 09:50:26 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id D6B48250007B; Sun, 8 Jan 2023 09:50:26 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id BF62F9EC000E; Sun, 8 Jan 2023 09:50:26 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 Received: from fujitsu.vestervang (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id 6B23891201DF; Sun, 8 Jan 2023 09:50:26 +0000 (UTC) From: "Hans J. Schultz" <netdev@kapio-technology.com> To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, "Hans J. Schultz" <netdev@kapio-technology.com>, Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 net-next 0/3] mv88e6xxx: Add MAB offload support Date: Sun, 8 Jan 2023 10:48:46 +0100 Message-Id: <20230108094849.1789162-1-netdev@kapio-technology.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Westermo Network Technologies AB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754447559113702996?= X-GMAIL-MSGID: =?utf-8?q?1754447559113702996?= |
Series |
mv88e6xxx: Add MAB offload support
|
|
Message
Hans Schultz
Jan. 8, 2023, 9:48 a.m. UTC
This patch-set adds MAB [1] offload support in mv88e6xxx. Patch #1: Correct default return value for mv88e6xxx_port_bridge_flags. Patch #2: Shorten the locked section in mv88e6xxx_g1_atu_prob_irq_thread_fn(). Patch #3: The MAB implementation for mv88e6xxx. LOG: V2: -FID reading patch already applied, so dropped here. [1] -Patch #2 here as separate patch instead of part of MAB implementation patch. -Check if fid is MV88E6XXX_FID_STANDALONE, and not if fid is zero, as that is the correct check. Do not report an error. V3: -Fixed an overlooked mistake and reworded the commit message for patch #2. V4: -Moved exit tag 'out' from patch #2 to Patch #3. [1] https://git.kernel.org/netdev/net-next/c/4bf24ad09bc0 Hans J. Schultz (3): net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags net: dsa: mv88e6xxx: shorten the locked section in mv88e6xxx_g1_atu_prob_irq_thread_fn() net: dsa: mv88e6xxx: mac-auth/MAB implementation drivers/net/dsa/mv88e6xxx/Makefile | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 20 +++--- drivers/net/dsa/mv88e6xxx/chip.h | 15 +++++ drivers/net/dsa/mv88e6xxx/global1_atu.c | 24 ++++--- drivers/net/dsa/mv88e6xxx/switchdev.c | 83 +++++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/switchdev.h | 19 ++++++ 6 files changed, 148 insertions(+), 14 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.c create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.h