diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-06-06 14:12:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 12:45:24 -0400 |
commit | df7eea963e4debe3b8286935c2fe9021c81ddbb6 (patch) | |
tree | da8adefcf7e541501d61c4066d258be21ed2f643 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | |
parent | 0db7b386f5e779085d5e20ad9d88b8a4b8767c02 (diff) | |
download | linux-stable-df7eea963e4debe3b8286935c2fe9021c81ddbb6.tar.gz linux-stable-df7eea963e4debe3b8286935c2fe9021c81ddbb6.tar.bz2 linux-stable-df7eea963e4debe3b8286935c2fe9021c81ddbb6.zip |
acl: Introduce ACL trap action
Use trap/discard flex action to implement trap.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c index 1da889a044df..01a1501b56ca 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c @@ -347,6 +347,11 @@ int mlxsw_sp_acl_rulei_act_drop(struct mlxsw_sp_acl_rule_info *rulei) return mlxsw_afa_block_append_drop(rulei->act_block); } +int mlxsw_sp_acl_rulei_act_trap(struct mlxsw_sp_acl_rule_info *rulei) +{ + return mlxsw_afa_block_append_trap(rulei->act_block); +} + int mlxsw_sp_acl_rulei_act_fwd(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, struct net_device *out_dev) |