Hi there,
I successfully compiled the example under doca_flow/flow_modify_header
and tried to run it on the host side.
I enabled hugepages and created two virtual functions as described in the documentation. The PCI virtual devices are visible on the host side and their representatives on the DPU side.
So I ran the sample and got the following output:
❯ sudo ./doca_flow_modify_header -a 0d:00.3,dv_flow_en=2 -a 0d:00.4,dv_flow_en=2 -c 0xff -- -l 70
[15:17:52:168596][18937][DOCA][INF][flow_modify_header_main.c:70][main] Starting the sample
EAL: Detected CPU lcores: 64
EAL: Detected NUMA nodes: 2
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:0d:00.3 (socket 0)
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:0d:00.4 (socket 0)
TELEMETRY: No legacy callbacks, legacy socket not created
[15:17:53:749315][18937][DOCA][DBG][dpdk_utils.c:417][port_init] Port 0 MAC: 02 d7 16 3b 89 4d
[15:17:55:144421][18937][DOCA][DBG][dpdk_utils.c:417][port_init] Port 1 MAC: c6 28 e5 a8 23 f5
[15:17:55:145946][18937][DOCA][WRN][engine_model.c:92][adapt_queue_depth] adapting queue depth to 128.
^[[5;3~[15:17:58:611523][18937][DOCA][ERR][dpdk_pipe_common.c:2013][verify_match_with_mask] verification of match tunnel header failed rc=-22
[15:17:58:611549][18937][DOCA][ERR][dpdk_pipe_common.c:2294][dpdk_pipe_common_verify] verification of match failed rc=-22
[15:17:58:611555][18937][DOCA][ERR][engine_pipe.c:589][engine_pipe_create] failed creating pipe - verification failed rc=(-22)
[15:17:58:611560][18937][DOCA][ERR][doca_flow.c:1868][doca_flow_pipe_create] engine pipe creation failed, rc = -22
[15:17:58:611567][18937][DOCA][ERR][flow_modify_header_sample.c:485][flow_modify_header] Failed to add vxlan gpe pipe: Invalid input
[15:17:58:701378][18937][DOCA][ERR][flow_modify_header_main.c:94][main] flow_modify_header() encountered an error: Invalid input
[15:17:59:219983][18937][DOCA][DBG][dpdk_utils.c:928][dpdk_fini] DPDK fini is done
[15:17:59:220009][18937][DOCA][INF][flow_modify_header_main.c:110][main] Sample finished with errors
I’ve tried other samples, for example doca_flow_vxlan_encap
and at least got no error.
What am I missing?
I’d appreciate any help.
/Max