net/mlx5: Group similer rules under the same fte
authorMark Bloch <markb@mellanox.com>
Sun, 11 Sep 2016 13:03:06 +0000 (13:03 +0000)
committerLeon Romanovsky <leon@kernel.org>
Sun, 30 Oct 2016 13:43:16 +0000 (15:43 +0200)
commita62249857779733dc7cb5d43d6ecdc35fa81b88f
tree7c16b7202d33f6aa53eb7f9dc116d5869d407a29
parent814fb8754155ef9535cad4ef1ce06429fe7988c6
net/mlx5: Group similer rules under the same fte

When adding a new rule, if we can match it with compare_match_value and
flow tag we might be able to insert the rule to the same fte.
In order to do that, there must be an overlap between the actions of the
fte and the new rule.

When updating the action of an existing fte, we must tell the firmware
we are doing so.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c