[PATCH v2 00/11] net/tap: test, cleanups and error path fixes

Stephen Hemminger
2026-02-16T23:04:44Z

Add a unit test suite for the TAP PMD, clean up minor code issues,
and fix several resource leaks and a use-after-free on error paths.

v2
- fix typos in previous version
- preserve same fixed MAC address as original

Stephen Hemminger (11):
test: add unit tests for TAP PMD
net/tap: replace runtime speed capability with constant
net/tap: clarify TUN/TAP flag assignment
net/tap: extend fixed MAC range to 16 bits
net/tap: skip checksum on truncated L4 headers
net/tap: fix resource leaks in tap create error path
net/tap: fix resource leaks in secondary process probe
net/tap: free IPC reply buffer on queue count mismatch
net/tap: fix use-after-free on remote flow creation failure
net/tap: free remote flow when implicit rule already exists
net/tap: track device by ifindex instead of name

app/test/meson.build | 1 +
app/test/test_pmd_tap.c | 901 ++++++++++++++++++++++++++++++++++
drivers/net/tap/rte_eth_tap.c | 291 +++++------
drivers/net/tap/rte_eth_tap.h | 2 -
drivers/net/tap/tap_flow.c | 23 +-
5 files changed, 1069 insertions(+), 149 deletions(-)
create mode 100644 app/test/test_pmd_tap.c

--
2.51.0