[6/6] net/cnxk: update bufsize in lookup memory

Message ID 20250519125424.1435140-6-rbhansali@marvell.com (mailing list archive)
State Changes Requested
Delegated to: Jerin Jacob
Headers
Series [1/6] common/cnxk: config of CPT result address offset |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation warning apply issues
ci/iol-testing warning apply patch failure
ci/github-robot: build success github build: passed

Commit Message

Rahul Bhansali May 19, 2025, 12:54 p.m. UTC
Update bufsize in lookup-mem by default to maintain
data order.

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
---
 drivers/net/cnxk/cn20k_ethdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/drivers/net/cnxk/cn20k_ethdev.c b/drivers/net/cnxk/cn20k_ethdev.c
index 740fdb7f76..159ce39e97 100644
--- a/drivers/net/cnxk/cn20k_ethdev.c
+++ b/drivers/net/cnxk/cn20k_ethdev.c
@@ -604,8 +604,7 @@  cn20k_nix_dev_start(struct rte_eth_dev *eth_dev)
 	if (roc_idev_nix_rx_inject_get(nix->port_id))
 		dev->rx_offload_flags |= NIX_RX_SEC_REASSEMBLY_F;
 
-	if (dev->rx_offload_flags & NIX_RX_REAS_F)
-		cn20k_nix_rx_queue_bufsize_update(eth_dev);
+	cn20k_nix_rx_queue_bufsize_update(eth_dev);
 
 	cn20k_eth_set_tx_function(eth_dev);
 	cn20k_eth_set_rx_function(eth_dev);