]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: acl: Change trap ACL action to get the trap_id as a parameter
authorYotam Gigi <yotamg@mellanox.com>
Tue, 19 Sep 2017 08:00:11 +0000 (10:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 21:21:40 +0000 (14:21 -0700)
commit6448f7b0217b5760643b6f6fe890244c4d180ccd
tree71777759cb9c59728985ef3ff9df0858c7155f07
parent552727ef7337077fd50701a9e0fcb3f5c49e9fc4
mlxsw: acl: Change trap ACL action to get the trap_id as a parameter

Allow the trap ACL action to be configured with different traps. This
allows the multicast router offloading code to use that same ACL action
with the multicast router traps. By using different traps, the multicast
router can have different trap policies and can handle the packet
differently.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@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/core_acl_flex_actions.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c