]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Mark dead nexthops with appropriate flags
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jan 2018 10:45:02 +0000 (12:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 02:29:39 +0000 (21:29 -0500)
commit944edf0d7e856d9ac33151add5772a02b585c80d
treee4e88d806e5d969859a11baa5475687d0015c752
parent976977d4e5cfd39d435bff1c8a2c8a0ff17a834a
ipv6: Mark dead nexthops with appropriate flags

When a netdev is put administratively down or unregistered all the
nexthops using it as their nexthop device should be marked with the
'dead' and 'linkdown' flags.

Currently, when a route is dumped its nexthop device is tested and the
flags are set accordingly. A similar check is performed during route
lookup.

Instead, we can simply mark the nexthops based on netdev events and
avoid checking the netdev's state during route dump and lookup.

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