]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: Don't count sdp header twice when calculating size_goal
authorAmir Vadai <amirv@mellanox.co.il>
Thu, 15 Apr 2010 08:52:19 +0000 (11:52 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:53 +0000 (05:04 -0700)
commite40de60ad5975591c8c414eef09bdf5a70ff8bff
tree22844b836fd46db25f5275d1f074749a17735c98
parent38b91910fe6132bb8fd18a7b1ffd2145ca821c44
sdp: Don't count sdp header twice when calculating size_goal

sizeof(struct sdp_bsdh) is included inside skb->len. Ignore it
when calculating maximum payload of the skb.
This mistake caused every BCopy send of 32K (and its multiples) to
be split and thus got bad performance.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c