]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_flower: Forbid to insert flower rules in collision with matchall...
authorJiri Pirko <jiri@mellanox.com>
Sat, 9 May 2020 20:06:07 +0000 (23:06 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 23:02:43 +0000 (16:02 -0700)
commit3471e63c76c85e6c6d7b6a508c37dde616fa2f4a
tree0148c4217c9837fb26fb78451f259108e5c88a9e
parent3a06c3d176dfe7110727ae0ea178b524040c3f1c
mlxsw: spectrum_flower: Forbid to insert flower rules in collision with matchall rules

On ingress, the matchall rules doing mirroring and sampling are offloaded
into hardware blocks that are processed before any flower rules.
On egress, the matchall mirroring rules are offloaded into hardware
block that is processed after all flower rules.

Therefore check the priorities of inserted flower rules against
existing matchall rules and ensure the correct ordering.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c