[PATCH v3 0/9] net/pcap: improvements and test coverage

Stephen Hemminger
2026-01-13T19:25:39Z

This series brings several improvements to the PCAP PMD:

- Update documentation to reflect actually supported features
- Code cleanups: remove unnecessary rte_malloc/rte_memcpy usage,
convert flags to bool, remove global variables, avoid volatile
- Add MTU set support for single interface mode
- Add Tx offload support
- Support nanosecond timestamp precision
- Add comprehensive test suite

This was done via mix of new code and AI feedback.

Stephen Hemminger (9):
doc: update features for PCAP PMD
net/pcap: avoid using rte_malloc and rte_memcpy
net/pcap: support MTU set
net/pcap: use bool for flags
net/pcap: support Tx offloads
net/pcap: support nanosecond timestamp precision
net/pcap: remove global variables
net/pcap: avoid use of volatile
test: add test for pcap PMD

app/test/meson.build | 2 +
app/test/test_pmd_pcap.c | 1801 +++++++++++++++++++++++++
doc/guides/nics/features/pcap.ini | 10 +
drivers/net/pcap/pcap_ethdev.c | 336 +++--
drivers/net/pcap/pcap_osdep.h | 1 +
drivers/net/pcap/pcap_osdep_freebsd.c | 37 +-
drivers/net/pcap/pcap_osdep_linux.c | 21 +
drivers/net/pcap/pcap_osdep_windows.c | 6 +
8 files changed, 2083 insertions(+), 131 deletions(-)
create mode 100644 app/test/test_pmd_pcap.c

--
2.51.0