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

Function test_set_rxtx_sc

dpdk/app/test/test_pmd_perf.c:883–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883int
884test_set_rxtx_sc(cmdline_fixed_string_t type)
885{
886 printf("stream control switch to %s\n", type);
887
888 if (!strcmp(type, "continuous")) {
889 sc_flag = SC_CONTINUOUS;
890 return 0;
891 } else if (!strcmp(type, "poll_before_xmit")) {
892 sc_flag = SC_BURST_POLL_FIRST;
893 return 0;
894 } else if (!strcmp(type, "poll_after_xmit")) {
895 sc_flag = SC_BURST_XMIT_FIRST;
896 return 0;
897 }
898
899 return -1;
900}
901
902REGISTER_PERF_TEST(pmd_perf_autotest, test_pmd_perf);

Callers 1

cmd_set_rxtx_sc_parsedFunction · 0.85

Calls 2

strcmpFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected