From patchwork Wed Jan 4 06:07:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Kumar Kori X-Patchwork-Id: 121551 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 5BF61A00C2; Wed, 4 Jan 2023 07:07:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24DA040A82; Wed, 4 Jan 2023 07:07:24 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9CF2640697; Wed, 4 Jan 2023 07:07:22 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30457f2R026448; Tue, 3 Jan 2023 22:07: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=WPYSazbUSsM0FDKYBiS3FU3VXE/9FY1receRCMmyt7Y=; b=MsbJlm61L9hycg73532ml8xUmmUr1XR+v7VcmpPcvVYVzEJ7VTBeA/ze90sR6f0uLjN6 UVrLEw/5LgL9HCV7h3ipd1LMIhbgvNx5jYLShr68gPB/np1O0BrWZMCBw1ZPdXQCDHOA a3Hsppd9Qp5lf42MBH0GxQuPUsngiqI5j5a3/7OqYLd2kr44lzCR7T8CVnN2UfQCIRM9 pLzTKTKjoThmgVXbTMuPUZDbtMKM101sPehVhUP0xnjwU/C7BxQ1Xcc4ic1uPmPqW43S 01OzLezt843E+HH6+WfEdXKWAA7n4uIQX87Mz/naWQM21LRQHuypsaWJ/5wopwzo1Man Yg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3mtnftjkua-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 03 Jan 2023 22:07:21 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 3 Jan 2023 22:07: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.42 via Frontend Transport; Tue, 3 Jan 2023 22:07:19 -0800 Received: from localhost.localdomain (unknown [10.28.34.25]) by maili.marvell.com (Postfix) with ESMTP id E38B53F708C; Tue, 3 Jan 2023 22:07:15 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Subject: [PATCH] common/cnxk: reduce channel count per LMAC Date: Wed, 4 Jan 2023 11:37:12 +0530 Message-ID: <20230104060712.283128-1-skori@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: bKXSkW_w52J6vVSvb5I6Q9LulOqselZJ X-Proofpoint-ORIG-GUID: bKXSkW_w52J6vVSvb5I6Q9LulOqselZJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-04_02,2023-01-03_02,2022-06-22_01 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 Due to limitation, imposed by latest kernel, maximum number of channel supported per LMAC is reduced to 8. Because of this change application gets failed to initialize for more channels. Also this limitation impacts PFC functional behaviour. So patch just aligns the supported number of channel with kernel. Fixes: 20d02329cdc2 ("common/cnxk: support priority flow control") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori --- 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 8b0384c737..fd9d3e73cd 100644 --- a/drivers/common/cnxk/roc_mbox.h +++ b/drivers/common/cnxk/roc_mbox.h @@ -1169,7 +1169,7 @@ struct nix_bp_cfg_req { * so maximum 256 channels are possible. */ #define NIX_MAX_CHAN 256 -#define NIX_CGX_MAX_CHAN 16 +#define NIX_CGX_MAX_CHAN 8 #define NIX_LBK_MAX_CHAN 1 struct nix_bp_cfg_rsp { struct mbox_msghdr hdr;