Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rdma_xserver/xclient: Make recv/send WQs disjunctive
[ Upstream commit 8393ea1 ] Running rdma_xclient on a system with CX-5, yields the following error: $ rdma_xclient -s 192.168.77.1 -c x rdma_xclient: start rdma_create_ep: Invalid argument rdma_xclient: end -1 Enabling dynamic tracing of the mlx5/qp.c file gives: infiniband mlx5_0: create_qp:3035:(pid 53349): Create QP type 9 failed This is because the rdma_xclient sets the max_recv_{wr,sge} in the ibv_qp_init_attr struct before calling rdma_create_ep(). An XRC_SEND QP type shall not have a receive queue and an XRC_RECV QP type shall not have a send queue. Fixed by only configuring the send/recv queue in rdma_xserver/xclient respectively. Fixes: 6bda3d0 ("rdma_xserver/client: Add new test apps") Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com> Cc: stable@linux-rdma.org # v34.x --- v1 -> v2: * Made sure QP type RC continue to work * Added Cc: tag Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
- Loading branch information