[PATCH 1/2] net/null: fix unit test fail on RSS
Jie Hai
haijie1 at huawei.com
Thu Nov 9 11:05:51 CET 2023
The ethdev uses "dev_info->hash_key_size" to check RSS configuration.
So drivers should report the correct info, This patch fixes it.
For more details:
https://bugs.dpdk.org/show_bug.cgi?id=1308
Fixes: bae3cfa520a7 ("ethdev: clarify RSS related fields usage")
Cc: stable at dpdk.org
Signed-off-by: Jie Hai <haijie1 at huawei.com>
---
drivers/net/null/rte_eth_null.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c
index d742bc415c8c..7c46004f1e33 100644
--- a/drivers/net/null/rte_eth_null.c
+++ b/drivers/net/null/rte_eth_null.c
@@ -316,6 +316,7 @@ eth_dev_info(struct rte_eth_dev *dev,
dev_info->min_rx_bufsize = 0;
dev_info->reta_size = internals->reta_size;
dev_info->flow_type_rss_offloads = internals->flow_type_rss_offloads;
+ dev_info->hash_key_size = sizeof(internals->rss_key);
return 0;
}
--
2.30.0
More information about the dev
mailing list