mlxsw: acl: Use PBS type for forward action
authorJiri Pirko <jiri@mellanox.com>
Wed, 15 Feb 2017 11:09:51 +0000 (12:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2017 18:23:20 +0000 (13:23 -0500)
commit0c921a894c2f01850f39ad6ecb31dd92a9cc9839
treedbcb647fe836f7ead7fd141ca55cb1867c46f14d
parent6a553b4894264eb880fe07c2ac6be54eea1d7abb
mlxsw: acl: Use PBS type for forward action

Current behaviour of "mirred redirect" action (forward) offload is a bit
odd. For matched packets the action forwards them to the desired
destination, but it also lets the packet duplicates to go the original
way down (bridge, router, etc). That is more like "mirred mirror".
Fix this by using PBS type which behaves exactly like "mirred redirect".
Note that PBS does not support loopback mode.

Fixes: 4cda7d8d7098 ("mlxsw: core: Introduce flexible actions support")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-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