Re: [PATCH v5 19/19] test: add unit tests for TAP PMD

David Marchand
2026-03-16T08:03:33Z

Hello Stephen,

On Sun, 22 Feb 2026 at 18:34, Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> Add a standalone test suite for the TAP PMD, modeled on the existing
> test_pmd_ring tests. Exercises device configuration, link status,
> stats, MTU, MAC address, promiscuous/allmulticast modes, queue
> start/stop, link up/down, device stop/start, and multi-queue setup.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

This new test triggers failures in OBS:

[ 373s] 74/107 DPDK:fast-tests / tap_pmd_autotest
RUNNING
[ 373s] >>> LD_LIBRARY_PATH=/usr/src/packages/BUILD/obj-x86_64-linux-gnu/lib:/usr/src/packages/BUILD/obj-x86_64-linux-gnu/drivers
MALLOC_PERTURB_=52 DPDK_TEST=tap_pmd_autotest
/usr/src/packages/BUILD/obj-x86_64-linux-gnu/app/dpdk-test --no-huge
-m 2048 -d /usr/src/packages/BUILD/obj-x86_64-linux-gnu/drivers
[ 373s] ―――――――――――――――――――――――――――――――――――――
âœ€ ―――――――――――――――――――――――――――――――――――――
[ 373s] EAL: Detected CPU lcores: 12
[ 373s] EAL: Detected NUMA nodes: 1
[ 373s] EAL: Detected shared linkage of DPDK
[ 373s] EAL: Multi-process socket /tmp/dpdk/rte/mp_socket
[ 373s] EAL: Selected IOVA mode 'VA'
[ 373s] APP: HPET is not enabled, using TSC as default timer
[ 373s] RTE>>tap_pmd_autotest
[ 373s] TAP: tun_alloc(): Unable to open /dev/net/tun interface
[ 373s] TAP: eth_dev_tap_create(): Unable to create TAP interface
[ 373s] TAP: eth_dev_tap_create(): TAP Unable to initialize net_tap0
[ 373s] + ------------------------------------------------------- +
[ 373s] + Test Suite : TAP PMD Unit Test Suite
[ 373s] Setting up TAP PMD test
[ 373s] Error: failed to create TAP device net_tap0: Invalid argument
[ 373s] + ------------------------------------------------------- +
[ 373s] + Test Suite Summary : TAP PMD Unit Test Suite
[ 373s] + ------------------------------------------------------- +
[ 373s] + Tests Total : 17
[ 373s] + Tests Skipped : 0
[ 373s] + Tests Executed : 0
[ 373s] + Tests Unsupported: 0
[ 373s] + Tests Passed : 0
[ 373s] + Tests Failed : 17
[ 373s] + ------------------------------------------------------- +
[ 373s] Test Failed
[ 373s] RTE>>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[ 373s] 74/107 DPDK:fast-tests / tap_pmd_autotest
FAIL 0.23s (exit status 255 or signal 127
SIGinvalid)

--
David Marchand