mlxsw: spectrum_matchall: Expose a function to get min and max rule priority
authorJiri Pirko <jiri@mellanox.com>
Sat, 9 May 2020 20:06:05 +0000 (23:06 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 23:02:43 +0000 (16:02 -0700)
commitaed65285fb9e16328f9bbf14394fef5ddbe82815
tree6dcaef114fdc5fc9f1363ecf65b9fe24ae8eb411
parent5a2939b9d7ddbdc399ce42cae8150c424e0bd764
mlxsw: spectrum_matchall: Expose a function to get min and max rule priority

Introduce an infrastructure that allows to get minimum and maximum
rule priority for specified chain. This is going to be used by
a subsequent patch to enforce ordering between flower and
matchall filters.

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.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c