From: Shani Michaeli <sha...@mellanox.com>

Remove unused fields from the local invalidate WQE segment structure.

Signed-off-by: Haggai Eran <hagg...@mellanox.com>
Signed-off-by: Shani Michaeli <sha...@mellanox.com>
Signed-off-by: Or Gerlitz <ogerl...@mellanox.com>
---
 drivers/infiniband/hw/mlx4/qp.c |    6 ++----
 include/linux/mlx4/qp.h         |    8 +++-----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 19e0637..c6dde71 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -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)
 {
-       iseg->flags     = 0;
-       iseg->mem_key   = cpu_to_be32(rkey);
-       iseg->guest_id  = 0;
-       iseg->pa        = 0;
+       memset(iseg, 0, sizeof(*iseg));
+       iseg->mem_key = cpu_to_be32(rkey);
 }
 
 static __always_inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg,
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h
index 4b4ad6f..6c8a68c 100644
--- a/include/linux/mlx4/qp.h
+++ b/include/linux/mlx4/qp.h
@@ -304,12 +304,10 @@ struct mlx4_wqe_fmr_ext_seg {
 };
 
 struct mlx4_wqe_local_inval_seg {
-       __be32                  flags;
-       u32                     reserved1;
+       u64                     reserved1;
        __be32                  mem_key;
-       u32                     reserved2[2];
-       __be32                  guest_id;
-       __be64                  pa;
+       u32                     reserved2;
+       u64                     reserved3[2];
 };
 
 struct mlx4_wqe_raddr_seg {
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to