Re: [PATCH net-next 04/18] ipv6: Prepare to handle multiple netdev events

From
David Ahern <hidden>
Date
2018-01-07 16:55:24
Reply to
Ido Schimmel, 2018-01-07
On 1/7/18 3:45 AM, Ido Schimmel wrote:
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 <redacted>
---
 include/net/ip6_route.h |  2 +-
 net/ipv6/addrconf.c     |  4 ++--
 net/ipv6/route.c        | 37 +++++++++++++++++++++----------------
 3 files changed, 24 insertions(+), 19 deletions(-)
Acked-by: David Ahern <redacted>
Thread (41 messages) 41 messages, 4 authors, last reply 2018-01-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help