From: Jie Hai <haijie1@huawei.com>
To: <dev@dpdk.org>, <songx.jiale@intel.com>,
<zhiminx.huang@intel.com>, <ferruh.yigit@amd.com>,
Tetsuya Mukawa <mtetsuyah@gmail.com>,
Huisong Li <lihuisong@huawei.com>,
Chengwen Feng <fengchengwen@huawei.com>
Cc: <liudongdong3@huawei.com>
Subject: [PATCH 1/2] net/null: fix unit test fail on RSS
Date: Thu, 9 Nov 2023 18:05:51 +0800 [thread overview]
Message-ID: <20231109100552.1250123-2-haijie1@huawei.com> (raw)
In-Reply-To: <20231109100552.1250123-1-haijie1@huawei.com>
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@dpdk.org
Signed-off-by: Jie Hai <haijie1@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
next prev parent reply other threads:[~2023-11-09 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 10:05 [PATCH 0/2] app/test: " Jie Hai
2023-11-09 10:05 ` Jie Hai [this message]
2023-11-09 10:05 ` [PATCH 2/2] app/test: fix uninitialized RSS configuration Jie Hai
2023-11-09 14:22 ` [PATCH 0/2] app/test: fix unit test fail on RSS Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231109100552.1250123-2-haijie1@huawei.com \
--to=haijie1@huawei.com \
--cc=dev@dpdk.org \
--cc=fengchengwen@huawei.com \
--cc=ferruh.yigit@amd.com \
--cc=lihuisong@huawei.com \
--cc=liudongdong3@huawei.com \
--cc=mtetsuyah@gmail.com \
--cc=songx.jiale@intel.com \
--cc=zhiminx.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).