Skip to content

DPDK unit test TestDpdkMultiThread fails on openMultiQueues assertion #2010

@gyl30

Description

@gyl30

When running the PcapPlusPlus unit test suite, the TestDpdkMultiThread test case fails. The failure is due to an Assert FALSE failure on dev->openMultiQueues(numOfRxQueuesToOpen + 1, 1). This indicates that the function unexpectedly returned true when attempting to open more queues than the device supports, whereas it is expected to return false.

The operating system used is Ubuntu 22.04, and the DPDK version is 21.11.9.

root@seclead:/opt/PcapPlusPlus/Tests/Pcap++Test# git log -1
commit 63874993485f767249ccb65f4d8271fe41d1576f (HEAD -> master, origin/master, origin/HEAD)
Author: gyl <[email protected]>
Date:   Tue Oct 21 07:18:11 2025 +0000

    Fix(build): Add out-of-class definitions for static members to fix debug build (#1998)
root@seclead:/opt/PcapPlusPlus/Tests/Pcap++Test# 

root@seclead:/opt/PcapPlusPlus/Tests/Pcap++Test# ./Bin/Pcap++Test -i 127.0.0.1 -t dpdk -d 0                                                                                                        
[ERROR: testFileName: testFuncName:0                 ] Test message to init m_LogError
PcapPlusPlus version: v25.05+ (non-official release)
Built: Oct 27 2025 09:13:33
Git info: Git branch 'master', commit '63874993'
Using ip: 127.0.0.1
Debug mode: off
Using DPDK port: 0
DPDK KNI tests: skipped
Start running tests...

EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: No available 1048576 kB hugepages reported
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
EAL: Ignore mapping IO port bar(2)
EAL: Probe PCI driver: net_ixgbe (8086:10fb) device: 0000:65:00.0 (socket 0)
TELEMETRY: No legacy callbacks, legacy socket not created
TestDpdkInitDevice                 : PASSED
TestDpdkDevice                     : FAILED (/opt/PcapPlusPlus/Tests/Pcap++Test/Tests/DpdkTests.cpp:333). Assert TRUE failed:
   [linkStatus.linkUp]
TestDpdkMultiThread                : FAILED (/opt/PcapPlusPlus/Tests/Pcap++Test/Tests/DpdkTests.cpp:405). Assert FALSE failed:
   [dev->openMultiQueues(numOfRxQueuesToOpen + 1, 1)]
TestDpdkDeviceSendPackets          : PASSED
TestDpdkDeviceWorkerThreads        : FAILED (/opt/PcapPlusPlus/Tests/Pcap++Test/Tests/DpdkTests.cpp:680). Assert LOWER THAN failed:
   Actual:   20
   Expected: 20
TestDpdkMbufRawPacket              : FAILED (/opt/PcapPlusPlus/Tests/Pcap++Test/Tests/DpdkTests.cpp:921). Assert LOWER THAN failed:
   Actual:   30
   Expected: 30

NOT ALL TESTS PASSED!!
Test cases: 97, Passed: 2, Failed: 4, Skipped: 91
root@seclead:/opt/PcapPlusPlus/Tests/Pcap++Test# 


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions