linux-stable/drivers/net/ethernet/netronome
Jakub Kicinski f1ba63ec90 nfp: fail graciously when someone tries to grab global lock
The global device lock is acquired to search the resource table.
The lock is actually itself part of the table (entry 0).
Therefore if someone asks for resource 0 we would deadlock since
double locking is no longer allowed.

Currently the driver doesn't try to lock that resource so let's
simply make sure we fail graciously and not add special handling
of this case until really need.  Hide the relevant defines in
the source file.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-22 12:59:06 -07:00
..
nfp nfp: fail graciously when someone tries to grab global lock 2017-03-22 12:59:06 -07:00
Kconfig nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00