]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61c706f0b0e004488fd50ad1233908845c3bbec0
treef8661ab9db36f54b078ea5c57cef5515cab58033
parent138f8955cba3169bb2f1705f39f5f025c60faec2
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