From: Satheesh Paul Date: Tue, 6 Jul 2021 08:19:18 +0000 (+0530) Subject: net/cnxk: fix default MCAM allocation size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d81cea5280112f5f6c8796c2fb0bad72bf29d41e;p=dpdk.git net/cnxk: fix default MCAM allocation size 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") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Acked-by: Jerin Jacob --- diff --git a/drivers/net/cnxk/cnxk_ethdev_devargs.c b/drivers/net/cnxk/cnxk_ethdev_devargs.c index c76b6281c7..7f20e92288 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;