]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac8b5617987cfd6786d73643aed87b3cb063c272
treedbcb647fe836f7ead7fd141ca55cb1867c46f14d
parentf914316bf387b9a302e7b9360bc8a86b3fd4700f
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: 493481d2d3d8 ("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