NTB: Remove reads across NTB
authorJon Mason <jon.mason@intel.com>
Sat, 19 Jan 2013 09:02:26 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:45:51 +0000 (15:45 -0800)
commit793c20e9c924e6bc91bc9b1c98e2f6b8e1bf2fae
tree1ac009d91230095b0cc5808ef86e089d6fc7c30b
parentd7237e22bbcffc3237a234fdf165fde4c2b0a22d
NTB: Remove reads across NTB

CPU reads across NTB are slow(er) and can hang the local system if an
ECC error is encountered on the remote.  To work around the need for a
read, have the remote side write its current position in the rx buffer
to the local system's buffer and use that to see if there is room when
transmitting.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c