From patchwork Tue Jun 28 08:51:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 12897928 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B497C433EF for ; Tue, 28 Jun 2022 08:52:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243814AbiF1IwJ (ORCPT ); Tue, 28 Jun 2022 04:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240962AbiF1IwI (ORCPT ); Tue, 28 Jun 2022 04:52:08 -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 50F302F65C for ; Tue, 28 Jun 2022 01:52:07 -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 1o66wx-0003oL-Ay; Tue, 28 Jun 2022 10:51:59 +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 1o66wr-003Aeb-Gn; Tue, 28 Jun 2022 10:51:57 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o66wu-00As6X-55; Tue, 28 Jun 2022 10:51:56 +0200 From: Oleksij Rempel To: Woojung Huh , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Lukas Wunner , UNGLinuxDriver@microchip.com Subject: [PATCH net-next v2 0/4] net: dsa: add pause stats support Date: Tue, 28 Jun 2022 10:51:51 +0200 Message-Id: <20220628085155.2591201-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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: netdev@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org changes v2: - add Reviewed-by: Vladimir Oltean - remove packet calculation fix from ar9331 patch. It needs more fixes. - add packet calculation fix for microchip Oleksij Rempel (4): net: dsa: add get_pause_stats support net: dsa: ar9331: add support for pause stats net: dsa: microchip: add pause stats support net: dsa: microchip: count pause packets together will all other packets drivers/net/dsa/microchip/ksz_common.c | 25 +++++++++++++++++++++++-- drivers/net/dsa/microchip/ksz_common.h | 1 + drivers/net/dsa/qca/ar9331.c | 17 +++++++++++++++++ include/net/dsa.h | 2 ++ net/dsa/slave.c | 11 +++++++++++ 5 files changed, 54 insertions(+), 2 deletions(-)