diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-06-06 14:12:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 12:45:24 -0400 |
commit | bd5ddba52dc0e2b37ce67e68ba1c419693009185 (patch) | |
tree | 1cca4caace0d58603d19d494849f2653e2805bb3 /drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | |
parent | df7eea963e4debe3b8286935c2fe9021c81ddbb6 (diff) | |
download | linux-stable-bd5ddba52dc0e2b37ce67e68ba1c419693009185.tar.gz linux-stable-bd5ddba52dc0e2b37ce67e68ba1c419693009185.tar.bz2 linux-stable-bd5ddba52dc0e2b37ce67e68ba1c419693009185.zip |
spectrum_flower: Implement gact trap TC action offload
Just use the previously prepared infrastructure and offload the gact
trap action to ACL.
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_flower.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c index 13af8e358847..21bb2bf62d3e 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c @@ -67,6 +67,10 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp, err = mlxsw_sp_acl_rulei_act_drop(rulei); if (err) return err; + } else if (is_tcf_gact_trap(a)) { + err = mlxsw_sp_acl_rulei_act_trap(rulei); + if (err) + return err; } else if (is_tcf_mirred_egress_redirect(a)) { int ifindex = tcf_mirred_ifindex(a); struct net_device *out_dev; |