ibmvnic: Track state of adapter napis
authorJohn Allen <jallen@linux.vnet.ibm.com>
Fri, 26 May 2017 14:30:13 +0000 (10:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:32:44 +0000 (15:32 -0400)
commitd944c3d60ac9ec6968d97ac5704155d0afac5216
tree0d69d8b1a667e983d1a0bcb43cfeef0cf3ae6599
parent0ca3737526576d41e6a9e599428c7d44896f1c95
ibmvnic: Track state of adapter napis

Track the state of ibmvnic napis. The driver can get into states where it
can be reset when napis are already disabled and attempting to disable them
again will cause the driver to hang.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h