net/nfp: avoid sysfs resource file access
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 26 Jun 2018 13:25:40 +0000 (14:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit4c27985f05e6351c407c27fdfdf78b4070d9b485
treee90ae88cb776128aa4411d10d5d1008478eed549
parent28f40fd91e7ea5a24715eef6ff470f8586feedfc
net/nfp: avoid sysfs resource file access

Getting the bar size is required for NFP CPP interface configuration.
However, this information can be obtained from the VFIO or UIO driver
instead of accessing the sysfs resource file.

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