[PATCH v2 1/1] net/cnxk: fix RSS config via ethdev configure API
skori at marvell.com
skori at marvell.com
Thu May 23 16:53:21 CEST 2024
From: Sunil Kumar Kori <skori at marvell.com>
Currently user passed RSS configuration is ignored via
rte_eth_dev_configure() API. Instead default RSS setup is done by
driver.
Adding handling for user passed RSS configuration too via
rte_eth_dev_configure().
Fixes: b75e0aca84b0 ("net/cnxk: add device configuration operation")
Cc: stable at dpdk.org
Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
---
v1..v2:
- added Fixes tag.
drivers/net/cnxk/cnxk_ethdev.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c
index 6b37bd877f..95a3d8aaf9 100644
--- a/drivers/net/cnxk/cnxk_ethdev.c
+++ b/drivers/net/cnxk/cnxk_ethdev.c
@@ -1384,6 +1384,13 @@ cnxk_nix_configure(struct rte_eth_dev *eth_dev)
goto free_nix_lf;
}
+ /* Overwrite default RSS setup if requested by user */
+ rc = cnxk_nix_rss_hash_update(eth_dev, &conf->rx_adv_conf.rss_conf);
+ if (rc) {
+ plt_err("Failed to configure rss rc=%d", rc);
+ goto free_nix_lf;
+ }
+
/* Init the default TM scheduler hierarchy */
rc = roc_nix_tm_init(nix);
if (rc) {
--
2.34.1
More information about the dev
mailing list