Patch "net/mlx5e: Fix outer_header_zero() check size" has been added to the 4.12-stable tree
This is a note to let you know that I've just added the patch titled
net/mlx5e: Fix outer_header_zero() check size
to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5e-fix-outer_header_zero-check-size.patch
and it can be found in the queue-4.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Aug 8 16:27:29 PDT 2017
From: Ilan Tayari <[email protected]>
Date: Wed, 5 Jul 2017 10:17:04 +0300
Subject: net/mlx5e: Fix outer_header_zero() check size
From: Ilan Tayari <[email protected]>
[ Upstream commit 0242f4a0bb03906010bbf80495512be00494a0ef ]
outer_header_zero() routine checks if the outer_headers match of a flow-table entry are all zero.
This function uses the size of whole fte_match_param, instead of just the outer_headers member, causing failure to detect all-zeros if any other members of the fte_match_param are non-zero.
Use the correct size for zero check.
--- drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c +1 -1
@@ -276,7 +276,7 @@ static void add_rule_to_list(struct mlx5static bool outer_header_zero (u32 *match_criteria) { -int size =MLX5_ST_SZ_BYTES (fte_match_param); +int size =MLX5_FLD_SZ_BYTES (fte_match_param, outer_headers);char *outer_headers_c =MLX5_ADDR_OF (fte_match_param, match_criteria, outer_headers);
Patches currently in stable-queue which might be from [email protected] are
queue-4.12/net-mlx5e-fix-outer_header_zero-check-size.patch