net/mlx5e: Do not rewrite fields with the same match
authorEli Britstein <elibr@mellanox.com>
Sun, 17 Mar 2019 18:01:48 +0000 (18:01 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:34 +0000 (14:10 -0700)
commit27c11b6b844cd9473330ff29ddb55a535d2dd14a
treef8661ab9db36f54b078ea5c57cef5515cab58033
parent35a605db168c5ce4e6b69d66d7aa8d81769ad8a6
net/mlx5e: Do not rewrite fields with the same match

If we have a match for the same value of a rewrite field, there is no
point for the rewrite. In order to save rewrite actions, and avoid
entirely rewrite actions (if all rewrites are the same), ignore such
rewrite fields.

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