From patchwork Mon Dec 5 18:59:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Schultz X-Patchwork-Id: 2624 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2424987wrr; Mon, 5 Dec 2022 11:03:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf46DJGI0qo/ZA+jHWKQEs7U+0FBK3stUTe1zrHmwp42G/fztoWvz+3RFsP1xFtfxO9/rXqo X-Received: by 2002:a17:907:9616:b0:7b2:9f1f:48cc with SMTP id gb22-20020a170907961600b007b29f1f48ccmr15951225ejc.164.1670267011344; Mon, 05 Dec 2022 11:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670267011; cv=none; d=google.com; s=arc-20160816; b=RvKYpSJr5WUaqE12pywovBowBtzb6uF5AQ9RwH7UQLLwPl20rrpl+ONU97eoCj5SV9 j4fhWCFCju7b1gQ4rOSyXMF1y/Gv8I4HQbo/49ug9R7AtxkI3r1fgyGAEmvgyYid/Jb9 O9cmnqrcEpHI5ZjfAEmQMVVPsZmfBooukJuNdIpcpCKF82yRcc+qzE9ZYRb9c0++s7da 1gcFEGS3n4PBfnaPHu+4BUMtrRGqymlMMsQRRfYW1zlshIRPBZgmgG7JXYQrMciInvgi xTVekX0bNnwEW/n1ExWFOVR8LHvRI45EMuYgGK1jcOi/e12kJk8BgqnPgJ7bVJDT38Dq iiIg== 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=BZo7gueFENASiQrUX0oMLymFwfoPNLBQi0AIwt9hNaw=; b=nRYo9Jb/9lWTCej5yzPA6LbZI30ChecElXxghFZtBxnB9zFbmOjqGGR6TjYadVtkBf VJYI8Vgmv1Zc6tl2HtGOzVOhiBudDuXbSw7RQL6JccDdnUYAy0yeQGdMqoKSePE+4VKJ oivkfdNMXUF/COPd+vHK9sAe8B8m1qGYchTNvwXX92oWtssL2dqR16W4XU5awKhTKrca ySKZuAnvVwvGfl7M3SaZDg4pabj86yeywziyrKGgtLyd2vPvmR9jFlogi7heq991XH1m 35gQ2fqpMY3sLCNmuWuACIUlPl3bQRkINAZJCPFjhRDx37fvaErN4t9OWCYTNcGbfCEK RYgw== 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 h6-20020aa7de06000000b0046b00aab3e3si207083edv.170.2022.12.05.11.03.07; Mon, 05 Dec 2022 11:03:31 -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 S233317AbiLETAg (ORCPT + 99 others); Mon, 5 Dec 2022 14:00:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbiLETA1 (ORCPT ); Mon, 5 Dec 2022 14:00:27 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C8FA6479; Mon, 5 Dec 2022 11:00:21 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 9D929188385C; Mon, 5 Dec 2022 19:00:18 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 8A83325002E1; Mon, 5 Dec 2022 19:00:18 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 7648F9EC0020; Mon, 5 Dec 2022 19:00:18 +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 2AAE391201DF; Mon, 5 Dec 2022 19:00:18 +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 net-next 0/3] mv88e6xxx: Add MAB offload support Date: Mon, 5 Dec 2022 19:59:05 +0100 Message-Id: <20221205185908.217520-1-netdev@kapio-technology.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Westermo Network Technologies AB 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751401901837989103?= X-GMAIL-MSGID: =?utf-8?q?1751401901837989103?= This patchset adds MAB [1] offload support in mv88e6xxx. Patch #1: Fix a problem when reading the FID needed to get the VID. Patch #2: Correct default return value for mv88e6xxx_port_bridge_flags. Patch #2: The MAB implementation for mv88e6xxx. [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=a35ec8e38cdd1766f29924ca391a01de20163931 Hans J. Schultz (3): net: dsa: mv88e6xxx: allow reading FID when handling ATU violations net: dsa: mv88e6xxx: change default return of mv88e6xxx_port_bridge_flags 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 | 87 +++++++++++++++++++++---- drivers/net/dsa/mv88e6xxx/switchdev.c | 83 +++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/switchdev.h | 19 ++++++ 6 files changed, 207 insertions(+), 18 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.c create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.h