OSDN Git Service

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)
commit2ef86872d98d5558bfc852b47b1140e838d601d2
tree0a5fe4772ff54ff27330eb9da0cdfc09e377a480
parentc979c445a88e1c9dd7d8f90838c10456ae4ecd09
net/mlx5e: Fix no rewrite fields with the same match

With commit 27c11b6b844c ("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: 27c11b6b844c ("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