]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Fix placement of log_max_flow_counter
authorRaed Salem <raeds@nvidia.com>
Thu, 21 Jan 2021 14:01:37 +0000 (16:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:04:35 +0000 (21:04 -0700)
The cited commit wrongly placed log_max_flow_counter field of
mlx5_ifc_flow_table_prop_layout_bits, align it to the HW spec intended
placement.

Fixes: 16f1c5bb3ed7 ("net/mlx5: Check device capability for maximum flow counters")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/linux/mlx5/mlx5_ifc.h

index df5d91c8b2d42b71343d5e268bff95989adfe77f..1ccedb7816d0d5b9660741b4b87b76c779522e3a 100644 (file)
@@ -437,11 +437,11 @@ struct mlx5_ifc_flow_table_prop_layout_bits {
        u8         reserved_at_60[0x18];
        u8         log_max_ft_num[0x8];
 
-       u8         reserved_at_80[0x18];
+       u8         reserved_at_80[0x10];
+       u8         log_max_flow_counter[0x8];
        u8         log_max_destination[0x8];
 
-       u8         log_max_flow_counter[0x8];
-       u8         reserved_at_a8[0x10];
+       u8         reserved_at_a0[0x18];
        u8         log_max_flow[0x8];
 
        u8         reserved_at_c0[0x40];