[net-next,v1,0/7] net: dsa: microchip: ksz8: Enhance static MAC table operations and error handling
Message ID | 20230404101842.1382986-1-o.rempel@pengutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2915598vqo; Tue, 4 Apr 2023 03:22:39 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4/QZ/W8iV6o/vqBWv9n+UszRoyPWJut6bicK2J6mDoP+aYIzIsRXKKrctsgvr2GzXqnU4 X-Received: by 2002:a17:903:228c:b0:1a2:56f4:d369 with SMTP id b12-20020a170903228c00b001a256f4d369mr2680605plh.19.1680603758290; Tue, 04 Apr 2023 03:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680603758; cv=none; d=google.com; s=arc-20160816; b=nFa/FaqBV+bu90hsfzpr+bfkjtibT7/ayy8/OFvp0IG36aNUcdGhDF7nOy1TpGl/MJ 7plc0AVB9hV32m8vPr4e9nJiInmdw+WV4xuH64bS46SHJZb2vIG6Nje5vYJBP1dHBLxm be0cZ7BZiQ12v0X0wAJXKfPTnZYh2YhaKS/94Gb4YBvS+bIgKRroFD+5FYC5mR9AoB0y kacEecKFv2CFos2m12puF1f5hx9fYoriOTWy828cPEreHGF+V+IhH95pnTQ17cT05cSW HKPYqXPh+in1cyc593XztNdA64E1oXXkMb2NjbkAs18bSjWRPVlajaOO7EZPrIBuJrkV 5PDg== 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=2G6JPG86rewnXgSwda1sHLpXMADhY5RuTSVkoPVKTH0=; b=Wtqzx7Be843l/RtLA4yKU5OO2Z4YvO9JonxH8Zzj/UX+rl6AGgJ7xGZXkbKjtl5Jj0 TAPKDGC6Txk9hMBV2+iVzN8DoHuj3rD5MuJEs2CY/caXM8z5Xp6Wan01wUTPYlKuQkIf iYEqp3Gy/3Gg3LrhJDdYBCTZ3Z/hoQ8XxN2NJ+8AzxN6juWDz/DoBKlRyHA1kYU2vib8 1cX/clNlz1Zb7piUe26vXrClPMKP5A4NwCc9m1Y5IfsqH3bgen7gl8+5TYOaM6/54wpi uSYgXOxik7ObPurhw9FrXmQraA3UaPYzlYQzy9m5Q5NDlVH0ls/OEqtqb5WF/vEtKvyg 9idQ== 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 n10-20020a170902d0ca00b001a1a8d97914si9609880pln.437.2023.04.04.03.22.24; Tue, 04 Apr 2023 03:22:38 -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 S234454AbjDDKTd (ORCPT <rfc822;zwp10758@gmail.com> + 99 others); Tue, 4 Apr 2023 06:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbjDDKTb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Apr 2023 06:19:31 -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 B34363A9F for <linux-kernel@vger.kernel.org>; Tue, 4 Apr 2023 03:18:52 -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 <ore@pengutronix.de>) id 1pjdkT-00008D-Uk; Tue, 04 Apr 2023 12:18:45 +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 <ore@pengutronix.de>) id 1pjdkT-008tRs-8O; Tue, 04 Apr 2023 12:18:45 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1pjdkR-005nml-Jm; Tue, 04 Apr 2023 12:18:43 +0200 From: Oleksij Rempel <o.rempel@pengutronix.de> To: "David S. Miller" <davem@davemloft.net>, Andrew Lunn <andrew@lunn.ch>, Eric Dumazet <edumazet@google.com>, Florian Fainelli <f.fainelli@gmail.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Vladimir Oltean <olteanv@gmail.com>, Woojung Huh <woojung.huh@microchip.com>, Arun Ramadoss <arun.ramadoss@microchip.com> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net-next v1 0/7] net: dsa: microchip: ksz8: Enhance static MAC table operations and error handling Date: Tue, 4 Apr 2023 12:18:35 +0200 Message-Id: <20230404101842.1382986-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762240766632920840?= X-GMAIL-MSGID: =?utf-8?q?1762240766632920840?= |
Series |
net: dsa: microchip: ksz8: Enhance static MAC table operations and error handling
|
|
Message
Oleksij Rempel
April 4, 2023, 10:18 a.m. UTC
This patch series improves the Microchip ksz8 driver by refactoring static MAC table operations for code reuse, implementing add/del_fdb functions, and making better use of error values in ksz8_r_sta_mac_table() and ksz8_w_sta_mac_table(). The changes aim to provide a more robust and maintainable driver with improved error handling. Oleksij Rempel (7): net: dsa: microchip: ksz8: Separate static MAC table operations for code reuse net: dsa: microchip: ksz8: Implement add/del_fdb and use static MAC table operations net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static net: dsa: microchip: ksz8_r_sta_mac_table(): Avoid using error code for empty entries net: dsa: microchip: ksz8_r_sta_mac_table(): Utilize error values from read/write functions net: dsa: microchip: Make ksz8_w_sta_mac_table() static net: dsa: microchip: Utilize error values in ksz8_w_sta_mac_table() drivers/net/dsa/microchip/ksz8.h | 8 +- drivers/net/dsa/microchip/ksz8795.c | 179 ++++++++++++++++--------- drivers/net/dsa/microchip/ksz_common.c | 2 + 3 files changed, 121 insertions(+), 68 deletions(-)
Comments
Hello: This series was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Tue, 4 Apr 2023 12:18:35 +0200 you wrote: > This patch series improves the Microchip ksz8 driver by refactoring > static MAC table operations for code reuse, implementing add/del_fdb > functions, and making better use of error values in > ksz8_r_sta_mac_table() and ksz8_w_sta_mac_table(). The changes aim to > provide a more robust and maintainable driver with improved error > handling. > > [...] Here is the summary with links: - [net-next,v1,1/7] net: dsa: microchip: ksz8: Separate static MAC table operations for code reuse https://git.kernel.org/netdev/net-next/c/f6636ff69ec4 - [net-next,v1,2/7] net: dsa: microchip: ksz8: Implement add/del_fdb and use static MAC table operations https://git.kernel.org/netdev/net-next/c/57795412a447 - [net-next,v1,3/7] net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static https://git.kernel.org/netdev/net-next/c/b5751cdd7dbe - [net-next,v1,4/7] net: dsa: microchip: ksz8_r_sta_mac_table(): Avoid using error code for empty entries https://git.kernel.org/netdev/net-next/c/559901b46810 - [net-next,v1,5/7] net: dsa: microchip: ksz8_r_sta_mac_table(): Utilize error values from read/write functions https://git.kernel.org/netdev/net-next/c/ec2312f33735 - [net-next,v1,6/7] net: dsa: microchip: Make ksz8_w_sta_mac_table() static https://git.kernel.org/netdev/net-next/c/c8e04374f9e1 - [net-next,v1,7/7] net: dsa: microchip: Utilize error values in ksz8_w_sta_mac_table() https://git.kernel.org/netdev/net-next/c/3c2e6b54e4e9 You are awesome, thank you!