OSDN Git Service

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)
commitdeee0abc70d9c2c7241fdb915527cb8fdbf36e7a
tree76ce14564c7e402b3d88a88bb5f86fac05cfe865
parentd25b8f6ebcc451b56faedc2dc666f74628fb1ffc
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