Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6360789rwb; Mon, 5 Dec 2022 11:10:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hUpgJ2Im2cvPmLzAEImBmqTOxK4wjN8JWestRn6LUSh+CsfchsC1aDG37FcGw3mapgDEq X-Received: by 2002:a17:902:ef47:b0:186:a394:aef7 with SMTP id e7-20020a170902ef4700b00186a394aef7mr81233657plx.79.1670267405510; Mon, 05 Dec 2022 11:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670267405; cv=none; d=google.com; s=arc-20160816; b=xdNzcjTGlnJAR6DPGWdUIcG7HgQcfbRB8EBkrSi+onxYmer8/SYKnoHi5c46z0VCUL iIdsunOX0X5GWCr8rDJ/2BpjdeEnRy9hxvpcpioQx+7NKsDfZg5cLS1lYNNum3divROR 1RShlYRamvEHIWRwDRW8/LfSTLJxANXmp3UBYFzKrNEurCRBkRPmfX5cx6P5z1IQEFD3 qUuy/F8BHQh+KFOzAB9IkrZx92yTvBGJbVslKpzKh7gvD6PmCwC6DgnSyAoWI4AH7wMO 1Ek5hSsKsxV05b6MjEeHCJPqkCrEhVH4v0T9eVkpR0Ho1Axnf7B7ECAGJ/vsUxefd937 873g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902e80f00b00186e8526793si16415450plg.143.2022.12.05.11.09.55; Mon, 05 Dec 2022 11:10:05 -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 + 80 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 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 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 -- 2.34.1