All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment
@ 2019-07-23  7:12 Leon Romanovsky
  2019-07-23 18:28 ` David Miller
  0 siblings, 1 reply; 9+ messages in thread
From: Leon Romanovsky @ 2019-07-23  7:12 UTC (permalink / raw)
  To: Doug Ledford, Jason Gunthorpe
  Cc: Edward Srouji, RDMA mailing list, Yishai Hadas, Saeed Mahameed,
	linux-netdev, Leon Romanovsky

From: Edward Srouji <edwards@mellanox.com>

Fix modify_cq_in alignment to match the device specification.
After this fix the 'cq_umem_valid' field will be in the right offset.

Cc: <stable@vger.kernel.org> # 4.19
Fixes: bd37197554eb ("net/mlx5: Update mlx5_ifc with DEVX UID bits")
Signed-off-by: Edward Srouji <edwards@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
---
 include/linux/mlx5/mlx5_ifc.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index b3d5752657d9..ec571fd7fcf8 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -5975,10 +5975,12 @@ struct mlx5_ifc_modify_cq_in_bits {

 	struct mlx5_ifc_cqc_bits cq_context;

-	u8         reserved_at_280[0x40];
+	u8         reserved_at_280[0x60];

 	u8         cq_umem_valid[0x1];
-	u8         reserved_at_2c1[0x5bf];
+	u8         reserved_at_2e1[0x1f];
+
+	u8         reserved_at_300[0x580];

 	u8         pas[0][0x40];
 };
--
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-25  3:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23  7:12 [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment Leon Romanovsky
2019-07-23 18:28 ` David Miller
2019-07-23 19:04   ` Leon Romanovsky
2019-07-23 20:02     ` David Miller
2019-07-23 20:34       ` Saeed Mahameed
2019-07-24  4:26         ` Leon Romanovsky
2019-07-23 20:25     ` Saeed Mahameed
2019-07-24 20:56     ` Saeed Mahameed
2019-07-25  3:02       ` Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.