| 881 | } |
| 882 | |
| 883 | int |
| 884 | test_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 | |
| 902 | REGISTER_PERF_TEST(pmd_perf_autotest, test_pmd_perf); |
no test coverage detected