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 05264A0C4D for ; Thu, 12 Aug 2021 13:29:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAE4D40042; Thu, 12 Aug 2021 13:29:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 6431840042 for ; Thu, 12 Aug 2021 13:29:05 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17CBKhFA031446 for ; Thu, 12 Aug 2021 04:29:04 -0700 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=K87bJ8SN8HvKjOk4nB/Zp5UVWMyk4m0Bws8caBNyNn0=; b=cQbgyCy69ffI5Slxohkcf3e/0OQFrQ9OF8yExSeh1ScR5Bsp8d/0pC/Il37618Du02HM D7YQMlQS0Obpr6Xq8El6MGtjPIjz2iCdL+QU5wBWImLjCHXxdyBtHQX1uB5m+XB3khxv HHwZZvckP7ptuRvcBtXURxSIA1Db6Glhv7neWCIDxEitiq3cpLj8Vf+dVHOKQGb13KUN ZmUajMe652FtMLPY/1/hTGJg78Ss4cogbLXppGFInOpusMVeEWUIdb9FPykJN3pMbgqU SifvrGV5D8k6M8r69CHZsU2E+0RVJyQmNJZMLkg72L4a6hiwaBnp+W4PBUW6Rxi/aB62 uQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3acc8gccr3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 12 Aug 2021 04:29:04 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 12 Aug 2021 04:29:02 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 12 Aug 2021 04:29:02 -0700 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id D63D33F70BB; Thu, 12 Aug 2021 04:29:00 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: , Satheesh Paul Date: Thu, 12 Aug 2021 16:58:56 +0530 Message-ID: <20210812112856.2772921-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: rmn6OYfILzqpOOldFijq-YFRnglc00XN X-Proofpoint-ORIG-GUID: rmn6OYfILzqpOOldFijq-YFRnglc00XN X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-12_03:2021-08-12, 2021-08-12 signatures=0 Subject: [dpdk-stable] [PATCH 19.11] net/octeontx2: fix default MCAM allocation size X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Satheesh Paul [ upstream commit d81cea5280112f5f6c8796c2fb0bad72bf29d41e ] Preallocation of MCAM entries is not valid anymore since the AF side MCAM allocation scheme has changed. This patch disables preallocation by changing the default MCAM preallocation size from 8 to 1. Fixes: 168c59cfe42 ("net/octeontx2: add flow MCAM utility functions") Signed-off-by: Satheesh Paul --- drivers/net/octeontx2/otx2_ethdev_devargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/octeontx2/otx2_ethdev_devargs.c b/drivers/net/octeontx2/otx2_ethdev_devargs.c index 04da1abbdb..d29d1eb97b 100644 --- a/drivers/net/octeontx2/otx2_ethdev_devargs.c +++ b/drivers/net/octeontx2/otx2_ethdev_devargs.c @@ -115,7 +115,7 @@ otx2_ethdev_parse_devargs(struct rte_devargs *devargs, struct otx2_eth_dev *dev) { uint16_t rss_size = NIX_RSS_RETA_SIZE; uint16_t sqb_count = NIX_MAX_SQB; - uint16_t flow_prealloc_size = 8; + uint16_t flow_prealloc_size = 1; uint16_t switch_header_type = 0; uint16_t flow_max_priority = 3; uint16_t scalar_enable = 0; -- 2.25.4