From patchwork Fri Feb 2 11:18:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Prakash Shukla X-Patchwork-Id: 136312 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 2BC3143A4F; Fri, 2 Feb 2024 12:18:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11CE9402BF; Fri, 2 Feb 2024 12:18:23 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id BE2D14026E for ; Fri, 2 Feb 2024 12:18:21 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4121WLRx011077 for ; Fri, 2 Feb 2024 03:18:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=jwGh3HcI oMdRGk2WkknsEBs/BLV2QosMRtHWzH+Dsk4=; b=JmehHEpHl0QF/r8vhNMEo224 FBfFkdGm6jsXF/1AKCRpFma2neLsUNb3UCVX0fxI0i1z8bpnnGBJZyJHw3QzbkjM DoaNod7O7bgiqZrq62/gtTHRmPED/O0hqSgJlRzwDgGaee+AeZBOtrE1g4ChgvIq VTA3LdC9UcbDqUWw0b4ga7XPU/TuK2Nlj8TEqra2DsIz9RYysBOp7YWsF1kjSycD En1aKjR3RfrTTpDKl20xa0TXFMHAKk3ikpSM7v4822LrUGJSJJv5+uJO2t4NHSfD BU5o2b9VtJiL8OthSYr/mJiSOy+2qr3SxbPbGBlcSGLmHIbsvwVbDNMeD+uj6A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3w0ptnsd34-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 02 Feb 2024 03:18:21 -0800 (PST) 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, 2 Feb 2024 03:18:19 -0800 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, 2 Feb 2024 03:18:19 -0800 Received: from cavium-OptiPlex-5090-BM14.. (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 913113F70AA; Fri, 2 Feb 2024 03:18:16 -0800 (PST) From: Amit Prakash Shukla To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra CC: , , Amit Prakash Shukla Subject: [PATCH] cnxk: fix representor stats Date: Fri, 2 Feb 2024 16:48:03 +0530 Message-ID: <20240202111804.1763890-1-amitprakashs@marvell.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: LwAr5ZztLiAfTUgdOGysDqeDIo85TIWB X-Proofpoint-GUID: LwAr5ZztLiAfTUgdOGysDqeDIo85TIWB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-02_05,2024-01-31_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 Representor stats were not matching the PF/VF stats as seen linux kernel. This patch fixes the same. Depends-on: series-30966 ("support for port representors") Signed-off-by: Amit Prakash Shukla --- drivers/common/cnxk/roc_mbox.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h index 39c1132792..634694ad79 100644 --- a/drivers/common/cnxk/roc_mbox.h +++ b/drivers/common/cnxk/roc_mbox.h @@ -1856,6 +1856,7 @@ struct nix_get_lf_stats_req { struct nix_lf_stats_rsp { struct mbox_msghdr hdr; + uint16_t __io pcifunc; struct { uint64_t __io octs; uint64_t __io ucast;