]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core_acl_flex_actions: Add police action
authorIdo Schimmel <idosch@mellanox.com>
Wed, 15 Jul 2020 08:27:28 +0000 (11:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 01:10:00 +0000 (18:10 -0700)
commitad19ede1713be04cdd6c71860a8cb1b062d0f15a
tree76ce14564c7e402b3d88a88bb5f86fac05cfe865
parent005f9c87fbf26166c76df1e27fc1f42a1dff740a
mlxsw: core_acl_flex_actions: Add police action

Add core functionality required to support police action in the policy
engine.

The utilized hardware policers are stored in a hash table keyed by the
flow action index. This allows to support policer sharing between
multiple ACL rules.

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