From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ipv6: Do not consider linkdown nexthops during multipath Date: Fri, 24 Nov 2017 01:27:23 +0900 (KST) Message-ID: <20171124.012723.1606817313489376114.davem@davemloft.net> References: <20171121075012.11077-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, dsahern@gmail.com, andy@greyhouse.net, mlxsw@mellanox.com To: idosch@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:44186 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129AbdKWQ1Z (ORCPT ); Thu, 23 Nov 2017 11:27:25 -0500 In-Reply-To: <20171121075012.11077-1-idosch@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Ido Schimmel Date: Tue, 21 Nov 2017 09:50:12 +0200 > 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: 35103d11173b ("net: ipv6 sysctl option to ignore routes when nexthop link is down") > Signed-off-by: Ido Schimmel Applied.