From: NĂ©lio Laranjeiro Date: Mon, 23 Oct 2017 11:17:56 +0000 (+0200) Subject: app/testpmd: fix RSS structure initialisation X-Git-Tag: spdx-start~1138 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f3fb0e46251080aced4354afb41decb0dc8eae2d;p=dpdk.git app/testpmd: fix RSS structure initialisation Struct rss_conf.rss_key_len is not initialised forcing the user to verify the rss_conf.rss_key pointer to know if the key is present or not. rss_conf.rss_key_len should have a valid length according to the size of the rss_key pointed. Fixes: 560e02ee5237 ("app/testpmd: configure RSS without restart") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 1159a4a477..bedf1e4501 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -1845,7 +1845,7 @@ cmd_config_rss_parsed(void *parsed_result, __attribute__((unused)) void *data) { struct cmd_config_rss *res = parsed_result; - struct rte_eth_rss_conf rss_conf; + struct rte_eth_rss_conf rss_conf = { .rss_key_len = 0, }; int diag; uint8_t i;