[dpdk-dev] [PATCH v3 09/11] eal/pci: allow to override sysfs

2016-05-19 Thread Jan Viktorin
I forgot to fix those: 12826: ERROR: code indent should use tabs where possible #175: FILE: lib/librte_eal/linuxapp/eal/eal_pci.c:69: +^I "%s/" PCI_PRI_FMT "/driver/unbind", pci_get_sysfs_path(),$ WARNING: line over 80 characters #193: FILE:

[dpdk-dev] [PATCH v3 09/11] eal/pci: allow to override sysfs

2016-05-17 Thread Jan Viktorin
The SYSFS_PCI_DEVICES is a constant that makes the PCI testing difficult as it points to an absolute path. We remove using this constant and introducing a function pci_get_sysfs_path that gives the same value. However, the user can pass a SYSFS_PCI_DEVICES env variable to override the path. It is