diff options
author | Shani Michaeli <shanim@mellanox.com> | 2013-02-06 11:19:07 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-02-21 14:36:29 -0500 |
commit | aee38fadd25989c3e6d99fc08752e2d87601ffc1 (patch) | |
tree | dd7306b19a5cc74dc4d563c6a9eadc71072c269b | |
parent | 6950a235b86cf4e73d2b8e5476e7d0eb8f61af63 (diff) |
IB/mlx4_ib: Remove local invalidate segment unused fields
Remove unused fields from the local invalidate WQE segment structure.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Shani Michaeli <shanim@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 6 | ||||
-rw-r--r-- | 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 19e0637220b9..c6dde71b4642 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) | |||
1983 | 1983 | ||
1984 | static void set_local_inv_seg(struct mlx4_wqe_local_inval_seg *iseg, u32 rkey) | 1984 | static void set_local_inv_seg(struct mlx4_wqe_local_inval_seg *iseg, u32 rkey) |
1985 | { | 1985 | { |
1986 | iseg->flags = 0; | 1986 | memset(iseg, 0, sizeof(*iseg)); |
1987 | iseg->mem_key = cpu_to_be32(rkey); | 1987 | iseg->mem_key = cpu_to_be32(rkey); |
1988 | iseg->guest_id = 0; | ||
1989 | iseg->pa = 0; | ||
1990 | } | 1988 | } |
1991 | 1989 | ||
1992 | static __always_inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg, | 1990 | 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 4b4ad6ffef92..6c8a68c602be 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h | |||
@@ -304,12 +304,10 @@ struct mlx4_wqe_fmr_ext_seg { | |||
304 | }; | 304 | }; |
305 | 305 | ||
306 | struct mlx4_wqe_local_inval_seg { | 306 | struct mlx4_wqe_local_inval_seg { |
307 | __be32 flags; | 307 | u64 reserved1; |
308 | u32 reserved1; | ||
309 | __be32 mem_key; | 308 | __be32 mem_key; |
310 | u32 reserved2[2]; | 309 | u32 reserved2; |
311 | __be32 guest_id; | 310 | u64 reserved3[2]; |
312 | __be64 pa; | ||
313 | }; | 311 | }; |
314 | 312 | ||
315 | struct mlx4_wqe_raddr_seg { | 313 | struct mlx4_wqe_raddr_seg { |