mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
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 <chuck.lever@oracle.com>
This commit is contained in:
parent
5485d6ddfc
commit
4c8c0fa0d3
@ -467,6 +467,7 @@ static struct svc_xprt *svc_rdma_accept(struct svc_xprt *xprt)
|
||||
trace_svcrdma_qp_err(newxprt, ret);
|
||||
goto errout;
|
||||
}
|
||||
newxprt->sc_max_send_sges = qp_attr.cap.max_send_sge;
|
||||
newxprt->sc_qp = newxprt->sc_cm_id->qp;
|
||||
|
||||
if (!(dev->attrs.device_cap_flags & IB_DEVICE_MEM_MGT_EXTENSIONS))
|
||||
|
Loading…
Reference in New Issue
Block a user