Commit aee38fad authored by Shani Michaeli's avatar Shani Michaeli Committed by Roland Dreier

IB/mlx4_ib: Remove local invalidate segment unused fields

Remove unused fields from the local invalidate WQE segment structure.
Signed-off-by: default avatarHaggai Eran <haggaie@mellanox.com>
Signed-off-by: default avatarShani Michaeli <shanim@mellanox.com>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 6950a235
...@@ -1983,10 +1983,8 @@ static void set_fmr_seg(struct mlx4_wqe_fmr_seg *fseg, struct ib_send_wr *wr) ...@@ -1983,10 +1983,8 @@ static void set_fmr_seg(struct mlx4_wqe_fmr_seg *fseg, struct ib_send_wr *wr)
static void set_local_inv_seg(struct mlx4_wqe_local_inval_seg *iseg, u32 rkey) static void set_local_inv_seg(struct mlx4_wqe_local_inval_seg *iseg, u32 rkey)
{ {
iseg->flags = 0; memset(iseg, 0, sizeof(*iseg));
iseg->mem_key = cpu_to_be32(rkey); iseg->mem_key = cpu_to_be32(rkey);
iseg->guest_id = 0;
iseg->pa = 0;
} }
static __always_inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg, static __always_inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg,
......
...@@ -304,12 +304,10 @@ struct mlx4_wqe_fmr_ext_seg { ...@@ -304,12 +304,10 @@ struct mlx4_wqe_fmr_ext_seg {
}; };
struct mlx4_wqe_local_inval_seg { struct mlx4_wqe_local_inval_seg {
__be32 flags; u64 reserved1;
u32 reserved1;
__be32 mem_key; __be32 mem_key;
u32 reserved2[2]; u32 reserved2;
__be32 guest_id; u64 reserved3[2];
__be64 pa;
}; };
struct mlx4_wqe_raddr_seg { struct mlx4_wqe_raddr_seg {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment