]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add missing packet traps
authorElad Raz <eladr@mellanox.com>
Wed, 17 Aug 2016 14:39:32 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:18:27 +0000 (19:18 -0400)
commit079b3f7a5b6abb724ba5ff2b61e4c297d2df1fef
tree5fb71afcb57f698bfbe4289d0e979856ffb513e7
parent5c116167ed57fc20d3a7a8dfd0fe00f9f92e7986
mlxsw: spectrum: Add missing packet traps

Add the following traps:

1) MTU Error: Trap packets whose size is bigger than the egress RIF's
MTU. If DF bit isn't set, traffic will continue to be routed in slow
path.

2) TTL Error: Trap packets whose TTL expired. This allows traceroute to
work properly.

3) OSPF packets.

Fixes: 645a6d3c52ba ("mlxsw: spectrum: Add traps needed for router implementation")
Signed-off-by: Elad Raz <eladr@mellanox.com>
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
drivers/net/ethernet/mellanox/mlxsw/trap.h