]> git.itanic.dy.fi Git - linux-stable/commit
NTB: reset tx_index on link toggle
authorJon Mason <jon.mason@intel.com>
Fri, 1 Feb 2013 22:34:35 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:36:04 +0000 (11:36 -0700)
commit71f5fafba8ede25b833c939ed0c35d8c202fc1e3
tree52e68c1e172c3a5606c9d4143aa974e5759d8012
parente71ac54f810d7b4fac5c148052c78d523e57751f
NTB: reset tx_index on link toggle

commit 90f9e934647e652a69396e18c779215a493271cf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c