]> git.droids-corp.org - dpdk.git/commit
app/testpmd: refactor config all RSS command
authorHuisong Li <lihuisong@huawei.com>
Wed, 29 Jun 2022 08:34:47 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 29 Jun 2022 19:40:50 +0000 (21:40 +0200)
commit9ad341b5c55d6f89e785a6751e4aaeb74d3f54f1
tree0671c839f4e4dea75096dc7227f4bbf2c5c92a32
parentb0f02d9a8256b36963c8aa5f14e426614cea3eb1
app/testpmd: refactor config all RSS command

The "port config <port_id> rss-hash-key" and "show port <port_id>
rss-hash key" commands both use the 'rss_type_table[]' to get
'rss_types' or the RSS type name. So this patch uses the
'rss_type_table[]' to get the RSS types.  In this way, this command
naturally supports more individual types.

Suggested-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/testpmd_funcs.rst