Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5825345rwl; Tue, 11 Apr 2023 10:26:01 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4cgAAU4lPUUVJL6FJZP6oW0ibAyIfnb6lac7YDPAd5dR+IT3XeOIwKvwZJ0DEFXTEYzXU X-Received: by 2002:a17:906:b206:b0:94a:4739:bed9 with SMTP id p6-20020a170906b20600b0094a4739bed9mr9785486ejz.13.1681233961066; Tue, 11 Apr 2023 10:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681233961; cv=none; d=google.com; s=arc-20160816; b=0PQBwYv7uO4hGrUTZ7XrtMdyVAlL2LWEOHKeyFOr9cKeZChF7aSG4RiaYAlLz8sdE9 ty8/UFtOx+kw0LrO55O2xAvvjLnejc4j2idU07Z7rys8+5mUKjv3cH5hZf4uN9H7BdIB nC0fTU7F3JBsHsNCq4VLmgCYAtvnLq2e3dX9ND3nKySYR9BLZmdnqn6vrJ1FTBdN3/vD UejBDerQPz+SqGRzcvpYh7h85l1aTHWHr/oHOYQ5mZYwdSURMe1QItQwsAVY7430hr7t Gy0CSStZs2W06jdTIO2py8YB3qCoGH1DAmiTgvO8vhG3zDGy5Q5AKOc7S0YqRAk72Xct jrYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ytXQLy08+IieFzqXchQquavJ7JhJVSbtxgHfsEADQhY=; b=f/FRtaRvfT9cvG2Ly3uSOnUnljFQaAhBpjLwk1PxWkluQ0yh376rmOiiX/0t8nKQCE glhbmfKKDrfm0p/gemWQ2EdjDYhSDPhDf6vk2WYztvkEJyoYag08UYpEvw9WtslR7ajT No0bTgI349KRYHPnpVmAoFAhVLljKhoufSxspDDrKQPFp6+VJj0VLIZ8MPzDxhotxF8w bmvCHhXy/PjHlvCTucmBfdrtrplrbrX94df74GISVJFLNCILm3Ckk+/hWe3idDHSE36c xqkHTBpA8hbuyJsC+hUyDY+kc2ZryYFBs/g6abEIhjgDrRkLSZvzgWXJ2QDhI6nhNA7h R0dQ== 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 vq8-20020a170907a4c800b0094a867126a5si3944094ejc.702.2023.04.11.10.25.34; Tue, 11 Apr 2023 10:26:01 -0700 (PDT) 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 S230100AbjDKRZP (ORCPT + 99 others); Tue, 11 Apr 2023 13:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbjDKRZN (ORCPT ); Tue, 11 Apr 2023 13:25:13 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0A9E48 for ; Tue, 11 Apr 2023 10:25:12 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmHjp-0001yl-9Q; Tue, 11 Apr 2023 19:25:01 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pmHjm-00AYPs-TP; Tue, 11 Apr 2023 19:24:58 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pmHjm-00CbDx-7V; Tue, 11 Apr 2023 19:24:58 +0200 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net-next v1 0/2] net: dsa: microchip: Rework ksz_prmw8 and add partial ACL support Date: Tue, 11 Apr 2023 19:24:53 +0200 Message-Id: <20230411172456.3003003-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 introduces a rework of the ksz_prmw8 function and adds partial Access Control List (ACL) support for the ksz9477 family of switches in the net: dsa: microchip subsystem. The changes provide support for layer 2 matching and prioritization of matched packets. The second patch utilizes the refactored ksz_prmw8 function. Oleksij Rempel (2): net: dsa: microchip: rework ksz_prmw8 net: dsa: microchip: Add partial ACL support for ksz9477 switches drivers/net/dsa/microchip/Makefile | 2 +- drivers/net/dsa/microchip/ksz9477.c | 7 + drivers/net/dsa/microchip/ksz9477.h | 7 + drivers/net/dsa/microchip/ksz9477_acl.c | 950 ++++++++++++++++++++++++ drivers/net/dsa/microchip/ksz_common.c | 40 + drivers/net/dsa/microchip/ksz_common.h | 8 +- 6 files changed, 1009 insertions(+), 5 deletions(-) create mode 100644 drivers/net/dsa/microchip/ksz9477_acl.c -- 2.39.2