如何将 NIC 绑定到 DPDK?我正在从事 Moongen 项目。我不确定我是否做对了。
sara@shayana:~/dpdk$ ./tools/dpdk_nic_bind.py --status
Network devices using DPDK-compatible driver
============================================
<none>
Network devices using kernel driver
===================================
0000:02:00.0 'NetXtreme II BCM5716 Gigabit Ethernet' if=eth0 drv=bnx2 unused=vfio-pci,uio_pci_generic *Active*
0000:02:00.1 'NetXtreme II BCM5716 Gigabit Ethernet' if=eth1 drv=bnx2 unused=vfio-pci,uio_pci_generic
Other network devices
=====================
0000:01:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' unused=vfio-pci,uio_pci_generic
0000:01:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' unused=vfio-pci,uio_pci_generic
sara@shayana:~/dpdk$ .
答案1
Ubuntu 可以帮助您以持久的方式做到这一点/etc/dpdk/interfaces
我不确定你的卡是否受支持,但对你来说它可能看起来像:
pci 0000:01:00.0 uio_pci_generic pci 0000:01:00.1 uio_pci_generic
更多详情请访问https://help.ubuntu.com/16.04/serverguide/DPDK.html#dpdk-config-dev