linux/net/sunrpc/xprtrdma
Chuck Lever 97cc326450 svcrdma: Consult max_qp_init_rd_atom when accepting connections
The target needs to return the lesser of the client's Inbound RDMA
Read Queue Depth (IRD), provided in the connection parameters, and
the local device's Outbound RDMA Read Queue Depth (ORD). The latter
limit is max_qp_init_rd_atom, not max_qp_rd_atom.

The svcrdma_ord value caps the ORD value for iWARP transports, which
do not exchange ORD/IRD values at connection time. Since no other
Linux kernel RDMA-enabled storage target sees fit to provide this
cap, I'm removing it here too.

initiator_depth is a u8, so ensure the computed ORD value does not
overflow that field.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2018-03-20 17:32:13 -04:00
..
backchannel.c xprtrdma: Correct some documenting comments 2018-01-23 09:44:39 -05:00
fmr_ops.c xprtrdma: Add trace points to instrument memory invalidation 2018-01-23 09:44:36 -05:00
frwr_ops.c xprtrdma: Add trace points to instrument memory invalidation 2018-01-23 09:44:36 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
module.c rpcrdma: infrastructure for static trace points in rpcrdma.ko 2018-01-23 09:44:25 -05:00
rpc_rdma.c xprtrdma: Fix calculation of ri_max_send_sges 2018-02-02 13:29:57 -05:00
svc_rdma_backchannel.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_recvfrom.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_rw.c svcrdma: Fix Read chunk round-up 2018-02-08 13:40:17 -05:00
svc_rdma_sendto.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_transport.c svcrdma: Consult max_qp_init_rd_atom when accepting connections 2018-03-20 17:32:13 -04:00
svc_rdma.c svcrdma: Consult max_qp_init_rd_atom when accepting connections 2018-03-20 17:32:13 -04:00
transport.c SUNRPC: Trace xprt_timer events 2018-01-23 09:44:39 -05:00
verbs.c xprtrdma: Fix BUG after a device removal 2018-02-02 13:31:04 -05:00
xprt_rdma.h xprtrdma: Add trace points in the client-side backchannel code paths 2018-01-23 09:44:37 -05:00