NTB: BWD Link Recovery
authorJon Mason <jon.mason@intel.com>
Sat, 17 Nov 2012 01:52:57 +0000 (18:52 -0700)
committerJon Mason <jon.mason@intel.com>
Tue, 3 Sep 2013 21:48:52 +0000 (14:48 -0700)
The BWD NTB device will drop the link if an error is encountered on the
point-to-point PCI bridge.  The link will stay down until all errors are
cleared and the link is re-established.  On link down, check to see if
the error is detected, if so do the necessary housekeeping to try and
recover from the error and reestablish the link.

There is a potential race between the 2 NTB devices recovering at the
same time.  If the times are synchronized, the link will not recover and the
driver will be stuck in this loop forever.  Add a random interval to the
recovery time to prevent this race.

Signed-off-by: Jon Mason <jon.mason@intel.com>

No differences found