# Problem using dpdk-devbind.py

**URL:** <https://community.solid-run.com/t/problem-using-dpdk-devbind-py/519>\
**Category:** NXP LX2160\
**Tags:** NXP-LX2160\
**Created:** [November 16, 2022, 4:25pm UTC](https://community.solid-run.com/t/problem-using-dpdk-devbind-py/519 "2022-11-16T16:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmazel](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jmazel](https://community.solid-run.com/u/jmazel)\
**Post date:** [November 16, 2022, 4:25pm UTC](https://community.solid-run.com/t/problem-using-dpdk-devbind-py/519/1 "2022-11-16T16:25:27Z")

</div>

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](https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html)).

Here are the steps I use.

1. I add dpmac.7 to dprc.1 using this command: `ls-addni dpmac.7`.  
`ip a` now shows eth1 and the output of `ls-listni` contains `dprc.1/dpni.1 (interface: eth1, end point: dpmac.7)`
2. I load the vfio-pci driver: `modprobe vfio-pci`.
3. 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.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [November 17, 2022, 3:55am UTC](https://community.solid-run.com/t/problem-using-dpdk-devbind-py/519/2 "2022-11-17T03:55:01Z")

</div>

The networking complex on the LX2160a is not PCIe but has its own bus type. I recommend downloading the DPAA2 manual from NXP’s website, but a short description can be found in the Linux kernel module documentation. [vfio/fsl-mc: VFIO support for FSL-MC devices [LWN.net]](https://lwn.net/Articles/825419/)

---

<div class="post-metadata">

**Author:** ![jmazel](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jmazel](https://community.solid-run.com/u/jmazel)\
**Post date:** [November 18, 2022, 1:35pm UTC](https://community.solid-run.com/t/problem-using-dpdk-devbind-py/519/3 "2022-11-18T13:35:42Z")

</div>

Thank you very much for this information.
