ibmvnic: Harden device login requests
authorThomas Falcon <tlfalcon@linux.ibm.com>
Mon, 15 Jun 2020 15:29:23 +0000 (10:29 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:37:03 +0000 (15:37 -0400)
commit855dbf10c9a7eec8ee37f304a7704c19003c24fc
tree14b0bfac4ce23cb742e9fcb1cbff9824abce9d2e
parent07b8b2d463710afa9b9d275177d8801b8de60606
ibmvnic: Harden device login requests

[ Upstream commit dff515a3e71dc8ab3b9dcc2e23a9b5fca88b3c18 ]

The VNIC driver's "login" command sequence is the final step
in the driver's initialization process with device firmware,
confirming the available device queue resources to be utilized
by the driver. Under high system load, firmware may not respond
to the request in a timely manner or may abort the request. In
such cases, the driver should reattempt the login command
sequence. In case of a device error, the number of retries
is bounded.

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