net/nfp: avoid access to sysfs resource0 file
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 26 Jun 2018 13:29:21 +0000 (14:29 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit342a7bdd6e413cbb360289811601c516ec8b56a0
tree485ffa83d89f1015d25300005e601417bf2e96cf
parent4c27985f05e6351c407c27fdfdf78b4070d9b485
net/nfp: avoid access to sysfs resource0 file

NFP CPP interface dinamically configures NFP CPP BARs for accessing
any NFP chip component from user space. This requires to map PCI BAR
regions specifically. However, this does not require to do such map
over the usual map done by VFIO or UIO drivers with the device PCI
BARs.

This patch avoids this remapping and therefore also avoids to access
the device sysfs resource0 file for doing that remapping.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c