app/testpmd: fix DCB config
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 31 Jul 2018 14:43:34 +0000 (15:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Aug 2018 14:36:04 +0000 (16:36 +0200)
commitac7c491c3fecb835d637e867467dcf7cc8736828
tree3658e27831ee61a4804a318e44bc4816c4805412
parentd07befdf293308c9b1f789b3230c6d59bf966dac
app/testpmd: fix DCB config

After adding RSS hash offload check, default rss_hf will fail on devices
that do not support all bits. This will lead to dcb config failure. The
patch fixes this issue by reading current valid rss_conf from the device.

Fixes: 8863a1fbfc66 ("ethdev: add supported hash function check")
Fixes: 1a572499beb6 ("app/testpmd: setup DCB forwarding based on traffic class")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c