[PATCH v5 0/3] test: add null PMD test suite
Stephen Hemminger
stephen at networkplumber.org
Wed Jan 14 19:30:43 CET 2026
This series adds a comprehensive test suite for the null PMD driver.
The first patch does a minor cleanup of the null PMD info_get callback,
removing unnecessary argument validation that is already performed by
the ethdev layer.
The second patch extends the packet burst generator to support larger
packet sizes by changing the pkt_len parameter from uint8_t to uint16_t.
This also fixes an incorrect comment about the maximum number of
segments per packet.
The third patch adds a new test suite for the null PMD covering:
- Basic RX/TX operations
- Statistics tracking and reset
- Custom packet sizes
- Copy mode and no-rx mode
- Link status
- Device info validation
- RSS and RETA configuration
- MAC address operations
- Promiscuous and allmulticast modes
- Multi-threaded TX (MT_LOCKFREE capability)
v5 - fix issues found from AI code review
Stephen Hemminger (3):
net/null: cleanup info_get
test: generate larger packet bursts
test: add a test for null PMD
app/test/meson.build | 1 +
app/test/packet_burst_generator.c | 34 +-
app/test/packet_burst_generator.h | 4 +-
app/test/test_pmd_null.c | 964 ++++++++++++++++++++++++++++++
drivers/net/null/rte_eth_null.c | 9 +-
5 files changed, 989 insertions(+), 23 deletions(-)
create mode 100644 app/test/test_pmd_null.c
--
2.51.0
More information about the dev
mailing list