I wanna run
/home/notroot/regex# /opt/mellanox/dpdk/bin/dpdk-test-regex -c 1 -a 01:00.0,class=regex --file-prefix=rxpbench -- --rules ./rof/helloworld.rof2.binary --data helloworld.txt --nb_job 1
on host to test the RXP, but it failed and the log shows below.
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rxpbench/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Device is not NUMA-aware, defaulting socket to 0
EAL: Probe PCI driver: mlx5_pci (15b3:a2d6) device: 0000:01:00.0 (socket 0)
mlx5_regex: Not enough capabilities to support RegEx, maybe old FW/OFED version?
mlx5_common: Failed to load driver regex_mlx5
EAL: Requested device 0000:01:00.0 cannot be used
EAL: Bus (pci) probe failed.
0 regex devices detected - should be 1
EAL: Error - exiting with code: 1
Cause: Failed initialising regex device
My env is
- BlueField-2
- HostOs: 5.4.0-107-generic 20.04.4 LTS (Focal Fossa)
- BF Os: Linux BF2-Nvidia 5.4.0-1023-bluefield
- DOCA: 1.2.1
But when I run the same test-regex on BF, it works:
root@BF2-Nvidia:/home/ubuntu/regex# /opt/mellanox/dpdk/bin/dpdk-test-regex -c 1 -a 03:00.0,class=regex --file-prefix=rxpbench -- --rules ./rof/helloworld.rof2.binary --data helloworld.txt --nb_job 1
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rxpbench/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: Device is not NUMA-aware, defaulting socket to 0
EAL: Probe PCI driver: mlx5_pci (15b3:a2d6) device: 0000:03:00.0 (socket 0)
EAL: No legacy callbacks, legacy socket not created
:: initializing dev: 0
:: initializing device: 0 done
Job len = 39 Bytes
Time = 0.000676 sec
Perf = 0.000462 Gbps
Job id 0 number of matches = 2
match 0, rule = 1, start = 11,len = 11
match 1, rule = 1, start = 23,len = 15
Total matches = 2
All Matches:
start = 11, len = 11, rule = 1
start = 23, len = 15, rule = 1
I wanna know why I cannot run the test on the host?