Skip to content

Commit 4c8c0fa

Browse files
committed
svcrdma: Update max_send_sges after QP is created
rdma_create_qp() can modify cap.max_send_sges. Copy the new value to the svcrdma transport so it is bound by the new limit instead of the requested one. Signed-off-by: Chuck Lever <[email protected]>
1 parent 5485d6d commit 4c8c0fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sunrpc/xprtrdma/svc_rdma_transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ static struct svc_xprt *svc_rdma_accept(struct svc_xprt *xprt)
467467
trace_svcrdma_qp_err(newxprt, ret);
468468
goto errout;
469469
}
470+
newxprt->sc_max_send_sges = qp_attr.cap.max_send_sge;
470471
newxprt->sc_qp = newxprt->sc_cm_id->qp;
471472

472473
if (!(dev->attrs.device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS))

0 commit comments

Comments
 (0)