app/testpmd: fix DCB set
authorTing Xu <ting.xu@intel.com>
Tue, 12 May 2020 10:13:56 +0000 (10:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commit5139bc12b0d133fd99d0a0c07f0c5a31cff0ac39
treea6adfcdb4a8a0627488bd25baeebd5d3449d17c6
parent29e091cefeaca39c3565c5671bd904fef6d0bf63
app/testpmd: fix DCB set

When set DCB in testpmd, there is a segmentation fault. It is
because the local variable rss_conf in get_eth_dcb_conf()
is not cleared, so that the pointer member variable rss_key has
a random address, which leads to an error in the following
processing. This patch initialized the local variable rss_conf
to avoid this situation.

Fixes: ac7c491c3fec ("app/testpmd: fix DCB config")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c