Hello
I want to use DPDK on the SFP+ ports of the LX2160 board.
I am trying to bind the 10Gbps SFP+ ports to a VFIO kernel driver (cf. DPDK doc).
Here are the steps I use.
- I add dpmac.7 to dprc.1 using this command:
ls-addni dpmac.7
.
ip a
now shows eth1 and the output ofls-listni
containsdprc.1/dpni.1 (interface: eth1, end point: dpmac.7)
- I load the vfio-pci driver:
modprobe vfio-pci
. - I however have some problems with the next steps that uses dpdk-devbind.py.
dpdk-devbind.py -h
says that possible syntax is:
dpdk-devbind.py --bind=vfio-pci eth1
dpdk-devbind.py -b ixgbe 02:00.0 02:00.1
dpdk-devbind.py --bind=vfio-pci eth1
however yields:
ValueError: Unknown device: eth1. Please specify device in "bus:slot.func" format
The output of lspci is:
0000:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 8d80 (rev 20)
0001:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 8d80 (rev 20)
I thus cannot find any interface identifier in the “bus:slot.func” format for the SFP+ ports.
Am I supposed to use Linux kernel interface names (e.g. ethX)? Or provide something in the “bus:slot.func” format?
In the second case, how can I obtain an interface identifier in the “bus:slot.func” format?
Thank you for your time.