@@ -765,7 +765,7 @@ struct ib_uverbs_send_wr {
__u32 opcode;
__u32 send_flags;
union {
- __u32 imm_data;
+ __be32 imm_data;
__u32 invalidate_rkey;
} ex;
union {
@@ -1413,7 +1413,7 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
struct ibv_post_send *cmd;
struct ib_uverbs_post_send_resp resp;
struct ibv_send_wr *i;
- struct ibv_kern_send_wr *n, *tmp;
+ struct ib_uverbs_send_wr *n, *tmp;
struct ibv_sge *s;
unsigned wr_count = 0;
unsigned sge_count = 0;
@@ -1434,7 +1434,7 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
cmd->sge_count = sge_count;
cmd->wqe_size = sizeof *n;
- n = (struct ibv_kern_send_wr *) ((void *) cmd + sizeof *cmd);
+ n = (struct ib_uverbs_send_wr *) ((void *) cmd + sizeof *cmd);
s = (struct ibv_sge *) (n + wr_count);
tmp = n;
@@ -1443,7 +1443,7 @@ int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
tmp->num_sge = i->num_sge;
tmp->opcode = i->opcode;
tmp->send_flags = i->send_flags;
- tmp->imm_data = i->imm_data;
+ tmp->ex.imm_data = i->imm_data;
if (ibqp->qp_type == IBV_QPT_UD) {
tmp->wr.ud.ah = i->wr.ud.ah->handle;
tmp->wr.ud.remote_qpn = i->wr.ud.remote_qpn;
@@ -395,39 +395,6 @@ struct ibv_destroy_qp {
__u32 reserved;
};
-struct ibv_kern_send_wr {
- __u64 wr_id;
- __u32 num_sge;
- __u32 opcode;
- __u32 send_flags;
- __be32 imm_data;
- union {
- struct {
- __u64 remote_addr;
- __u32 rkey;
- __u32 reserved;
- } rdma;
- struct {
- __u64 remote_addr;
- __u64 compare_add;
- __u64 swap;
- __u32 rkey;
- __u32 reserved;
- } atomic;
- struct {
- __u32 ah;
- __u32 remote_qpn;
- __u32 remote_qkey;
- __u32 reserved;
- } ud;
- } wr;
- union {
- struct {
- __u32 remote_srqn;
- } xrc;
- } qp_type;
-};
-
struct ibv_kern_spec_eth {
__u32 type;
__u16 size;
@@ -522,7 +489,7 @@ struct ibv_post_send {
__u32 wr_count;
__u32 sge_count;
__u32 wqe_size;
- struct ibv_kern_send_wr send_wr[0];
+ struct ib_uverbs_send_wr send_wr[0];
};
struct ibv_post_recv {