Rework of DPDK PCI device uio driver binding process 80/780/6
authorDamjan Marion <damarion@cisco.com>
Wed, 13 Apr 2016 16:03:20 +0000 (18:03 +0200)
committerGerrit Code Review <gerrit@fd.io>
Thu, 14 Apr 2016 23:29:13 +0000 (23:29 +0000)
commita42cd34f106869d5afc26f5b5db7e0cb2f73ae97
tree0c2b31263d7d77a57db3b56dc0736a1d8ef96e07
parent550b5f62528c435e4b9d41729f1d92e8ed9e161a
Rework of DPDK PCI device uio driver binding process

This is complete rework of DPDK PCI initialization. It drops
previous scheme where lspci/route/awk/sed are used and instead
sysfs is solely used for discovering Ethernet PCI devices. Criteria
for blacklisting device is changed from exsiting routing table entry
to simple interface state obtained by SIOCGIFFLAGS ioctl().
It checks for IFF_UP flag, so as long as interface is declared
up and even when carrier is down interface will be blacklisted.

Change-Id: I59961ddcf1c19c728934e7fe746f343983741bf1
Signed-off-by: Damjan Marion <damarion@cisco.com>
vlib/Makefile.am
vlib/vlib/pci/pci.h [new file with mode: 0644]
vlib/vlib/pci/pci_config.h [new file with mode: 0644]
vlib/vlib/unix/pci.c
vlib/vlib/unix/pci.h
vlib/vlib/unix/unix.h
vlib/vlib/unix/util.c [new file with mode: 0644]
vnet/vnet/devices/dpdk/init.c