[USRP-users] Getting DPDK to work

Carmichael, Ryan Ryan.Carmichael at dynetics.com
Fri Jul 24 09:44:01 EDT 2020


I've got an X310, UHD 3.15.LTS (compiled with DPDK support), DPDK 17.11 on Red Hat. I feel like things are 95% of the way there, but I can't get UHD to work with DPDK.

Long story short, I'm getting the error "EAL: Please set IPv4 address for port 0 before opening socket". I wonder if it's not reading my uhd conf file.

Before dpdk-devbind, the X310 has two IP addresses that are pingable (192.168.30.2 and 40.2) from my NICs:

enp13s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
        inet 192.168.30.99  netmask 255.255.255.0  broadcast 192.168.30.255
        ether aa:bb:cc:dd:ee:01  txqueuelen 1000  (Ethernet)

enp13s0f1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 9001
        inet 192.168.40.99  netmask 255.255.255.0  broadcast 192.168.40.255
        ether aa:bb:cc:dd:ee:02  txqueuelen 1000  (Ethernet)

After running dpdk-devbind:

Network devices using DPDK-compatible driver
============================================
0000:0d:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' drv=igb_uio unused=vfio-pci,uio_pci_generic
0000:0d:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' drv=igb_uio unused=vfio-pci,uio_pci_generic

I have a configuration file:

[use-dpdk=1]
dpdk-mtu=9000
dpdk-corelist=0,1
dpdk-num-mbufs=4096
dpdk-mbuf-cache-size=64

[dpdk-mac=aa:bb:cc:dd:ee:01]
dpdk-lcore = 1
dpdk-ipv4 = 192.168.30.1/24
dpdk-num-desc=4096

[dpdk-mac=aa:bb:cd:dd:ee:02]
dpdk-lcore = 0
dpdk-ipv4 = 192.168.40.1/24

If I try to run rx_samples_to_file:

[ryan at localhost examples]$ sudo ./rx_samples_to_file --args="use_dpdk=1"

Creating the usrp device with: use_dpdk=1...
[INFO] [UHD] linux; GNU C++ version 7.3.1 20180303 (Red Hat 7.3.1-5); Boost_106700; UHD_3.15.0.0-54-gbc585b43
EAL: Detected 28 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:0b:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:0b:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:0d:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:0d:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:81:00.0 on NUMA socket 1
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:81:00.1 on NUMA socket 1
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: Waiting for links to come up...
EAL: Init DONE!
EAL: Starting I/O threads!
EAL: Please set IPv4 address for port 0 before opening socket
[ERROR] [X300] X300 Network discovery error AssertionError: _rx_sock != nullptr
  in uhd::transport::dpdk_simple_impl::dpdk_simple_impl(uhd::transport::uhd_dpdk_ctx&, const string&, const string&, bool)
  at /home/ryan/gitlab/uhd/host/lib/transport/dpdk_simple.cpp:45

Any ideas?


-          Ryan

________________________________

The information contained in this message, and any attachments, may contain privileged and/or proprietary information that is intended solely for the person or entity to which it is addressed. Moreover, it may contain export restricted technical data controlled by Export Administration Regulations (EAR) or the International Traffic in Arms Regulations (ITAR). Any review, retransmission, dissemination, or re-export to foreign or domestic entities by anyone other than the intended recipient in accordance with EAR and/or ITAR regulations is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20200724/07d5e2fb/attachment.html>


More information about the USRP-users mailing list