]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:41:24 +0000 (18:41 +0200)
[ Upstream commit 3fc2a9e89b3508a5cc0c324f26d7b4740ba8c456 ]

ECE field should be after opt_param_mask in query qp output.

Fixes: 6b646a7e4af6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/mlx5/mlx5_ifc.h

index 49a48d7709ac18f4846b4b236ae9731098131d28..4cd54277d5d928d0ccde490f32b3ee253057f2e8 100644 (file)
@@ -5175,12 +5175,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;