From: Kirill Rybalchenko Date: Wed, 20 Sep 2017 15:06:27 +0000 (+0100) Subject: app/testpmd: port info prints dynamically mapped flow types X-Git-Tag: spdx-start~1807 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8b94c81e33419d0284a033529f8d1a47055afa24;p=dpdk.git app/testpmd: port info prints dynamically mapped flow types Port info command prints information about all supported flow types, including dynamically mapped ones. Signed-off-by: Kirill Rybalchenko Reviewed-by: Jingjing Wu --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index e8e311cb54..60a8d07eb4 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -500,12 +500,15 @@ port_infos_display(portid_t port_id) char *p; printf("Supported flow types:\n"); - for (i = RTE_ETH_FLOW_UNKNOWN + 1; i < RTE_ETH_FLOW_MAX; - i++) { + for (i = RTE_ETH_FLOW_UNKNOWN + 1; + i < sizeof(dev_info.flow_type_rss_offloads) * CHAR_BIT; i++) { if (!(dev_info.flow_type_rss_offloads & (1ULL << i))) continue; p = flowtype_to_str(i); - printf(" %s\n", (p ? p : "unknown")); + if (p) + printf(" %s\n", p); + else + printf(" user defined %d\n", i); } }