mlxsw: acl_flex_actions: Trap all ACL dropped packets to DISCARD_*_ACL traps
authorJiri Pirko <jiri@mellanox.com>
Mon, 24 Feb 2020 07:35:51 +0000 (08:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:55:07 +0000 (11:55 -0800)
commit3e6cacaf51d79ac38acf2764275d022bd61d0ef6
tree458f72e58fab70a28f36b406c6ec2b700ea299c4
parent3128f3a150f6f0da69db6b7ca79b044c4260b579
mlxsw: acl_flex_actions: Trap all ACL dropped packets to DISCARD_*_ACL traps

Introduce a new set of traps:
DISCARD_INGRESS_ACL and DISCARD_EGRESS_ACL
Set the trap_action from NOP to TRAP which causes the packets dropped
by the TRAP action to be trapped under new trap IDs, depending on the
ingress/egress binding point.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/trap.h