]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix outer_header_zero() check size
authorIlan Tayari <ilant@mellanox.com>
Wed, 5 Jul 2017 07:17:04 +0000 (10:17 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 27 Jul 2017 13:40:16 +0000 (16:40 +0300)
commitb4cdfe155f51c6df83361d95a2b7ea06a871a679
tree9e27a57fb247d6a2c40a9d34d14261cd3a78e262
parent2971218123fe1a0cde0d580c1301f26a29506ed2
net/mlx5e: Fix outer_header_zero() check size

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.

Fixes: 1b0fb3ac6e08 ("net/mlx5e: Add ethtool flow steering support")
Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c