Two testpmd options useful when benchmarking, plus the Windows shim the second one needs.
Flow control has to be off to get meaningful numbers, and run time has to be bounded to script a sweep. Both were only reachable from the interactive prompt, so neither could be driven from a batch run. For testing useful to run forwarding for a fix period of time. I used this to measure how many of the packets forwarded over a 10 second interval are captured. This also fixes a minor issue with current testpmd. The existing loop uses rte_delay_us_sleep() which retries on EINTR. This causes the interrupt to not be noticed for up to an additional second. Fix it by using standard sleep() which does not restart. On Windows adds a new shim for sleep() which could be generally useful elsewhere in the tree. Stephen Hemminger (3): eal/windows: add sleep() shim app/testpmd: add option to set flow control mode app/testpmd: add option to limit run time app/test-pmd/parameters.c | 36 ++++++++++++ app/test-pmd/testpmd.c | 79 +++++++++++++++++++------- app/test-pmd/testpmd.h | 2 + doc/guides/rel_notes/release_27_03.rst | 9 +++ doc/guides/testpmd_app_ug/run_app.rst | 11 ++++ lib/eal/windows/include/unistd.h | 22 ++++++- 6 files changed, 136 insertions(+), 23 deletions(-) -- 2.53.0

