bus/pci: compare kernel driver instead of interrupt handler
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Thu, 25 Oct 2018 10:49:28 +0000 (11:49 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Oct 2018 00:02:32 +0000 (01:02 +0100)
commit630deed612ca382f48a3ef4b65dfc74b7cd09cf9
tree0771105fae90fa4280ae04421151ec5f23a36c04
parent49bb1f7a0ab760a0f1fb39e27c90a1cb2ad42edd
bus/pci: compare kernel driver instead of interrupt handler

Invoking the right pci read/write functions is based on interrupt
handler type. However, this is not configured for secondary processes
precluding to use those functions.

This patch fixes the issue using the driver name the device is bound
to instead.

Fixes: 632b2d1deeed ("eal: provide functions to access PCI config")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/bus/pci/linux/pci.c