]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum_flower: Forbid to offload mirred redirect on egress
authorJiri Pirko <jiri@mellanox.com>
Sat, 27 Jul 2019 17:32:55 +0000 (20:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jul 2019 21:32:31 +0000 (14:32 -0700)
commit185556f092491120ea2bd7eab6f9f78ff6c4d6d0
treef00afc905c3372664f2601cb6393457998026bf9
parentca4ac16817fe5b2b665ea0b6932f1e6af17ccee4
mlxsw: spectrum_flower: Forbid to offload mirred redirect on egress

Spectrum ASIC does not support redirection on egress, so refuse to
insert such flows:

$ tc qdisc add dev ens16np1 clsact
$ tc filter add dev ens16np1 egress protocol all pref 1 handle 101 flower skip_sw action mirred egress redirect dev ens16np2
Error: mlxsw_spectrum: Redirect action is not supported on egress.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c