]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix no rewrite fields with the same match
authorEli Britstein <elibr@mellanox.com>
Wed, 10 Apr 2019 19:42:20 +0000 (19:42 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 17 May 2019 20:16:49 +0000 (13:16 -0700)
commitbac4da4d09d74702b027846c3e840d85a6569128
tree0a5fe4772ff54ff27330eb9da0cdfc09e377a480
parent984800b6c18cf8ab2841410680237ed7b24382bf
net/mlx5e: Fix no rewrite fields with the same match

With commit f67c5e4cb2c4 ("net/mlx5e: Do not rewrite fields with the
same match") there are no rewrites if the rewrite value is the same as
the matched value. However, if the field is not matched, the rewrite is
also wrongly skipped. Fix it.

Fixes: f67c5e4cb2c4 ("net/mlx5e: Do not rewrite fields with the same match")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c