net/nfp: fix lock file usage
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Wed, 23 May 2018 12:28:56 +0000 (13:28 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 May 2018 15:07:40 +0000 (17:07 +0200)
commit5f6ed2f4e0cb79580c0bedba2bd764a39923d7ec
tree4c9bbe0509d2d424c60cd4742ed658624086f73c
parentcde83b8bd726d3132404852ba4f6351f56fb9c76
net/nfp: fix lock file usage

DPDK apps can be executed as non-root users but current NFP lock
file for avoiding concurrent accesses to CPP interface is precluding
this option or requires to modify system file permissions.

When the NFP device is bound to VFIO, this driver does not allow this
concurrent access, so the lock file is not required at all.

OVS-DPDK as executed in RedHat distributions is the main NFP user
needing this fix.

Fixes: c7e9729da6b5 ("net/nfp: support CPP")

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