DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH v2 0/3] Test pmd enhancements for benchmarking
Date: Fri,  4 Dec 2026 11:43:56 -0800	[thread overview]
Message-ID: <20261204194956.803171-1-stephen@networkplumber.org> (raw)
In-Reply-To: <20261017194856.2950241-1-stephen@networkplumber.org>

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


  parent reply	other threads:[~2026-12-04 19:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17 19:48 [RFC 1/2] app/testpmd: add option to set flow control mode Stephen Hemminger
2026-10-17 19:48 ` [RFC 2/2] app/testpmd: add option to limit run time Stephen Hemminger
2026-12-04 19:43 ` Stephen Hemminger [this message]
2026-12-04 19:43   ` [PATCH v2 1/3] eal/windows: add sleep() shim Stephen Hemminger
2026-12-04 19:43   ` [PATCH v2 2/3] app/testpmd: add option to set flow control mode Stephen Hemminger
2026-12-04 19:43   ` [PATCH v2 3/3] app/testpmd: add option to limit run time Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204194956.803171-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox