From patchwork Fri May 17 07:44:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 140169 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1E62944048; Fri, 17 May 2024 09:45:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EBE7240A70; Fri, 17 May 2024 09:45:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 15109406B4 for ; Fri, 17 May 2024 09:45:20 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44GNc4iN015520 for ; Fri, 17 May 2024 00:45:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=1Eo0KsIn6vJKtfGEDwQ9S9UAZz0MJnelLZLmJmWK2K0=; b=M/F svdyIBiUKn1+3gW/GWFNPaNTxWOB8mJvH8uUJiuS8Z5YR4Fq3icnveam/ilIfYgZ +q20CbpHAAqsOvpyge8wIMDlC6HNT7NjmQNvp8LoosfAEQonqnavmkAZS3/ObZgg gd5bPnI+GvKc/J6BEWl9vXm/8wuyKC0sWrT3QYNkVmRe0RhObjSy3zJhgg2+ECXf oQEI9MTqFbzuS6z1SXChx1kgb8SjcX9AVfedWB69krwJfrMaWdOAxQWIWDxHsLWS u8K+wUsueoW318ClAY6ctmwFdXQyU5A6nDTe+ZeufOr+Vnu6agL/oy8FrlHxA/BL qgpA/u5AzyXz7dI75Ng== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3y5t0vhc3w-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 17 May 2024 00:45:20 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 17 May 2024 00:45:19 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 17 May 2024 00:45:19 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id E0E893F70A6; Fri, 17 May 2024 00:45:16 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , Subject: [PATCH 09/10] net/cnxk: clear CGX stats during xstats reset Date: Fri, 17 May 2024 13:14:47 +0530 Message-ID: <20240517074448.3146611-9-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240517074448.3146611-1-ndabilpuram@marvell.com> References: <20240517074448.3146611-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: bAxuNCuJuD2dfbV3loUfQ6gF8Xh1Plb2 X-Proofpoint-GUID: bAxuNCuJuD2dfbV3loUfQ6gF8Xh1Plb2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-16_07,2024-05-15_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Sunil Kumar Kori Currently only NIX stats are cleared during xstats reset and CGX stats are left as it is. Clearing CGX stats too during xstats reset. Signed-off-by: Sunil Kumar Kori --- drivers/net/cnxk/cnxk_stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/cnxk/cnxk_stats.c b/drivers/net/cnxk/cnxk_stats.c index f2f2222c89..469faff405 100644 --- a/drivers/net/cnxk/cnxk_stats.c +++ b/drivers/net/cnxk/cnxk_stats.c @@ -316,6 +316,8 @@ cnxk_nix_xstats_reset(struct rte_eth_dev *eth_dev) goto exit; } + /* Reset MAC stats */ + rc = roc_nix_mac_stats_reset(nix); exit: return rc; }