]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Bound the inline threshold values
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 May 2016 18:40:48 +0000 (14:40 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:47:57 +0000 (15:47 -0400)
commit190237aed0a33514ae69d8beaa8d3a2158a1ed57
tree56015ecbc381615db5c4370ad104f54a52cd17d2
parent74ff25631abd09d57160beb165be9a11d901fa3b
xprtrdma: Bound the inline threshold values

Currently the sysctls that allow setting the inline threshold allow
any value to be set.

Small values only make the transport run slower. The default 1KB
setting is as low as is reasonable. And the logic that decides how
to divide a Send buffer between RPC-over-RDMA header and RPC message
assumes (but does not check) that the lower bound is not crazy (say,
57 bytes).

Send and receive buffers share a page with some control information.
Values larger than about 3KB can't be supported, currently.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xprtrdma.h
net/sunrpc/xprtrdma/transport.c