]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98b6232975397cb81528c8343f7fdcad817903f2
tree458f72e58fab70a28f36b406c6ec2b700ea299c4
parent04d42ab6fedf1022afaff461c193f063a42d9402
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