app/testpmd: fix config due to RSS offload check
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 25 Apr 2018 13:38:16 +0000 (21:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:56 +0000 (18:00 +0100)
commit9089296206ceae3768cdf3a33441eee6735cdf1b
tree57c0f48514c15ce6bb6ed986c4b0b9cb4f79fd23
parent01764b20c2ffd4b5755a6da40b307a12d8185b46
app/testpmd: fix config due to RSS offload check

After add RSS hash offload check, default rss_hf  will fail on
devices that not support all bits, the patch take rss_hf as
a suggest value and only set bits that device supported base on
rte_eth_dev_get_info, also rss_hf will only be updated when new
rss offload is successfully updated on all ports by
"port config all rss [!default]" command.

Fixes: 8863a1fbfc66 ("ethdev: add supported hash function check")
Fixes: d9aa619c60b6 ("app/testpmd: new parameter for port config all RSS command")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c