net/ipv6: Revert attempt to simplify route replace and append
authorDavid Ahern <dsahern@gmail.com>
Tue, 3 Jul 2018 21:36:21 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 06:22:13 +0000 (15:22 +0900)
commit33bd5ac54dc47e002da4a395aaf9bf158dd17709
treeab1ae4d9b646d58328fffb8f33b0acc3ab33da0e
parentd5a672ac9f48f81b20b1cad1d9ed7bbf4e418d4c
net/ipv6: Revert attempt to simplify route replace and append

NetworkManager likes to manage linklocal prefix routes and does so with
the NLM_F_APPEND flag, breaking attempts to simplify the IPv6 route
code and by extension enable multipath routes with device only nexthops.

Revert f34436a43092 and these followup patches:
6eba08c3626b ("ipv6: Only emit append events for appended routes").
ce45bded6435 ("mlxsw: spectrum_router: Align with new route replace logic")
53b562df8c20 ("mlxsw: spectrum_router: Allow appending to dev-only routes")

Update the fib_tests cases to reflect the old behavior.

Fixes: f34436a43092 ("net/ipv6: Simplify route replace and appending into multipath route")
Signed-off-by: David Ahern <dsahern@gmail.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
include/net/ip6_route.h
net/ipv6/ip6_fib.c
net/ipv6/route.c
tools/testing/selftests/net/fib_tests.sh