| 6865 | }; |
| 6866 | |
| 6867 | static void cmd_showport_parsed(void *parsed_result, |
| 6868 | __rte_unused struct cmdline *cl, |
| 6869 | __rte_unused void *data) |
| 6870 | { |
| 6871 | struct cmd_showport_result *res = parsed_result; |
| 6872 | if (!strcmp(res->show, "clear")) { |
| 6873 | if (!strcmp(res->what, "stats")) |
| 6874 | nic_stats_clear(res->portnum); |
| 6875 | else if (!strcmp(res->what, "xstats")) |
| 6876 | nic_xstats_clear(res->portnum); |
| 6877 | } else if (!strcmp(res->what, "info")) |
| 6878 | port_infos_display(res->portnum); |
| 6879 | else if (!strcmp(res->what, "summary")) { |
| 6880 | port_summary_header_display(); |
| 6881 | port_summary_display(res->portnum); |
| 6882 | } |
| 6883 | else if (!strcmp(res->what, "stats")) |
| 6884 | nic_stats_display(res->portnum); |
| 6885 | else if (!strcmp(res->what, "xstats")) |
| 6886 | nic_xstats_display(res->portnum); |
| 6887 | #if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE) |
| 6888 | else if (!strcmp(res->what, "fdir")) |
| 6889 | fdir_get_infos(res->portnum); |
| 6890 | #endif |
| 6891 | else if (!strcmp(res->what, "dcb_tc")) |
| 6892 | port_dcb_info_display(res->portnum); |
| 6893 | } |
| 6894 | |
| 6895 | static cmdline_parse_token_string_t cmd_showport_show = |
| 6896 | TOKEN_STRING_INITIALIZER(struct cmd_showport_result, show, |
nothing calls this directly
no test coverage detected