app/testpmd: fix RSS structure initialisation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Mon, 23 Oct 2017 11:17:56 +0000 (13:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitf3fb0e46251080aced4354afb41decb0dc8eae2d
tree4e355518c148657a1f5fd63de809bfed9e5e5497
parent643456761d7557d183ba3195049eeaebfd5c687e
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 <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
app/test-pmd/cmdline.c