Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4720958rwl; Sun, 8 Jan 2023 01:53:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXtxAEtdOu2XwE+WCkvCSa6PJcp79S90AAgmjSmJfap3ZMHZv9Hn0fuFGqv5peDJ5gWkXPn3 X-Received: by 2002:a05:6a20:7b25:b0:a2:e391:f8f3 with SMTP id s37-20020a056a207b2500b000a2e391f8f3mr79325774pzh.34.1673171606240; Sun, 08 Jan 2023 01:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673171606; cv=none; d=google.com; s=arc-20160816; b=vMPo+j9bgFmUn4L6xixdjgt9hSn34ZmuIfyQrzR62MP7uKl+EWb6+kZhafMx3jIRb/ f9kHTmVWSMDy4fR8J5zCOb1aIIJNH6OFKJd0GUj6pd/S39Hpj/2QsFArDZmGJwRolYyl vZikErGWrEHJwX74Z+DUYGccLq16porpJk5afNclGfGHPCaXEtn1XSQkxOLwGrIeZAAG TS44upqQ3hFceWLsRtEgx2Q6AngUORrYByLGkJdO1xs5VY2v4Njhetl3EWp9gKi3PLCP Wb5H1EsdczNkuNrQgIwCaei28FqIMVs3uqnYF7nzFWBWnesl2Db5xiMmcjKmZ12un4zW e8ng== 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 Return-Path: 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.53.19; Sun, 08 Jan 2023 01:53:26 -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 + 53 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 ); 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" To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, "Hans J. Schultz" , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Eric Dumazet , Paolo Abeni , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.34.1