app/testpmd: remove duplicated offload display
PATCH 1/1 app/testpmd: remove duplicated offload display
"show port cap all|<port_id>" was to display offload configuration of port(s).
But later two other commands added to show same information in more accurate way:
show port (port_id) rx_offload configuration
show port (port_id) tx_offload configuration
These new commands can both show port and queue level configuration, also with their capabilities counterparts easier to see offload capability and configuration of the port in similar syntax.
So the functionality is duplicated and removing this version, to favor the new commands.
Another problem with this command is it requires each new offload to be added into the function to display them, and there were missing offloads that are not displayed, this requirement for sure will create gaps by time as new offloads added.
--- app/test-pmd/cmdline.c | 15 +- app/test-pmd/config.c | 289 -------------------- app/test-pmd/testpmd.h | 1 - doc/guides/testpmd_app_ug/testpmd_funcs.rst | 12 +- 4 files changed, 10 insertions(+), 307 deletions(-)
app/test-pmd/cmdline.c +5 -10
@@ -163,7 +163,7 @@ static void cmd_help_long_parsed(void *parsed_result,"Display:\n" "--------\n\n" -"show port (info|stats|summary|xstats|fdir|dcb_tc|cap) (port_id|all)\n" +"show port (info|stats|summary|xstats|fdir|dcb_tc) (port_id|all)\n" " Display information for port_id, or all.\n\n" "show port port_id (module_eeprom|eeprom)\n"
@@ -7569,9 +7569,6 @@ static void cmd_showportall_parsed(void *parsed_result,else if (!strcmp (res->what,"dcb_tc" )) RTE_ETH_FOREACH_DEV(i)port_dcb_info_display (i); -else if (!strcmp (res->what,"cap" )) - RTE_ETH_FOREACH_DEV(i) -port_offload_cap_display (i); } cmdline_parse_token_string_t cmd_showportall_show =
@@ -7581,14 +7578,14 @@ cmdline_parse_token_string_t cmd_showportall_port = TOKEN_STRING_INITIALIZER(struct cmd_showportall_result, port, "port");cmdline_parse_token_string_t cmd_showportall_what = TOKEN_STRING_INITIALIZER(struct cmd_showportall_result, what, -"info#summary#stats#xstats#fdir#dcb_tc#cap" ); +"info#summary#stats#xstats#fdir#dcb_tc" );cmdline_parse_token_string_t cmd_showportall_all = TOKEN_STRING_INITIALIZER(struct cmd_showportall_result, all, "all");cmdline_parse_inst_t cmd_showportall = { .f = cmd_showportall_parsed, .data =NULL , .help_str ="show|clear port " -"info|summary|stats|xstats|fdir|dcb_tc|cap all" , +"info|summary|stats|xstats|fdir|dcb_tc all" , .tokens = { (void *)&cmd_showportall_show, (void *)&cmd_showportall_port,
@@ -7632,8 +7629,6 @@ static void cmd_showport_parsed(void *parsed_result,#endif else if (!strcmp(res->what, "dcb_tc"))port_dcb_info_display (res->portnum); - else if (!strcmp(res->what, "cap")) -port_offload_cap_display (res->portnum); } cmdline_parse_token_string_t cmd_showport_show =
@@ -7643,7 +7638,7 @@ cmdline_parse_token_string_t cmd_showport_port = TOKEN_STRING_INITIALIZER(struct cmd_showport_result, port, "port");cmdline_parse_token_string_t cmd_showport_what = TOKEN_STRING_INITIALIZER(struct cmd_showport_result, what, -"info#summary#stats#xstats#fdir#dcb_tc#cap" ); +"info#summary#stats#xstats#fdir#dcb_tc" );cmdline_parse_token_num_t cmd_showport_portnum = TOKEN_NUM_INITIALIZER(struct cmd_showport_result, portnum, RTE_UINT16);
@@ -7651,7 +7646,7 @@ cmdline_parse_inst_t cmd_showport = { .f = cmd_showport_parsed, .data = NULL, .help_str = "show|clear port " - "info|summary|stats|xstats|fdir|dcb_tc|cap " + "info|summary|stats|xstats|fdir|dcb_tc " "<port_id>", .tokens = { (void *)&cmd_showport_show,
app/test-pmd/config.c +0 -289
295 lines not on this page · raw message
app/test-pmd/testpmd.h +0 -1
@@ -776,7 +776,6 @@ void port_summary_display(portid_t port_id);void port_eeprom_display (portid_t port_id);void port_module_eeprom_display (portid_t port_id);void port_summary_header_display (void ); -void port_offload_cap_display (portid_t port_id);void rx_queue_infos_display (portid_t port_idi,uint16_t queue_id);void tx_queue_infos_display (portid_t port_idi,uint16_t queue_id);void fwd_lcores_config_display (void );
doc/guides/testpmd_app_ug/testpmd_funcs.rst +5 -7
@@ -24,10 +24,10 @@ If you type a partial command and hit ``<TAB>`` you get a list of the available testpmd> show port <TAB> - info [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc|cap X - info [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc|cap all - stats [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc|cap X - stats [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc|cap all + info [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc X + info [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc all + stats [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc X + stats [Mul-choice STRING]: show|clear port info|stats|xstats|fdir|stat_qmap|dcb_tc all ...
@@ -159,7 +159,7 @@ show port Display information for a given port or all ports:: - testpmd> show port (info|summary|stats|xstats|fdir|stat_qmap|dcb_tc|cap) (port_id|all) + testpmd> show port (info|summary|stats|xstats|fdir|stat_qmap|dcb_tc) (port_id|all) The available information categories are:
@@ -177,8 +177,6 @@ The available information categories are: * ``dcb_tc``: DCB information such as TC mapping. -* ``cap``: Supported offload capabilities. - For example: .. code-block:: console
Signature · 1 line
2.29.2
Quoted 16 lines · Ferruh Yigit
"show port cap all|<port_id>" was to display offload configuration of port(s).
But later two other commands added to show same information in more accurate way:
show port (port_id)rx_offloadconfiguration
show port (port_id)tx_offloadconfigurationThese new commands can both show port and queue level configuration, also with their capabilities counterparts easier to see offload capability and configuration of the port in similar syntax.
So the functionality is duplicated and removing this version, to favor the new commands.
Quoted 7 lines
Another problem with this command is it requires each new offload to be added into the function to display them, and there were missing offloads that are not displayed, this requirement for sure will create gaps by time as new offloads added.
Signed-off-by Ferruh Yigit <[email protected]>---
Quoted 22 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Friday, February 5, 2021 22:27
To: Lu, Wenzhuo <[email protected]>; Li, Xiaoyun <[email protected]>; Iremonger, Bernard <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: remove duplicated offload display"show port cap all|<port_id>" was to display offload configuration of port(s).
But later two other commands added to show same information in more accurate way:
show port (port_id)rx_offloadconfiguration show port (port_id)tx_offload
configurationThese new commands can both show port and queue level configuration, also with their capabilities counterparts easier to see offload capability and configuration of the port in similar syntax.
So the functionality is duplicated and removing this version, to favor the new commands.
Quoted 7 lines
Another problem with this command is it requires each new offload to be added into the function to display them, and there were missing offloads that are not displayed, this requirement for sure will create gaps by time as new offloads added.
Signed-off-by Ferruh Yigit <[email protected]>---
Acked-by Xiaoyun Li <[email protected]>
Quoted 23 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Friday, February 5, 2021 22:27
To: Lu, Wenzhuo <[email protected]>; Li, Xiaoyun <[email protected]>; Iremonger, Bernard <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: remove duplicated offload display"show port cap all|<port_id>" was to display offload configuration of port(s).
But later two other commands added to show same information in more accurate way:
show port (port_id)rx_offloadconfiguration show port (port_id)tx_offload
configurationThese new commands can both show port and queue level configuration, also with their capabilities counterparts easier to see offload capability and configuration of the port in similar syntax.
So the functionality is duplicated and removing this version, to favor the new commands.
Quoted 6 lines
Another problem with this command is it requires each new offload to be added into the function to display them, and there were missing offloads that are not displayed, this requirement for sure will create gaps by time as new offloads added.
Signed-off-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedQuoted 23 lines · Xiaoyun
Quoted 23 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Friday, February 5, 2021 22:27
To: Lu, Wenzhuo <[email protected]>; Li, Xiaoyun <[email protected]>; Iremonger, Bernard <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: remove duplicated offload display"show port cap all|<port_id>" was to display offload configuration of port(s).
But later two other commands added to show same information in more accurate way:
show port (port_id)rx_offloadconfiguration show port (port_id)tx_offload
configurationThese new commands can both show port and queue level configuration, also with their capabilities counterparts easier to see offload capability and configuration of the port in similar syntax.
So the functionality is duplicated and removing this version, to favor the new commands.
Quoted 9 lines
Quoted 6 lines
Another problem with this command is it requires each new offload to be added into the function to display them, and there were missing offloads that are not displayed, this requirement for sure will create gaps by time as new offloads added.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Xiaoyun Li <[email protected]>
Applied to dpdk-next-net/main, thanks.