Message ID | 1472713193-22397-4-git-send-email-knut.omang@oracle.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On 9/1/2016 9:59 AM, Knut Omang wrote: > Also proper end align the ibv_kern_send_wr struct. > > Requires a corresponding kernel change. Again, usually starting from a kernel patch then coming with a matching user one. > Signed-off-by: Knut Omang <knut.omang@oracle.com> > Reviewed-by: Mukesh Kacker <mukesh.kacker@oracle.com> > --- > include/infiniband/kern-abi.h | 1 + > src/cmd.c | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h > index 8bdeef5..7b1d310 100644 > --- a/include/infiniband/kern-abi.h > +++ b/include/infiniband/kern-abi.h > @@ -800,6 +800,7 @@ struct ibv_kern_send_wr { > union { > struct { > __u32 remote_srqn; > + __u32 reserved; > } xrc; > } qp_type; > }; > diff --git a/src/cmd.c b/src/cmd.c > index a418ee1..a4e2f75 100644 > --- a/src/cmd.c > +++ b/src/cmd.c > @@ -1293,6 +1293,8 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, > tmp->wr.ud.remote_qpn = i->wr.ud.remote_qpn; > tmp->wr.ud.remote_qkey = i->wr.ud.remote_qkey; > } else { > + if (ibqp->qp_type == IBV_QPT_XRC_SEND) > + tmp->qp_type.xrc.remote_srqn = i->qp_type.xrc.remote_srqn; > switch (i->opcode) { > case IBV_WR_RDMA_WRITE: > case IBV_WR_RDMA_WRITE_WITH_IMM: > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, 2016-09-01 at 12:00 +0300, Yishai Hadas wrote: > On 9/1/2016 9:59 AM, Knut Omang wrote: > > Also proper end align the ibv_kern_send_wr struct. > > > > Requires a corresponding kernel change. https://www.spinics.net/lists/linux-rdma/msg39884.html Knut > > Again, usually starting from a kernel patch then coming with a matching > user one. > > > Signed-off-by: Knut Omang <knut.omang@oracle.com> > > Reviewed-by: Mukesh Kacker <mukesh.kacker@oracle.com> > > --- > > include/infiniband/kern-abi.h | 1 + > > src/cmd.c | 2 ++ > > 2 files changed, 3 insertions(+) > > > > diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h > > index 8bdeef5..7b1d310 100644 > > --- a/include/infiniband/kern-abi.h > > +++ b/include/infiniband/kern-abi.h > > @@ -800,6 +800,7 @@ struct ibv_kern_send_wr { > > union { > > struct { > > __u32 remote_srqn; > > + __u32 reserved; > > } xrc; > > } qp_type; > > }; > > diff --git a/src/cmd.c b/src/cmd.c > > index a418ee1..a4e2f75 100644 > > --- a/src/cmd.c > > +++ b/src/cmd.c > > @@ -1293,6 +1293,8 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, > > tmp->wr.ud.remote_qpn = i->wr.ud.remote_qpn; > > tmp->wr.ud.remote_qkey = i->wr.ud.remote_qkey; > > } else { > > + if (ibqp->qp_type == IBV_QPT_XRC_SEND) > > + tmp->qp_type.xrc.remote_srqn = i->qp_type.xrc.remote_srqn; > > switch (i->opcode) { > > case IBV_WR_RDMA_WRITE: > > case IBV_WR_RDMA_WRITE_WITH_IMM: > > > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h index 8bdeef5..7b1d310 100644 --- a/include/infiniband/kern-abi.h +++ b/include/infiniband/kern-abi.h @@ -800,6 +800,7 @@ struct ibv_kern_send_wr { union { struct { __u32 remote_srqn; + __u32 reserved; } xrc; } qp_type; }; diff --git a/src/cmd.c b/src/cmd.c index a418ee1..a4e2f75 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1293,6 +1293,8 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, tmp->wr.ud.remote_qpn = i->wr.ud.remote_qpn; tmp->wr.ud.remote_qkey = i->wr.ud.remote_qkey; } else { + if (ibqp->qp_type == IBV_QPT_XRC_SEND) + tmp->qp_type.xrc.remote_srqn = i->qp_type.xrc.remote_srqn; switch (i->opcode) { case IBV_WR_RDMA_WRITE: case IBV_WR_RDMA_WRITE_WITH_IMM: