From patchwork Tue Jul 6 08:19:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satheesh Paul Antonysamy X-Patchwork-Id: 95336 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 6EB5DA0C47; Tue, 6 Jul 2021 10:19:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24F9C41234; Tue, 6 Jul 2021 10:19:28 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7696141234 for ; Tue, 6 Jul 2021 10:19:26 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1668GqsS025936 for ; Tue, 6 Jul 2021 01:19:25 -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=ZFnuQOZSvckPoRPbyeX1BR1RfPmD4u9sQY9YsvJVLLY=; b=LsU1KlVfNj4zLEjwcyqH8BCmX+kjn5FHPmYrYdFyxQyeBpucO4hlc77mD0dCVMsQ/5Hp 000DvnDNLivjsytQFqAOguNxb/gAW2h8Qo7istAS8Tau2jqOTws+w+WWXh8r/Lv1zlzW g2l7ZC7rIAEv2CtIo+QFkoTOM5CNUSeZ5nOk4R9uZlknHZwr88bgv9MB0qxLrvohsFlE UBHhJI82rtYR8RTQBMssOTU7/uK3tk4cpf9ve5/rbwdJLF1tdi2Hhrk4KY1r4z7RTGmJ vHCa+kKn7mROJ3vTXQlFDLI2AwMTPlnxNvLCC+/uVmbE0g8PGZ2UQHIedy46gAIc9wz/ oQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 39md8ph59d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 06 Jul 2021 01:19:25 -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; Tue, 6 Jul 2021 01:19:24 -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; Tue, 6 Jul 2021 01:19:24 -0700 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 4E9283F7045; Tue, 6 Jul 2021 01:19:22 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Date: Tue, 6 Jul 2021 13:49:18 +0530 Message-ID: <20210706081918.1596477-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Proofpoint-GUID: K4D6s1bgTRvz0GRkclDDq94zOgbvF2VI X-Proofpoint-ORIG-GUID: K4D6s1bgTRvz0GRkclDDq94zOgbvF2VI X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-06_04:2021-07-02, 2021-07-06 signatures=0 Subject: [dpdk-dev] [PATCH] net/cnxk: fix default MCAM allocation size 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 Sender: "dev" From: Satheesh Paul 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 Acked-by: Jerin Jacob --- drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_devargs.c b/drivers/net/cnxk/cnxk_ethdev_devargs.c index c76b6281c..7f20e9228 100644 --- a/drivers/net/cnxk/cnxk_ethdev_devargs.c +++ b/drivers/net/cnxk/cnxk_ethdev_devargs.c @@ -116,7 +116,7 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev) { uint16_t reta_sz = ROC_NIX_RSS_RETA_SZ_64; uint16_t sqb_count = CNXK_NIX_TX_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 rss_tag_as_xor = 0;