From patchwork Fri Aug 11 08:57:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 130121 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 53C4943032; Fri, 11 Aug 2023 10:58:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 103BB4326B; Fri, 11 Aug 2023 10:58:34 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B6EB843264 for ; Fri, 11 Aug 2023 10:58:31 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AMjlII001539 for ; Fri, 11 Aug 2023 01:58:31 -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=0BAAJRz+raby09RtKWnl0VAEVe7N6Xmt+TdWOZRvX64=; b=CPTuRw88/yqsvavXJc7c/8ClKwSoQW3YPuW2gCwXqlcsV9gygalTrkRoTOIyex2wDnFU R2z4/Ki1qNP+1SRf/pJN+sf1C1HeQ25xrqaKL0CzOkchrEhDaHNA8HELqxIEMPe0Tl6e M4K2FOy6ozYAzbAKoryEOtAz34YyiwXw4RIn4GoyVu2D+Ed4vhG5AryCt39kxjZVoZL5 HbSTpKXUS4CcfD1XgQHbo3OKDLUY0do9nUFbPB+GCZhsYyPr5fvIlWiozz2iOm5Ga09X HqnZWKriHAQyOOcuoBy3WV3Ap6DhU/0ZFwBUiBEyylnparyDa4yf9jaGlUbWAk47PuB+ pA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8yp9r6m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 11 Aug 2023 01:58:30 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 11 Aug 2023 01:58:29 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 11 Aug 2023 01:58:29 -0700 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id A86853F706A; Fri, 11 Aug 2023 01:58:26 -0700 (PDT) From: Nithin Dabilpuram To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Rakesh Kudurumalla Subject: [PATCH 07/31] common/cnxk: fix xstats for different packet sizes Date: Fri, 11 Aug 2023 14:27:41 +0530 Message-ID: <20230811085805.441256-7-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230811085805.441256-1-ndabilpuram@marvell.com> References: <20230811085805.441256-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: VmKHmoqNOZSK5oF1nohLFq99i7qvsohe X-Proofpoint-GUID: VmKHmoqNOZSK5oF1nohLFq99i7qvsohe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_20,2023-08-10_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: Rakesh Kudurumalla xstats for transmitted packets with different sizes are not updated as sizeof mbox response structure are different in dpdk and kernel.This patch fixes the same. Fixes: 503b82de2cbf ("common/cnxk: add mbox request and response definitions") Signed-off-by: Rakesh Kudurumalla --- drivers/common/cnxk/roc_mbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h index 2fd01cd710..169bbcb664 100644 --- a/drivers/common/cnxk/roc_mbox.h +++ b/drivers/common/cnxk/roc_mbox.h @@ -558,7 +558,7 @@ enum cgx_af_status { struct cgx_stats_rsp { struct mbox_msghdr hdr; -#define CGX_RX_STATS_COUNT 13 +#define CGX_RX_STATS_COUNT 9 #define CGX_TX_STATS_COUNT 18 uint64_t __io rx_stats[CGX_RX_STATS_COUNT]; uint64_t __io tx_stats[CGX_TX_STATS_COUNT];