mlxsw: core_acl_flex_actions: Add trap with userdef action
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Feb 2020 10:45:22 +0000 (11:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2020 19:05:54 +0000 (11:05 -0800)
commitec12165195cf7e68fc2f5f808d72484da886245d
tree02f1498eb6d3d398017d181665e820bc7fe1c7fd
parent5a2e106c746d2740f425cce3ac039321c924dc85
mlxsw: core_acl_flex_actions: Add trap with userdef action

Expose "Trap action with userdef". It is the same as already
defined "Trap action" with a difference that it would ask the policy
engine to pass arbitrary value (userdef) alongside with received packets.
This would be later on used to carry cookie index.

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