From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CED99440E8; Mon, 27 May 2024 19:28:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BCD824064A; Mon, 27 May 2024 19:28:43 +0200 (CEST) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by mails.dpdk.org (Postfix) with ESMTP id 687594064A for ; Mon, 27 May 2024 19:28:42 +0200 (CEST) Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6f12171523eso20957a34.1 for ; Mon, 27 May 2024 10:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716830922; x=1717435722; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LT7xcKAV0pRpDsyuEvuX7CUfVpTu/nLah9LGmMXM6pI=; b=EoRMUTAK3LCJELknYK+IP5YaH+/7iVDEhiN5epahPt0d6QvhVeiq4x+bmJjSp0Ikao XfRdeXFxcMvgdUglxVYvE/ga+9snwfkdjOtTNQneAN5ppRL9wFsmggwK1LWzWRDwhVnZ JWLJiqVv4FhW+3jBNRsJU1/sYtw2vIK7/OjKgG8H1w6wC9Vk78+/gjHFoH4EXVXpu+Kb gvIVl4wwlocpJfbEJ7wocCsBpU9wkscrLeFLGZt1/I1TE8DP0sSbXkCh7wmJHUu3jCMl BGkODprrosSHpZ5pi8vuJn6Cl+WXT5/7phOsRCf40KdqYL+/6VT+R+vUnBLpK4osQBX2 rU6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716830922; x=1717435722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LT7xcKAV0pRpDsyuEvuX7CUfVpTu/nLah9LGmMXM6pI=; b=bOAcRA+47x6k/UPLmLjx9yNAstd9JHYM5viCYcDMOkLIDvYKmqAPuReILv+/b+J8+D vEK9isDg39G3uSdlci8JfNTv8p4ItTVBHsJcMe7h7CMUBThdN41UNvj3h8eUQS602QXQ kX23KwtS9gTeuinpdnDwPzLoBbh3NDTxDynylgJclBvGA/PxLDZIqR61IBr/Bzwn/S3A 4ZOivaoE/dE6RAFMPAc2pNK9nIT7KALPlxGJdpsd80IYLizqrTf70iVR++TNVhM9sh7h 1QtkCWVQZ4Rdqq6iwrBFsAwdadVmE6Md2rf1S3pTZL5AA4501PFdTu/I8ByaiMqG3ur3 xVDw== X-Forwarded-Encrypted: i=1; AJvYcCXjqzSx3Edpdj/EBPBE8h40bMBw7Qx8wA/1OcrvIu0KjYAANluEx2dVIEKZzQl4vgPYCG4yDE/5epJ6MQo= X-Gm-Message-State: AOJu0YwvllVhKAJSB8lTRUvvmW4GHaObmUkO0AoS/EfQJFwqjKeX5fMa jTlyxK8DjErk2QrJY1PMnyiZ7bFR8h0Tec4CFPBp5/A0APe4L02F8zv0JV2+AukMtZ9x/D9RsXT 7++eXyqnW0IBpkpbBhYMuF0zNWAU= X-Google-Smtp-Source: AGHT+IGUAk4k+I8pYSstFrXKDrPAcyfj3lwSIKS3dxzFE3Ln6JchpmrtgEFKSPwk8fnyypfJo9AVlFJOSS+Yhlv38Z0= X-Received: by 2002:a9d:62c9:0:b0:6ed:7ce1:6612 with SMTP id 46e09a7af769-6f8d0b8fcf9mr10463476a34.32.1716830921667; Mon, 27 May 2024 10:28:41 -0700 (PDT) MIME-Version: 1.0 References: <20240517074448.3146611-1-ndabilpuram@marvell.com> <20240517074448.3146611-9-ndabilpuram@marvell.com> In-Reply-To: <20240517074448.3146611-9-ndabilpuram@marvell.com> From: Jerin Jacob Date: Mon, 27 May 2024 22:58:15 +0530 Message-ID: Subject: Re: [PATCH 09/10] net/cnxk: clear CGX stats during xstats reset To: Nithin Dabilpuram Cc: Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra , jerinj@marvell.com, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Fri, May 17, 2024 at 1:16=E2=80=AFPM Nithin Dabilpuram wrote: > > 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 Change to fix and add Fixes: tag > --- > 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 =3D roc_nix_mac_stats_reset(nix); > exit: > return rc; > } > -- > 2.25.1 >