From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ipv6: Revert "ipv6: Allow non-gateway ECMP for IPv6" Date: Wed, 02 May 2018 16:33:26 -0400 (EDT) Message-ID: <20180502.163326.186058333461600916.davem@davemloft.net> References: <20180502194156.9275-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, eric.dumazet@gmail.com, Thomas.Winter@alliedtelesis.co.nz, mlxsw@mellanox.com To: idosch@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:37314 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbeEBUd2 (ORCPT ); Wed, 2 May 2018 16:33:28 -0400 In-Reply-To: <20180502194156.9275-1-idosch@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Ido Schimmel Date: Wed, 2 May 2018 22:41:56 +0300 > This reverts commit edd7ceb78296 ("ipv6: Allow non-gateway ECMP for > IPv6"). > > Eric reported a division by zero in rt6_multipath_rebalance() which is > caused by above commit that considers identical local routes to be > siblings. The division by zero happens because a nexthop weight is not > set for local routes. > > Revert the commit as it does not fix a bug and has side effects. > > To reproduce: > > # ip -6 address add 2001:db8::1/64 dev dummy0 > # ip -6 address add 2001:db8::1/64 dev dummy1 > > Fixes: edd7ceb78296 ("ipv6: Allow non-gateway ECMP for IPv6") > Signed-off-by: Ido Schimmel > Reported-by: Eric Dumazet Applied, thank you.