staging: lustre: o2iblnd: limit cap.max_send_wr for MLX5 (fwd)
PATCH 1/4 staging: lustre: o2iblnd: limit cap.max_send_wr for MLX5 (fwd)
Quoted 3 lines
James,
I?m pretty sure this port to upstream is flawed. See below
Yep. I missed that line. Thanks for review. Greg you can drop this one. I will submit a updated version soon. This patch series is not order dependent so the other patches are safe to land.
Quoted 54 lines · lustre-devel on behalf of James Simmons
Quoted 21 lines
From: Dmitry Eremin <[email protected]>
Decrease cap.max_send_wr until it is accepted by
rdma_create_qp()Signed-off-by Dmitry Eremin <[email protected]>Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7124
Reviewed-on: http://review.whamcloud.com/18347Reviewed-by Olaf Weber <[email protected]>Reviewed-by Doug Oucharek <[email protected]>Reviewed-by Oleg Drokin <[email protected]>Signed-off-by James Simmons <[email protected]>---
.../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c| 11 ++++++++++-1 files changed, 10 insertions(+), 1 deletions(-)drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +0
-0drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c kib_conn_t *kiblnd_create_conn(kib_peer_t *peer, struct rdma_cm_id *cmid, · line 774
Quoted 8 lines
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +4
-1@@ -768,7 +768,12 @@ kib_conn_t *kiblnd_create_conn(kib_peer_t *peer, struct rdma_cm_id *cmid, conn->ibc_sched = sched; - rc =rdma_create_qp (cmid, conn->ibc_hdev->ibh_pd, init_qp_attr); + do { + rc = rdma_create_qp(cmid, conn->ibc_hdev->ibh_pd, init_qp_attr); + if (!rc || init_qp_attr->cap.max_send_wr < 16) + break;I think the loop here is missing code to decrease the
max_send_wrvalue. In current master it?sinit_qp_attr->cap.max_send_wr -= init_qp_attr->cap.max_send_wr / 4;Quoted 19 lines
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +6
-0+ }while (rc); +if (rc) { CERROR("Can't create QP: %d, send_wr: %d, recv_wr: %d\n", rc, init_qp_attr->cap.max_send_wr,@@ -776,6 +781,10 @@ kib_conn_t *kiblnd_create_conn(kib_peer_t *peer, struct rdma_cm_id *cmid, goto failed_2; } +if (init_qp_attr->cap.max_send_wr !=IBLND_SEND_WRS (conn)) +CDEBUG (D_NET ,"original send wr %d, created with %d\n" , +IBLND_SEND_WRS (conn), init_qp_attr->cap.max_send_wr); +LIBCFS_FREE (init_qp_attr,sizeof (*init_qp_attr));/* 1 ref for caller and each rxmsg */ Signature · 1 line
1.7.1