mlxsw: spectrum_acl: Offload FLOW_ACTION_POLICE
authorIdo Schimmel <idosch@mellanox.com>
Wed, 15 Jul 2020 08:27:29 +0000 (11:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 01:10:00 +0000 (18:10 -0700)
commitaf11e818a7691468381bbb33a3b98fb718605385
tree25f3e8a0cdf4f654dcc8973c9b89d360f85e448a
parentdeee0abc70d9c2c7241fdb915527cb8fdbf36e7a
mlxsw: spectrum_acl: Offload FLOW_ACTION_POLICE

Offload action police when used with a flower classifier. The number of
dropped packets is read from the policer and reported to tc.

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/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c