OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

5.2. DPDK Device configuration


The package dpdk provides init scripts that ease configuration of device assignment and huge pages. It also makes them persistent accross reboots.


The following is an example of the file /etc/dpdk/interfaces configuring two ports of a network card. One with uio_pci_generic and the other one with vfio-pci


# <bus> Currently only "pci" is supported

# <id> Device ID on the specified bus

# <driver> Driver to bind against (vfio-pci or uio_pci_generic)

#

# Be aware that the two DPDK compatible drivers uio_pci_generic and vfio-pci are

# part of linux-image-extra-<VERSION> package.

# This package is not always installed by default - for example in cloud-images.

# So please install it in case you run into missing module issues.

#

# <bus> <id> <driver>

pci 0000:04:00.0 uio_pci_generic

pci 0000:04:00.1 vfio-pci


Cards are identified by their PCI-ID. If you are unsure you might use the tool dpdk_nic_bind to show the current available devices and the drivers they are assigned to.


dpdk_nic_bind --status


Network devices using DPDK-compatible driver

============================================

0000:04:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=uio_pci_generic unused=ixgbe


Network devices using kernel driver

===================================

0000:02:00.0 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eth0 drv=tg3 unused=uio_pci_generic *Active*

0000:02:00.1 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eth1 drv=tg3 unused=uio_pci_generic

0000:02:00.2 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eth2 drv=tg3 unused=uio_pci_generic

0000:02:00.3 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eth3 drv=tg3 unused=uio_pci_generic

0000:04:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=eth5 drv=ixgbe unused=uio_pci_generic


Other network devices

=====================

<none>


Top OS Cloud Computing at OnWorks: