net/mlx5e: Fix outer_header_zero() check size
authorIlan Tayari <ilant@mellanox.com>
Wed, 5 Jul 2017 07:17:04 +0000 (10:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:49:33 +0000 (08:49 -0700)
commitd7049799668a206eb2a97024c91fc822e0a8a5c6
tree4c99cab2c2bb96ff148c5d52d61709a526530138
parentd19d0ac684e505200aad8db44271acbd0ab35bd1
net/mlx5e: Fix outer_header_zero() check size

[ 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.

Fixes: 6dc6071cfcde ("net/mlx5e: Add ethtool flow steering support")
Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c