This RFC adds a sample application to measure how precisely a NIC sends packets at their launch time with the send-on-timestamp offload (RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP).
It paces packets evenly or in groups of closely spaced packets, on one or several Tx queues. The receiver is either a second port of the same host, checking the hardware Rx timestamp of every packet, or another host, for example capturing with tcpdump and hardware timestamps. Sent as RFC to agree on the scope of the example, in particular the Tx-only mode for a remote receiver and the number of options. Measured on E830 100G, PF and VF, with a remote receiver: - one queue, packets 10 us apart: 99.2-99.8% within +-256 ns - one queue, packets 1 us apart: 93-94% within +-256 ns (PF) - 8 queues, bursts of 8 packets 128 ns apart: 100% within +-256 ns, about 48 ns launch jitter A Tx queue fetches a packet only when its launch time expires, so packets of one queue closer than about 0.8 us leave together, which the multiple queue option shows. Soumyadeep Hore (2): examples/txpp: add Tx packet pacing precision tester doc: add Tx packet pacing sample app guide MAINTAINERS | 5 + doc/guides/rel_notes/release_27_03.rst | 5 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/txpp.rst | 162 +++++ examples/meson.build | 1 + examples/txpp/main.c | 800 +++++++++++++++++++++++++ examples/txpp/meson.build | 16 + 7 files changed, 990 insertions(+) create mode 100644 doc/guides/sample_app_ug/txpp.rst create mode 100644 examples/txpp/main.c create mode 100644 examples/txpp/meson.build base-commit: ddb3b0c47d172d951b1b3660e8acd754a6a92eb0 -- 2.43.0

