NTB: reset tx_index on link toggle
authorJon Mason <jon.mason@intel.com>
Fri, 1 Feb 2013 22:34:35 +0000 (15:34 -0700)
committerJon Mason <jon.mason@intel.com>
Wed, 15 May 2013 17:57:51 +0000 (10:57 -0700)
commit90f9e934647e652a69396e18c779215a493271cf
tree73fd87122d939e395d7d56d4b41e58840e57eca7
parentb77b2637b39ecc380bb08992380d7d48452b0872
NTB: reset tx_index on link toggle

If the NTB link toggles, the driver could stop receiving due to the
tx_index not being set to 0 on the transmitting size on a link-up event.
This is due to the driver expecting the incoming data to start at the
beginning of the receive buffer and not at a random place.

Signed-off-by: Jon Mason <jon.mason@intel.com>
drivers/ntb/ntb_transport.c