]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Fix partial success login retries
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Thu, 24 May 2018 19:37:53 +0000 (14:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 20:32:48 +0000 (16:32 -0400)
commit04dc64747b3e226879cc05eb346aa40507303b7a
tree02ae95f908d6d915c7833e68229d638cf150018b
parent498ccff9805e1b512a7011c50f8cc8e0b8391138
ibmvnic: Fix partial success login retries

In its current state, the driver will handle backing device
login in a loop for a certain number of retries while the
device returns a partial success, indicating that the driver
may need to try again using a smaller number of resources.

The variable it checks to continue retrying may change
over the course of operations, resulting in reallocation
of resources but exits without sending the login attempt.
Guard against this by introducing a boolean variable that
will retain the state indicating that the driver needs to
reattempt login with backing device firmware.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c