Doca examples

Hi all,
I’m new to DOCA SDK. I’m trying to run the example applications but I’m getting the following error, can anyone help?

./doca_url_filter -a 0000:03:00.0,class=regex -a auxiliary:mlx5_core.sf.4,sft_en=1 -a auxiliary:mlx5_core.sf.5,sft_en=1 -c3 –– -p

./doca_url_filter: error while loading shared libraries: cannot open shared object file: No such file or directory

1 Like

Ok I solved the shared library problem by doing this:
export LD_LIBRARY_PATH=/opt/mellanox/dpdk/lib/aarch64-linux-gnu/

But now I’m getting the following error:
/opt/mellanox/doca/examples/url_filter/bin# ./doca_url_filter -a 0000:03:00.0,class=regex -a auxiliary:mlx5_core.sf.4,sft_en=1 -a auxiliary:mlx5_core.sf.5,sft_en=1 -c3 – -p

EAL: Detected 8 lcore(s)

EAL: Detected 1 NUMA nodes

EAL: failed to parse device “auxiliary:mlx5_core.sf.4”

EAL: Unable to parse device ‘auxiliary:mlx5_core.sf.4,sft_en=1’

EAL: Error - exiting with code: 1

Cause: EAL initialization failed

Can you try this set of arguments?

/opt/mellanox/doca/examples/url_filter/bin/doca_url_filter -a 0000:03:00.0,class=regex:eth,representor=[65535],sft_en=0 –p

I checked the docs today and it’s been updated to the string you are trying there. That might be a change to support updates/changes for DOCA 1.1 that just released.

1 Like

The missing LD_LIBRARY_PATH was fixed in the DOCA 1.1 BFB image, so I’m assuming your setup is installed on the previous release (DOCA 1.0).

Anyway, the updated command line you’ve used applies to running the URL-Filter with SFs. I recommend going over the SF guide so to properly configure them on the DPU, as shown in the example figure in the application’s page.

Thanks a lot for your response, Yes I had installed the previous version DOCA 1.0. Should I un-install and install the new version to get the newly released sdk 1.1?

Can you try this and report back?

/opt/mellanox/doca/examples/url_filter/bin/doca_url_filter -a 0000:03:00.0,class=regex:eth,representor=[65535],sft_en=0 –p

1 Like

should I upgrade to version 1.1? I’m still using version 1.0

after repeating the steps in the example, looks like it is working now! Thanks a lot.

/opt/mellanox/doca/examples/url_filter/bin/doca_url_filter -a 0000:03:00.0,class=regex:eth,representor=[65535],sft_en=0 –p

EAL: Detected 8 lcore(s)

EAL: Detected 1 NUMA nodes

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode ‘VA’

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: Invalid NUMA socket, default to 0

EAL: Probe PCI driver: mlx5_pci (15b3:a2d6) device: 0000:03:00.0 (socket 0)

mlx5_pci: CT ASO is supported.

mlx5_pci: CT ASO is supported.

EAL: No legacy callbacks, legacy socket not created

common_mlx5: representor 2047 cannot set VF MAC address 1A:AF:E1:36:BF:10 : Invalid argument

INFO: 7 cores are used as DPI workers


Happy to see that it works.

On the BlueField OS image from March (DOCA 1.0) once LD_LIBRARY_PATH is configured to include “/opt/mellanox/dpdk/lib/aarch64-linux-gnu”, you will be able to run the applications using the 1.0 version of the command line (the “-a 0000:03:00.0,class=regex:eth,representor=[65535],sft_en=0” flags).

Now that DOCA 1.1 was released, we recommend upgrading to it and to the latest BlueField OS version (3.7), as described in the updated installation guide. Once the new version is installed, the new command line (the “-a auxiliary:mlx5_core.sf.4,sft_en=1 -a auxiliary:mlx5_core.sf.5,sft_en=1”) should work as well.

You can read more about the updated execution mode of the applications in the updated documentation here.