IB: remove xrc_remote_srq_num from struct ib_send_wr
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>
This commit is contained in:
parent
e622f2f4ad
commit
25556ae6b9
|
@ -2627,7 +2627,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
|
||||||
switch (ibqp->qp_type) {
|
switch (ibqp->qp_type) {
|
||||||
case IB_QPT_XRC_INI:
|
case IB_QPT_XRC_INI:
|
||||||
xrc = seg;
|
xrc = seg;
|
||||||
xrc->xrc_srqn = htonl(wr->xrc_remote_srq_num);
|
|
||||||
seg += sizeof(*xrc);
|
seg += sizeof(*xrc);
|
||||||
size += sizeof(*xrc) / 16;
|
size += sizeof(*xrc) / 16;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
|
|
@ -1100,7 +1100,6 @@ struct ib_send_wr {
|
||||||
__be32 imm_data;
|
__be32 imm_data;
|
||||||
u32 invalidate_rkey;
|
u32 invalidate_rkey;
|
||||||
} ex;
|
} ex;
|
||||||
u32 xrc_remote_srq_num; /* XRC TGT QPs only */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ib_rdma_wr {
|
struct ib_rdma_wr {
|
||||||
|
|
Loading…
Reference in New Issue