ibmvnic: Harden device login requests
authorThomas Falcon <tlfalcon@linux.ibm.com>
Mon, 15 Jun 2020 15:29:23 +0000 (10:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jun 2020 20:18:13 +0000 (13:18 -0700)
commitdff515a3e71dc8ab3b9dcc2e23a9b5fca88b3c18
tree2413782910390da3954d5dfe394bb2f7b0265112
parent939a5bf7c9b7a1ad9c5d3481c93766a522773531
ibmvnic: Harden device login requests

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>
drivers/net/ethernet/ibm/ibmvnic.c