]> 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)
commitf67c5e4cb2c46d0f3460057d3cb94ce650db2940
treef8661ab9db36f54b078ea5c57cef5515cab58033
parent37603e7d5994f3a13131e95cf8494baa2116038a
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