]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: BUG1311 Netpipe fails with a IB_WC_LOC_LEN_ERR.
authorAmir Vadai <amirv@mellanox.co.il>
Tue, 28 Apr 2009 06:40:10 +0000 (09:40 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:25 +0000 (05:04 -0700)
commit23902318d166592a98d5c82959cac76965097abb
tree3b36be49abf52935b6c638f2ffa220b45346a08b
parent8a3c8195458b943c05690a695d01e0efbaecadbc
sdp: BUG1311 Netpipe fails with a IB_WC_LOC_LEN_ERR.

This problem is seen when the receive buffer or the receive buffer fragments
are smaller than the senders buffer. If the sender is using 64KB pages
and supports a sk fragment of 64KB it may send fragments that are a full 64KB
in length causing the receiver to generate an IB_WC_LOC_LEN_ERR. This patch
makes two changes:

If the kernel does not support a full 64KB fragment it will reject resize
requests over 32K. (On older kernels a fragment size is defined as a U16)

If a kernel supports a 64KB fragment then it allows a full 64KB receive
fragment to be used.

Signed-off-by: David Wilder <dwilder@us.ibm.com>
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_bcopy.c