]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Use action 'discard' when removing traps
authorIdo Schimmel <idosch@mellanox.com>
Sat, 2 Jul 2016 09:00:19 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 19:21:18 +0000 (15:21 -0400)
commite5445284607b29ed20eecc0961234ad81440339d
tree138ee563814a457eec42fdf8dd49b4c6d0b9f6ba
parent36d7c953a3a7295c9a5a02504eff60c2015ac471
mlxsw: spectrum: Use action 'discard' when removing traps

When removing packet traps we should use action 'discard' instead of
'forward', as some trap IDs we'll add cannot be configured with the
later. However, result is the same, as packets are not trapped to the
CPU.

In the future we will be able to reverse the operation properly by
detaching the trap group from the CPU.

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