]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: correct ECE offset in query qp output
authorChangcheng Liu <jerrliu@nvidia.com>
Tue, 26 Apr 2022 13:28:14 +0000 (21:28 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 31 May 2022 20:40:54 +0000 (13:40 -0700)
ECE field should be after opt_param_mask in query qp output.

Fixes: 16ab330fa5cc ("net/mlx5: Add ability to read and write ECE options")
Signed-off-by: Changcheng Liu <jerrliu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
include/linux/mlx5/mlx5_ifc.h

index 78b3d3465dd7ba605a98881b9cdfc2e2a7e567e9..2cd7d611e7b3c9c80269b90a45dee68be9d4e415 100644 (file)
@@ -5176,12 +5176,11 @@ struct mlx5_ifc_query_qp_out_bits {
 
        u8         syndrome[0x20];
 
-       u8         reserved_at_40[0x20];
-       u8         ece[0x20];
+       u8         reserved_at_40[0x40];
 
        u8         opt_param_mask[0x20];
 
-       u8         reserved_at_a0[0x20];
+       u8         ece[0x20];
 
        struct mlx5_ifc_qpc_bits qpc;