From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next 2/4] ipv6: Use a 31-bit multipath hash Date: Tue, 9 Jan 2018 20:43:52 -0700 Message-ID: <5a3e26ec-8dee-fb88-5ad1-7329609cfab3@gmail.com> References: <20180109144028.30133-1-idosch@mellanox.com> <20180109144028.30133-3-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, roopa@cumulusnetworks.com, nikolay@cumulusnetworks.com, pch@ordbogen.com, jkbs@redhat.com, yoshfuji@linux-ipv6.org, mlxsw@mellanox.com To: Ido Schimmel , netdev@vger.kernel.org Return-path: Received: from mail-pg0-f67.google.com ([74.125.83.67]:38484 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965100AbeAJDny (ORCPT ); Tue, 9 Jan 2018 22:43:54 -0500 Received: by mail-pg0-f67.google.com with SMTP id t67so9796096pgc.5 for ; Tue, 09 Jan 2018 19:43:54 -0800 (PST) In-Reply-To: <20180109144028.30133-3-idosch@mellanox.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 1/9/18 7:40 AM, Ido Schimmel wrote: > The hash thresholds assigned to IPv6 nexthops are in the range of > [-1, 2^31 - 1], where a negative value is assigned to nexthops that > should not be considered during multipath selection. > > Therefore, in a similar fashion to IPv4, we need to use the upper > 31-bits of the multipath hash for multipath selection. > > Signed-off-by: Ido Schimmel > --- > net/ipv6/route.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Acked-by: David Ahern