[dpdk-dev] [PATCH v3 09/11] eal/pci: allow to override sysfs
Jan Viktorin
viktorin at rehivetech.com
Thu May 19 10:51:10 CEST 2016
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: lib/librte_eal/linuxapp/eal/eal_pci.c:471:
+snprintf(dirname, sizeof(dirname), "%s/%s", pci_get_sysfs_path(),
total: 1 errors, 1 warnings, 160 lines checked
NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
scripts/cleanfile
will do for v4.
Jan
On Tue, 17 May 2016 20:34:59 +0200
Jan Viktorin <viktorin at rehivetech.com> wrote:
> 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 now possible
> to create a fake sysfs hierarchy for testing.
>
> Signed-off-by: Jan Viktorin <viktorin at rehivetech.com>
> ---
> v3:
> * changed subject
> * test_pci_sysfs has been slightly modified to be more understandable
> * fixed whitespace in *version.map files
> ---
> app/test/test_pci.c | 28 +++++++++++++++++++++++++
> drivers/net/szedata2/rte_eth_szedata2.c | 2 +-
> drivers/net/virtio/virtio_pci.c | 2 +-
> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++++++
> lib/librte_eal/common/eal_common_pci.c | 13 ++++++++++++
> lib/librte_eal/common/include/rte_pci.h | 2 +-
> lib/librte_eal/linuxapp/eal/eal_pci.c | 6 +++---
> lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 7 ++++---
> lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 2 +-
> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++++
> 10 files changed, 66 insertions(+), 10 deletions(-)
>
[...]
More information about the dev
mailing list