]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Prepare to handle multiple netdev events
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jan 2018 10:45:04 +0000 (12:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 02:29:40 +0000 (21:29 -0500)
commitf5f648ff3ff05d2770c3129cf22c4b91e053c036
tree65f4704cdfbd3a018c5ac6f60ae10b4fc5fedd51
parentcfd9debf75737bb977d6bbb529cdfe10f2f0c61e
ipv6: Prepare to handle multiple netdev events

To make IPv6 more in line with IPv4 we need to be able to respond
differently to different netdev events. For example, when a netdev is
unregistered all the routes using it as their nexthop device should be
flushed, whereas when the netdev's carrier changes only the 'linkdown'
flag should be toggled.

Currently, this is not possible, as the function that traverses the
routing tables is not aware of the triggering event.

Propagate the triggering event down, so that it could be used in later
patches.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/addrconf.c
net/ipv6/route.c