MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cmd_showport_parsed

Function cmd_showport_parsed

dpdk/app/test-pmd/cmdline.c:6867–6893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6865};
6866
6867static 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
6895static cmdline_parse_token_string_t cmd_showport_show =
6896 TOKEN_STRING_INITIALIZER(struct cmd_showport_result, show,

Callers

nothing calls this directly

Calls 10

strcmpFunction · 0.85
port_infos_displayFunction · 0.85
port_summary_displayFunction · 0.85
fdir_get_infosFunction · 0.85
port_dcb_info_displayFunction · 0.85
nic_stats_clearFunction · 0.70
nic_xstats_clearFunction · 0.70
nic_stats_displayFunction · 0.70
nic_xstats_displayFunction · 0.70

Tested by

no test coverage detected