Hi, I am new to both bluefield platform and DOCA development. When I try to run the doca flow sample code with the following command:
./build/doca_flow_switch_direction_info -- -p 03:00.0 -r sf[2,3] -l 60
I got the error as follows:
root@localhost:/opt/mellanox/doca/samples/doca_flow/flow_switch_direction_info# ./build/doca_flow_switch_direction_info -- -p 03:00.0 -r sf[2,3] -l 60
[08:49:35:000899][110232][DOCA][INF][flow_switch_direction_info_main.c:74][main] Starting the sample
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'
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Probe PCI driver: mlx5_pci (15b3:a2dc) device: 0000:03:00.0 (socket -1)
[08:49:35:049054][110232][DOCA][ERR][dpdk_utils.c:522][dpdk_queues_and_ports_init] Application will only function with 3 ports, num_of_ports=1
[08:49:35:049094][110232][DOCA][ERR][flow_switch_direction_info_main.c:102][main] Failed to update ports and queues
[08:49:35:053180][110232][DOCA][DBG][dpdk_utils.c:928][dpdk_fini] DPDK fini is done
[08:49:35:053224][110232][DOCA][WRN][doca_dpdk.cpp:299][detach_port] DPDK dev already detached: 0
[08:49:35:054197][110232][DOCA][INF][flow_switch_direction_info_main.c:126][main] Sample finished with errors
From the above error message, the main problem is that in the DPDK init process, the function call rte_eth_dev_count_avail
returns 1, which is expected as 3. Can anyone help me figure out why this problems exist? I have no idea.
I am using DOCA version 2.9.1
and reading the documentation of DOCA 2.9.1.