summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEdward Srouji <edwards@mellanox.com>2019-07-23 10:12:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-09 17:52:33 +0200
commitcd84a10792f08d3d0cc1cbeed07634e454fe9abd (patch)
tree93af383792c88af21397ed311b51deae372c5825 /include
parentf378724e10ced69c5e55db2e23ad350ede76f174 (diff)
downloadlinux-stable-cd84a10792f08d3d0cc1cbeed07634e454fe9abd.tar.gz
linux-stable-cd84a10792f08d3d0cc1cbeed07634e454fe9abd.tar.bz2
linux-stable-cd84a10792f08d3d0cc1cbeed07634e454fe9abd.zip
net/mlx5: Fix modify_cq_in alignment
[ Upstream commit 7a32f2962c56d9d8a836b4469855caeee8766bd4 ] 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> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/mlx5_ifc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index f043d65b9bac..177f11c96187 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -5623,7 +5623,12 @@ struct mlx5_ifc_modify_cq_in_bits {
struct mlx5_ifc_cqc_bits cq_context;
- u8 reserved_at_280[0x600];
+ u8 reserved_at_280[0x60];
+
+ u8 cq_umem_valid[0x1];
+ u8 reserved_at_2e1[0x1f];
+
+ u8 reserved_at_300[0x580];
u8 pas[0][0x40];
};