NTB: Correctly handle receive buffers of the minimal size
authorJon Mason <jon.mason@intel.com>
Fri, 1 Feb 2013 22:45:16 +0000 (15:45 -0700)
committerJon Mason <jon.mason@intel.com>
Wed, 15 May 2013 17:57:59 +0000 (10:57 -0700)
commitc9d534c8cbaedbb522a1d2cb037c6c394f610317
treeeaea8a1c31a0a0a0d850b07590704a3b57fdbca5
parent90f9e934647e652a69396e18c779215a493271cf
NTB: Correctly handle receive buffers of the minimal size

The ring logic of the NTB receive buffer/transmit memory window requires
there to be at least 2 payload sized allotments.  For the minimal size
case, split the buffer into two and set the transport_mtu to the
appropriate size.

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