]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Account for RPC/RDMA header size when deciding to inline
authorChuck Lever <chuck.lever@oracle.com>
Tue, 7 Jul 2015 20:31:35 +0000 (16:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:59 +0000 (14:45 -0600)
commit0bc64bc239dccf91c49cd68cd2b5a32f57335ec3
tree571f542e1ff591747b866a4f6b64a3a102649d63
parent8ffe2940cff12fa8f37cea6bb939c244af36354e
xprtrdma: Account for RPC/RDMA header size when deciding to inline

[ Queued for upstream v4.3 ]

When the size of the RPC message is near the inline threshold (1KB),
the client would allow messages to be sent that were a few bytes too
large.

When marshaling RPC/RDMA requests, ensure the combined size of
RPC/RDMA header and RPC header do not exceed the inline threshold.
Endpoints typically reject RPC/RDMA messages that exceed the size
of their receive buffers.

The two server implementations I test with (Linux and Solaris) use
receive buffers that are larger than the client’s inline threshold.
Thus so far this has been benign, observed only by code inspection.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Devesh Sharma <devesh.sharma@avagotech.com>
Tested-by: Devesh Sharma <devesh.sharma@avagotech.com>
net/sunrpc/xprtrdma/rpc_rdma.c