app/testpmd: fix supported RSS offload display
authorHuisong Li <lihuisong@huawei.com>
Wed, 29 Jun 2022 08:34:44 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 29 Jun 2022 19:40:49 +0000 (21:40 +0200)
commit3c23ee6cdddf28641f52f31ced84d3feb867027c
tree4e61096de9673488529bbb439e0d9a9b2668ffbd
parentc14106dd92d12371393e1a92ea1f543c48896e61
app/testpmd: fix supported RSS offload display

The rte_eth_dev_info.flow_type_rss_offloads is populated in terms of
RTE_ETH_RSS_* bits. If PMD sets RTE_ETH_RSS_L3_SRC_ONLY to
dev_info->flow_type_rss_offloads. testpmd will display "user defined 63"
when run 'show port info 0'. Because testpmd use flowtype_to_str()
to display the supported RSS offload of PMD. In fact, the function is
used to display flow type in FDIR commands for i40e or ixgbe. This patch
uses the RTE_ETH_RSS_* bits to display supported RSS offload of PMD.

Fixes: b12964f621dc ("ethdev: unification of RSS offload types")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
app/test-pmd/config.c
app/test-pmd/testpmd.h