]> git.dujemihanovic.xyz Git - linux.git/commitdiff
net/mlx5: Fix wrong reserved field in hca_cap_2 in mlx5_ifc
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Mon, 23 Sep 2024 08:44:30 +0000 (11:44 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 25 Sep 2024 20:15:45 +0000 (13:15 -0700)
Fixing the wrong size of a field in hca_cap_2.
The bug was introduced by adding new fields for HWS
and not fixing the reserved field size.

Fixes: 34c626c3004a ("net/mlx5: Added missing mlx5_ifc definition for HW Steering")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/linux/mlx5/mlx5_ifc.h

index 620a5c305123bb0298e0f17d4a4f43cd135eb634..04df1610736ef59c84184661d647932103558987 100644 (file)
@@ -2115,7 +2115,7 @@ struct mlx5_ifc_cmd_hca_cap_2_bits {
        u8         ts_cqe_metadata_size2wqe_counter[0x5];
        u8         reserved_at_250[0x10];
 
-       u8         reserved_at_260[0x120];
+       u8         reserved_at_260[0x20];
 
        u8         format_select_dw_gtpu_dw_0[0x8];
        u8         format_select_dw_gtpu_dw_1[0x8];