mlxsw: spectrum_router: Set abort trap for IPv6
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:25 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:33 +0000 (11:57 -0700)
commitbc65a8a4f4d214c30c21cba90607c93ac676f6cf
treec37c8bb4b235ce908e45f92e0b6d4ed28b6569f8
parent9dbf4d76d07d3b581238149d6e87796c39c94716
mlxsw: spectrum_router: Set abort trap for IPv6

When we fail to insert a route we invoke the abort mechanism which
flushes all the tables and inserts a default route in each, so that all
packets incoming to the router will be trapped to the CPU.

Upon abort, add an IPv6 default route to the IPv6 tables.

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_router.c