]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Set nexthop flags during route creation
authorIdo Schimmel <idosch@mellanox.com>
Sun, 7 Jan 2018 10:45:06 +0000 (12:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 02:29:40 +0000 (21:29 -0500)
commit7f923f856a01d3cf23002a0921e7d6631c1e0d6d
tree431e6fc739c9db78d56225b6541989c9045fc93c
parent813fb4261bc0df78a900ed5d1d022b1f06283542
ipv6: Set nexthop flags during route creation

It is valid to install routes with a nexthop device that does not have a
carrier, so we need to make sure they're marked accordingly.

As explained in the previous patch, host and anycast routes are never
marked with the 'linkdown' flag.

Note that reject routes are unaffected, as these use the loopback device
which always has a carrier.

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