]> 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)
commit00c011524a657370af4f7ecf15872703ebe43156
treedbcb647fe836f7ead7fd141ca55cb1867c46f14d
parent5f7f4aa723d68fd399fac05f3fb295abdb5ce29c
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: e2a621d5be69 ("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