Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2611191rwl; Fri, 6 Jan 2023 08:40:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXvxbgId/MOaRzMPjv/s+rZ0Vt2i+38y/yC10rMW7CepTd2J3sV0Fvox1itocWVmMwCDz1Xq X-Received: by 2002:a17:906:240f:b0:78d:f454:386d with SMTP id z15-20020a170906240f00b0078df454386dmr49886627eja.42.1673023200964; Fri, 06 Jan 2023 08:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673023200; cv=none; d=google.com; s=arc-20160816; b=kLXJDzkipPPr4FhCHLqn2U3r15uN134M4OnfoBBtfwqyIG3Er0kWMxTBBcL5DXvO1G SEYLaCvx8R6bcuJGzM6b3FL2z9R4jDYf+3pp9LExk5LWeXoU6FqBYU8qy0353gS9Odi0 yvroFqyvAnqTe8XQ93WyvVWlyPtWOHkc9WAChSSgW67SB5lf1dMN6efOIT2Gem5pxguF NfTCvAaB83hDC/qLwbhsp9C4evSh5/Mmjd08y2v9iXyzGx01/1AD3BKaNRU0W174b4JZ R5oDLiPDTVofCxHAWARarwyZXggjlT+cF9kLJuWUwzvPgJOsonqRJw5WCql4YDRZqzlX WywA== 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=ip3CvFXawWtYCjp4s3yCNsiOW6NaJJCNJAhPdeZVThg=; b=SVJiYzo6/4FIywmpH3AhIV7x5xTJ6ysFZnmcqFDyDr7vuZ7n/m+tfVzjKR8a9V6S82 ct2zvO1lyEQNB+8UCqEuFRQkXuDwGC4CcVrE+dVhABNRV6miAmx+yNaqfiqxW5Um86UA ovIP2RrGtaXC8rhrRT1WmVLY3HycmHkMEjSrXQxegPKwQsDiPM5nosk8MhOYtKqS1r5z yDrsMQrIDF4/FlkTh0qKIryK+nsbGDMFW7OXF58LwGKnKPj5XvchVdE/ytpwVyzmsG0t ueNSu2Iu44NfPSsmLZ/dR9Ftqq6mkxfrluUrtlfwH3wXebN5QFJewsYhRrDy7C48RenX 43FA== 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 l5-20020a170906794500b007adcc8fb7a0si2205470ejo.399.2023.01.06.08.39.48; Fri, 06 Jan 2023 08:40:00 -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 S234552AbjAFQH1 (ORCPT + 54 others); Fri, 6 Jan 2023 11:07:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbjAFQHR (ORCPT ); Fri, 6 Jan 2023 11:07:17 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E43811FB; Fri, 6 Jan 2023 08:07:14 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 4C70F1884677; Fri, 6 Jan 2023 16:07:11 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 337982503B65; Fri, 6 Jan 2023 16:07:11 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 2C36191201E4; Fri, 6 Jan 2023 16:07:11 +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 D6DFB91201DF; Fri, 6 Jan 2023 16:07:10 +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 v3 net-next 0/3] mv88e6xxx: Add MAB offload support Date: Fri, 6 Jan 2023 17:05:26 +0100 Message-Id: <20230106160529.1668452-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. [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