]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1df03c6b44285984cc68bac824e7b399643e778
treeab1ae4d9b646d58328fffb8f33b0acc3ab33da0e
parente18dfb3f732a7c28ddaec8ea820aa75a2080f84e
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 2146678a953c and these followup patches:
60efa6432376 ("ipv6: Only emit append events for appended routes").
2300bdceadbc ("mlxsw: spectrum_router: Align with new route replace logic")
177b1b6e1a6e ("mlxsw: spectrum_router: Allow appending to dev-only routes")

Update the fib_tests cases to reflect the old behavior.

Fixes: 2146678a953c ("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