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 4B10EA0C40 for ; Thu, 29 Jul 2021 06:14:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3AA1A4003C; Thu, 29 Jul 2021 06:14: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 DA14D40E01 for ; Thu, 29 Jul 2021 06:14:04 +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 16T4CArw024720 for ; Wed, 28 Jul 2021 21:14: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=6LY4hqH5dbVqUSW9Ee5QDtmerP6Jg7fxa5Vw5YW8Atg=; b=Qrc1SZzrYvqlXX4hYIi0sU7lL28TW+6yypPsBbLoIbM/gALYWcucWmFYbHII4kV/PkcD df7k9dqXHkwbZr5ptqyryRh+Gsvpguq6qXIdvu7u6SiuMCX9k36dEuNCE978pikN8l/+ grqrCqosGe//2U0vVjXPVy29wHknJbl79abtI/7XuS3WcoYCbLpcxWOdP3Dos3ivtsDl qXJMqTmBLG8Wt8E54b9ToH5FpnrE1L6lX7FaqO8iJv/tF1Q9bkmaF1K7zvuH/aeq3r8W Mwk3/Bl3RcLppRxTDXBXRkmrcmjV3DKBS72jvaXBLc0zePDqDcslg18Nxagc1lQ1WMyQ Gw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 3a35pr35yk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 28 Jul 2021 21:14:04 -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.18; Wed, 28 Jul 2021 21:14:02 -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.18 via Frontend Transport; Wed, 28 Jul 2021 21:14:01 -0700 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 6DDD43F7069; Wed, 28 Jul 2021 21:14:00 -0700 (PDT) From: To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: , Satheesh Paul Date: Thu, 29 Jul 2021 09:43:56 +0530 Message-ID: <20210729041356.2053698-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-ORIG-GUID: idI51Z6sactIxiNo3xsYfzptIpc1tjTI X-Proofpoint-GUID: idI51Z6sactIxiNo3xsYfzptIpc1tjTI X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-29_03:2021-07-27, 2021-07-29 signatures=0 Subject: [dpdk-stable] [PATCH 20.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 d4a85bf55e..3f9542331f 100644 --- a/drivers/net/octeontx2/otx2_ethdev_devargs.c +++ b/drivers/net/octeontx2/otx2_ethdev_devargs.c @@ -134,7 +134,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 ipsec_in_max_spi = 1; -- 2.25.4