app/testpmd: fix RSS hash offload display
authorJie Wang <jie1x.wang@intel.com>
Thu, 14 Oct 2021 10:31:24 +0000 (18:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 15 Oct 2021 11:27:05 +0000 (13:27 +0200)
commit655eae01f9936936165854c69795f447c1756f74
treedb5438d4499bc12db4290a7ea6845557e80150c3
parent632be32735107a09672a897b6123b8dc4d15b6ae
app/testpmd: fix RSS hash offload display

The driver may change RSS hash offloads in dev->data->dev_conf
during dev_configure which may cause port->dev_conf and port->rx_conf
contain outdated values.
Since testpmd uses its configuration structures to display offloads
configuration, it doesn't display RSS hash offload.

This patch updates the testpmd offloads from device configuration
to fix this issue.

Fixes: ce8d561418d4 ("app/testpmd: add port configuration settings")

Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
app/test-pmd/util.c