Skip to contentSkip to conversation

net/cnxk: fix default MCAM allocation size

PATCH Applied [email protected] 2 participants 2 messages Jul 6, 2021 – Jul 12, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/cnxk: fix default MCAM allocation size

From: Satheesh Paul <[email protected]>

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")
---
 drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cnxk/cnxk_ethdev_devargs.c +1 -1
index c76b6281c..7f20e9228 100644
@@ -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;
Signature · 1 line
2.25.4
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · On Tue, Jul 6, 2021 at 1:49 PM <[email protected]> wrote:

From: Satheesh Paul <[email protected]>

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")

Applied to dpdk-next-net-mrvl/for-next-net. Thanks

Quoted 20 lines
---
 drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cnxk/cnxk_ethdev_devargs.c +1 -2
index c76b6281c..7f20e9228 100644
@@ -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;
--

2.25.4