Issue with doca-flow sample on connectx-8

Hi,
I’m encountering an issue when attempting to run doca_flow_ct_udp sample. I have tried to use different port but got same results. The followings are the logs and all configures. What am I missing?

I’d appreciate any help.

logs:

root@node3:/tmp/flow_ct_udp# /tmp/flow_ct_udp/doca_flow_ct_udp -- -l 70 -a pci/98:00.0
[2025-12-18 07:42:56:842035][3307092224][DOCA][INF][doca_log.cpp:633] DOCA version 3.2.0118
[2025-12-18 07:42:56:842058][3307092224][DOCA][INF][flow_ct_udp_main.c:76][main] Starting the sample
EAL: Detected CPU lcores: 48
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 'PA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Probe PCI driver: mlx5_pci (15b3:1023) device: 0000:98:00.0 (socket 1)
mlx5_net: Metadata mode 4 is not supported (no E-Switch).
[2025-12-18 07:42:57:207547][3307092224][DOCA][DBG][dpdk_utils.c:181][port_init] Port 0 MAC: 38 25 f3 54 2b 16
[2025-12-18 07:42:57:207557][3307092224][DOCA][WRN][dpdk_utils.c:195][port_init] Port 0 is on remote NUMA node to polling thread
[2025-12-18 07:42:57:207560][3307092224][DOCA][WRN][dpdk_utils.c:196][port_init]        Performance will not be optimal
[2025-12-18 07:42:57:207574][3307092224][DOCA][WRN][engine_model.c:90] adapting queue depth to 128.
Segmentation fault (core dumped)

configures:

# system config
echo '2048' | sudo tee -a /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
sudo mkdir /mnt/huge
sudo mount -t hugetlbfs -o pagesize=2M nodev /mnt/huge

# nic config
sudo mlxconfig -y -d /dev/mst/mt4131_pciconf0 s SRIOV_EN=1  
sudo mlxconfig -y -d /dev/mst/mt4131_pciconf0 s NUM_OF_VFS=16
echo 2 > /sys/class/net/ens21f0np0/device/sriov_numvfs
root@node3:/tmp/flow_ct_udp# lspci | grep Virtual
98:00.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen Virtual Function
98:00.3 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen Virtual Function

echo ON | tee /sys/class/net/ens21f0np0/device/sriov/0/trust
echo ON | tee /sys/class/net/ens21f0np0/device/sriov/1/trust

echo 0000:98:00.2 > /sys/bus/pci/drivers/mlx5_core/unbind
echo 0000:98:00.2 > /sys/bus/pci/drivers/mlx5_core/bind

After I switch nic to eswitch mode using sudo devlink dev eswitch set pci/0000:98:00.0 mode switchdev, the error changed.

root@node3:/tmp/flow_ct_udp# /tmp/flow_ct_udp/doca_flow_ct_udp -- -l 70 -a pci/98:00.0
[2025-12-18 08:10:32:362321][727771392][DOCA][INF][doca_log.cpp:633] DOCA version 3.2.0118
[2025-12-18 08:10:32:362345][727771392][DOCA][INF][flow_ct_udp_main.c:76][main] Starting the sample
EAL: Detected CPU lcores: 48
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 'PA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Probe PCI driver: mlx5_pci (15b3:1023) device: 0000:98:00.0 (socket 1)
mlx5_net: port 0 cannot enable promiscuous mode in flow isolation mode
[2025-12-18 08:10:32:750019][727771392][DOCA][DBG][dpdk_utils.c:181][port_init] Port 0 MAC: 38 25 f3 54 2b 16
[2025-12-18 08:10:32:750029][727771392][DOCA][WRN][dpdk_utils.c:195][port_init] Port 0 is on remote NUMA node to polling thread
[2025-12-18 08:10:32:750031][727771392][DOCA][WRN][dpdk_utils.c:196][port_init]         Performance will not be optimal
[2025-12-18 08:10:32:750046][727771392][DOCA][WRN][engine_model.c:90] adapting queue depth to 128.
[2025-12-18 08:10:33:186883][727771392][DOCA][INF][flow_ct_udp_sample.c:598][flow_ct_udp] Wait a few seconds for packets to arrive
[2025-12-18 08:10:38:005797][727771392][DOCA][ERR][flow_ct_udp_sample.c:486][process_packets] Sample didn't receive packets within 5 seconds timeout
[2025-12-18 08:10:38:248339][727771392][DOCA][WRN][hws_group_pool.c:85] group_pool has 1 used groups
[2025-12-18 08:10:39:013193][727771392][DOCA][ERR][flow_ct_udp_main.c:115][main] flow_ct_udp() encountered an error: Bad State
[2025-12-18 08:10:39:350339][727771392][DOCA][DBG][dpdk_utils.c:697][dpdk_fini] DPDK fini is done
[2025-12-18 08:10:39:350371][727771392][DOCA][WRN][doca_dpdk.cpp:493] DPDK dev already detached: 0
[2025-12-18 08:10:39:350794][727771392][DOCA][INF][flow_ct_udp_main.c:131][main] Sample finished with errors

debug.log (1.3 MB)

detail log with --sdk-log-level 70