12-03-2024 09:24 AM
Hi,
I am working with USRP X440 and I am trying to enable DPDK. I have some problems with the installation process.
I have done the command:
sudo apt install dpdk dpdk-dev
I am installing dpdk 23.11 and use Mellanox ConnectX5, do I still need to ran
CONFIG_RTE_BUILD_SHARED_LIB=y
CONFIG_RTE_LIBRTE_MLX5_PMD=y
If I have to, where can I configure this?
Also, to perform NIC configuration, where can I find the UHD configuration file? Why I do not find it in /etc/uhd/uhd.conf
.
I ran a GNU Radio program with arguments use_dpdk=1, but get this error:
Is it because the NIC configuration or other settings?
Thank you very much.
05-08-2025 02:05 PM
Hello,
I have the same question. Were you able to find a solution? Thank you.
05-11-2025 10:19 PM
Hi
What distribution are you using?
What is the content of your uhd.conf file?
05-12-2025 12:34 PM
Hello,
Thank you for your response.
I am not sure what do you mean by distribution but I use DPDK_23.11, UHD_4.8.0.0 and X310.
I set the uhd.config based on: https://kb.ettus.com/Getting_Started_with_DPDK_and_UHD
[use_dpdk=1]
dpdk_mtu=9000
dpdk_driver=/usr/lib/x86_64-linux-gnu/dpdk/pmds-20.0/
dpdk_corelist=2,3
dpdk_num_mbufs=4096
dpdk_num_desc=4096
dpdk_mbuf_cache_size=315
[dpdk_mac=98:b7:85:1e:b8:4e]
dpdk_lcore=3
dpdk_ipv4=192.168.30.2
(I am not sure how many cores should I define. I did one lcore for one port. Does the numbers for corelist matter?)
I have successfully binded my NIC (Intel X550) port to vfio-pci, and I have set hugepages. I also enabled dpdk while running cmake. Still, uhd_find_device or any other code (e.g. benchmark_rate) do not find the device. It works perfectly with a kernel-based Ethernet port with IP 192.168.30.2.
05-12-2025 09:10 PM
Hi !
By "distribution" I meant a Linux distribution. Ubuntu, Fedora, etc.
But I now understand the problem.
The path of dpdk_driver in uhd.conf is incorrect.
The correct path is probably the following:
dpdk_driver=/usr/lib/x86_64-linux-gnu/dpdk/pmds-23.11/
Specify an existing path for this dpdk_driver.
In my environment, pmds-22.0 is installed. I confirmed it as follows:
$ ls -al /usr/lib/x86_64-linux-gnu/dpdk/
total 160
drwxr-xr-x 3 root root 4096 May 9 20:05 .
drwxr-xr-x 110 root root 135168 May 12 18:20 ..
drwxr-xr-x 2 root root 20480 May 9 20:05 pmds-22.0
Next, specify the number of Ethernet ports to be used + 1 in dpdk_corelist.
The first core is used by the DPDK system itself. The subsequent core numbers are used by the Ethernet ports.
So your specification is correct.
The DPDK system uses core2, and dpdk_mac=98:b7:85:1e:b8:4e uses core3.
Thank you.
05-13-2025 05:45 PM
Thank you.
That was really helpful.
I modified the uhd.config file; however, I still have the same problem. I use Ubuntu 24.04.
05-13-2025 06:20 PM
Hi
Please paste your console output error message.
05-14-2025 03:58 PM - edited 05-14-2025 04:25 PM
Thank you.
As an additional info, I must say,
uhd_config_info | grep ENABLE_DPDK
does not return anything.
05-14-2025 06:31 PM
Hi
First of all, You should found a USRP X310.
You can read the document as follows.
https://kb.ettus.com/Troubleshooting_X300/X310_Device_Discovery_Issues