[PATCH v2 0/9] pcap: cleanup pcap PMD and add test

Stephen Hemminger
2026-01-09T01:18:03Z

This is a set of enhancements and tests to the PCAP PMD.
It started out when looking at the handling of timestamps
then realized lots of other cleanups were needed here.

v2 - review feedback
- consolidate patches

Stephen Hemminger (9):
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
net/pcap: support MAC address set
test: add test for pcap PMD

app/test/meson.build | 2 +
app/test/test_pmd_pcap.c | 1846 +++++++++++++++++++++++++
drivers/net/pcap/pcap_ethdev.c | 353 +++--
drivers/net/pcap/pcap_osdep.h | 2 +
drivers/net/pcap/pcap_osdep_freebsd.c | 60 +-
drivers/net/pcap/pcap_osdep_linux.c | 51 +-
drivers/net/pcap/pcap_osdep_windows.c | 5 +
7 files changed, 2184 insertions(+), 135 deletions(-)
create mode 100644 app/test/test_pmd_pcap.c

--
2.51.0