]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
IB: remove xrc_remote_srq_num from struct ib_send_wr
authorChristoph Hellwig <hch@lst.de>
Wed, 19 Aug 2015 12:58:43 +0000 (14:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 8 Oct 2015 10:09:11 +0000 (11:09 +0100)
The field is only initialized in mlx, but never used.

If we want to add proper XRC support it should be done with a new
struct ib_xrc_wr.

This shrinks the various WR structures by another 4 bytes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Haggai Eran <haggaie@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c
include/rdma/ib_verbs.h

index d4c36af4270fc1d29fedca9bd99547be3d7b93ca..9bad68820061f633194c5d9dcad7823c7367a74d 100644 (file)
@@ -2627,7 +2627,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
                switch (ibqp->qp_type) {
                case IB_QPT_XRC_INI:
                        xrc = seg;
-                       xrc->xrc_srqn = htonl(wr->xrc_remote_srq_num);
                        seg += sizeof(*xrc);
                        size += sizeof(*xrc) / 16;
                        /* fall through */
index 25f022c9aaacf61da18424a367a6f58bf15e3669..edf02908a0fd36442bbfb8c24ca6cb7b86e434f7 100644 (file)
@@ -1100,7 +1100,6 @@ struct ib_send_wr {
                __be32          imm_data;
                u32             invalidate_rkey;
        } ex;
-       u32                     xrc_remote_srq_num;     /* XRC TGT QPs only */
 };
 
 struct ib_rdma_wr {