Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3784874rwb; Sat, 12 Nov 2022 12:52:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+jLOoLLlutuob2xcLArGF/DqOJyJbV80BtEvFtZA5H/NDNHzr4b8ae6hwKO5Rz5RtpSdE X-Received: by 2002:aa7:de82:0:b0:45c:a651:87f1 with SMTP id j2-20020aa7de82000000b0045ca65187f1mr6364933edv.359.1668286362279; Sat, 12 Nov 2022 12:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668286362; cv=none; d=google.com; s=arc-20160816; b=cIautBwzgrM+ZkBAiX4n5rIWptgS6AtCSpozb3f/I1J2KyUf1STGXO/8ty4cM3r/h7 1dzZguG2Wb+O/akmCMFE0efgSSca/6gcUNXA0HFRAthsVtjMqJuC8jDpXd7w/vkcjzWr htUI+YLf2jlVSPrX2SeK3I2FniCkvjBtpJxU/xATRZ6llDd71/JiDsATe3HV9qlUUiNT T7tezr96LI4kB8mMAeoGpkZ9TV63BBjQdLkUcDkJYqdZ8culsgswzrM/e539l6RJvSxW DA4CTC8WeYLZswWE49VminY3RXp6Vqf3u/U6jLBzDCatIj1hjHB8yc+GebGYbx5gi9ui Nppg== 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=s42mY3AFK+Em8n1KYSsv5n+yUbhaLUD+NUyTLRqPKFs=; b=em6x2U4XJt3iXoxIxNNhSxhs+EdEFlKkKYaYGerpN1/rqyXgw2AgC/+ESrKiyc/LGe ZU4uHBdatfebe42c0S+w4V/PZPJ5NrBhjSrQQwdIcy5URVct0Mpe8kaeGOYyy1Q3rtfq eYyQBYefqD2AntjJrnYdsW9VQlz7CI/S1KW+NaBMLZu9Ph8Bu5/gptLbhJUv4aiPT2u6 piB2DquXp9B0z6y6/10E5YPTtog7kRrnQ2FzChw3yKlMCfB3Ca1RjfH+pDBSBXxJGUQ/ lph7yUg0nXO8YCZBIXrWqV8jYRkqDQCGxmUuV+1JdagVC/350xWKwcOds1d4V1Hbp1mn qguw== 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 e12-20020a17090658cc00b0078d3ab37efasi5212927ejs.84.2022.11.12.12.52.19; Sat, 12 Nov 2022 12:52:42 -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 S234941AbiKLUis (ORCPT + 91 others); Sat, 12 Nov 2022 15:38:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232759AbiKLUir (ORCPT ); Sat, 12 Nov 2022 15:38:47 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25C50E026; Sat, 12 Nov 2022 12:38:41 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 0705E18836BD; Sat, 12 Nov 2022 20:38:39 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id F28E2250030B; Sat, 12 Nov 2022 20:38:38 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id E0A0491201DF; Sat, 12 Nov 2022 20:38:38 +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 8BC4691201DF; Sat, 12 Nov 2022 20:38:38 +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 v8 net-next 0/2] mv88e6xxx: Add MAB offload support Date: Sat, 12 Nov 2022 21:37:46 +0100 Message-Id: <20221112203748.68995-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: 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 (2): net: dsa: mv88e6xxx: allow reading FID when handling ATU violations net: dsa: mv88e6xxx: mac-auth/MAB implementation drivers/net/dsa/mv88e6xxx/Makefile | 1 + drivers/net/dsa/mv88e6xxx/chip.c | 19 ++++-- drivers/net/dsa/mv88e6xxx/chip.h | 10 ++++ drivers/net/dsa/mv88e6xxx/global1_atu.c | 70 ++++++++++++++++++++-- drivers/net/dsa/mv88e6xxx/port.h | 6 ++ drivers/net/dsa/mv88e6xxx/switchdev.c | 77 +++++++++++++++++++++++++ drivers/net/dsa/mv88e6xxx/switchdev.h | 19 ++++++ 7 files changed, 190 insertions(+), 12 deletions(-) create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.c create mode 100644 drivers/net/dsa/mv88e6xxx/switchdev.h -- 2.34.1