net/mlx5: Fix reserved at offset in mlx5_ifc_fte_match_set_lyr_2_4_bits
Subsystems (4)
PATCH 1/1 net/mlx5: Fix reserved at offset in mlx5_ifc_fte_match_set_lyr_2_4_bits
A member of struct mlx5_ifc_fte_match_set_lyr_2_4_bits has been mistakenly assigned the wrong reserved_at offset value. Correct it to align to the right value, thus avoid future miscalculation.
Fixes 5c422bfad2fb ("net/mlx5: DR, Add support for matching on Internet Header Length (IHL)")
Signed-off-by Asbjørn Sloth Tønnesen <[email protected]>
--- include/linux/mlx5/mlx5_ifc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mlx5/mlx5_ifc.h +1 -1
@@ -552,7 +552,7 @@ struct mlx5_ifc_fte_match_set_lyr_2_4_bits {u8 reserved_at_c0[0x10 ];u8 ipv4_ihl[0x4 ]; -u8 reserved_at_c4[0x4 ]; +u8 reserved_at_d4[0x4 ];u8 ttl_hoplimit[0x8 ];
Signature · 1 line
2.42.0
Quoted 15 lines · On Thu, 02 Nov, 2023 17:59:22 +0000 Asbjørn Sloth Tønnesen <[email protected]>…
A member of struct
mlx5_ifc_fte_match_set_lyr_2_4_bitshas been mistakenly assigned the wrongreserved_atoffset value. Correct it to align to the right value, thus avoid future miscalculation.Fixes 5c422bfad2fb ("net/mlx5: DR, Add support for matching on Internet Header Length (IHL)")Signed-off-by Asbjørn Sloth Tønnesen <[email protected]>--- include/linux/mlx5/mlx5_ifc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/mlx5/mlx5_ifc.h +0
-0
include/linux/mlx5/mlx5_ifc.h struct mlx5_ifc_fte_match_set_lyr_2_4_bits { · line 557
Quoted 7 lines
include/linux/mlx5/mlx5_ifc.h +1
-1@@ -552,7 +552,7 @@ struct mlx5_ifc_fte_match_set_lyr_2_4_bits {u8 reserved_at_c0[0x10 ];u8 ipv4_ihl[0x4 ]; -u8 reserved_at_c4[0x4 ]; +u8 reserved_at_d4[0x4 ];u8 ttl_hoplimit[0x8 ];
In general, patches should target one of net or net-next on the netdev mailing list as a heads up.
https://docs.kernel.org/process/maintainer-netdev.html#tl-dr
Reviewed-by Rahul Rameshbabu <[email protected]>