Skip to content

Commit

Permalink
ibverbs: Fix missing copy for srq field in ibv_cmd_create_qp
Browse files Browse the repository at this point in the history
[ Upstream commit 8c3e3aa ]

This fix sets the srq field in ibv_qp_init_attr, which wasn't being
copied into ibv_qp_init_attr_ex, causing kernel drivers to not get
the srq field in the create QP path.

Fixes: 74af92a ("ibverbs: Don't memcpy padding in ibv_qp_init_attr")
Signed-off-by: Bryan Tan <bryantan@vmware.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
bryantan-vmware authored and nmorey committed Dec 2, 2021
1 parent 962f005 commit 765eaf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libibverbs/cmd_qp.c
Expand Up @@ -385,6 +385,7 @@ int ibv_cmd_create_qp(struct ibv_pd *pd,
attr_ex.qp_context = attr->qp_context;
attr_ex.send_cq = attr->send_cq;
attr_ex.recv_cq = attr->recv_cq;
attr_ex.srq = attr->srq;
attr_ex.cap = attr->cap;
attr_ex.qp_type = attr->qp_type;
attr_ex.sq_sig_all = attr->sq_sig_all;
Expand Down

0 comments on commit 765eaf4

Please sign in to comment.