Skip to content

Commit

Permalink
test/bonding: fix uninitialized RSS configuration
Browse files Browse the repository at this point in the history
[ upstream commit fb662d632d80fe74333e39155354814c98920ba9 ]

Driver reported RSS key size checked against user configuration in
ethdev layer, need to initialize "struct rte_eth_rss_conf" before
configuring RSS. Otherwise, an error will occur.

Bugzilla ID: 1308
Fixes: 43b6302 ("app/test: add dynamic bonding RSS configuration")
Fixes: bae3cfa520a7 ("ethdev: clarify RSS related fields usage")

Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
  • Loading branch information
Jie Hai authored and kevintraynor committed Nov 16, 2023
1 parent 4308ee1 commit 7e63046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test/test_link_bonding_rssconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ test_propagate(void)
uint8_t n;
struct slave_conf *port;
uint8_t bond_rss_key[40];
struct rte_eth_rss_conf bond_rss_conf;
struct rte_eth_rss_conf bond_rss_conf = {0};

int retval = 0;
uint64_t rss_hf = 0;
Expand Down

0 comments on commit 7e63046

Please sign in to comment.