]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Do not consider linkdown nexthops during multipath
authorIdo Schimmel <idosch@mellanox.com>
Tue, 21 Nov 2017 07:50:12 +0000 (09:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Nov 2017 16:26:47 +0000 (01:26 +0900)
commit7a9da87db6fa86ee10bff43c2c6600c39bcc6d16
treec2652284123d238682df8993808cfda8f068112a
parentfc29aa5688ff3f7fd4661a3931a93ef01de84764
ipv6: Do not consider linkdown nexthops during multipath

When the 'ignore_routes_with_linkdown' sysctl is set, we should not
consider linkdown nexthops during route lookup.

While the code correctly verifies that the initially selected route
('match') has a carrier, it does not perform the same check in the
subsequent multipath selection, resulting in a potential packet loss.

In case the chosen route does not have a carrier and the sysctl is set,
choose the initially selected route.

Fixes: a64b5ef0baa1 ("net: ipv6 sysctl option to ignore routes when nexthop link is down")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Acked-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c