netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] ibmvnic: Failover hardening
@ 2018-05-23 18:37 Thomas Falcon
  2018-05-23 18:37 ` [PATCH net-next 1/8] ibmvnic: Mark NAPI flag as disabled when released Thomas Falcon
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Thomas Falcon @ 2018-05-23 18:37 UTC (permalink / raw)
  To: netdev; +Cc: nfont, jallen, linuxppc-dev, Thomas Falcon

Introduce additional transport event hardening to handle
events during device reset. In the driver's current state,
if a transport event is received during device reset, it can
cause the device to become unresponsive as invalid operations
are processed as the backing device context changes. After
a transport event, the device expects a request to begin the
initialization process. If the driver is still processing
a previously queued device reset in this state, it is likely
to fail as firmware will reject any commands other than the
one to initialize the client driver's Command-Response Queue.

Instead of failing and becoming dormant, the driver will make
one more attempt to recover and continue operation. This is
achieved by setting a state flag, which if true will direct
the driver to clean up all allocated resources and perform
a hard reset in an attempt to bring the driver back to an
operational state.

Thomas Falcon (8):
  ibmvnic: Mark NAPI flag as disabled when released
  ibmvnic: Introduce active CRQ state
  ibmvnic: Check CRQ command return codes
  ibmvnic: Return error code if init interrupted by transport event
  ibmvnic: Handle error case when setting link state
  ibmvnic: Create separate initialization routine for resets
  ibmvnic: Set resetting state at earliest possible point
  ibmvnic: Introduce hard reset recovery

 drivers/net/ethernet/ibm/ibmvnic.c | 223 +++++++++++++++++++++++++++++++++----
 drivers/net/ethernet/ibm/ibmvnic.h |   2 +
 2 files changed, 202 insertions(+), 23 deletions(-)

-- 
2.7.5

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-05-25  2:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-23 18:37 [PATCH net-next 0/8] ibmvnic: Failover hardening Thomas Falcon
2018-05-23 18:37 ` [PATCH net-next 1/8] ibmvnic: Mark NAPI flag as disabled when released Thomas Falcon
2018-05-23 18:37 ` [PATCH net-next 2/8] ibmvnic: Introduce active CRQ state Thomas Falcon
2018-05-23 18:37 ` [PATCH net-next 3/8] ibmvnic: Check CRQ command return codes Thomas Falcon
2018-05-23 18:37 ` [PATCH net-next 4/8] ibmvnic: Return error code if init interrupted by transport event Thomas Falcon
2018-05-23 18:37 ` [PATCH net-next 5/8] ibmvnic: Handle error case when setting link state Thomas Falcon
2018-05-23 18:38 ` [PATCH net-next 6/8] ibmvnic: Create separate initialization routine for resets Thomas Falcon
2018-05-23 18:38 ` [PATCH net-next 7/8] ibmvnic: Set resetting state at earliest possible point Thomas Falcon
2018-05-23 18:38 ` [PATCH net-next 8/8] ibmvnic: Introduce hard reset recovery Thomas Falcon
2018-05-25  2:19 ` [PATCH net-next 0/8] ibmvnic: Failover hardening David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).