]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Use a 31-bit multipath hash
authorIdo Schimmel <idosch@mellanox.com>
Tue, 9 Jan 2018 14:40:26 +0000 (16:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:14:44 +0000 (15:14 -0500)
commitede56201d5e39b6068ea07c220687bb8daba7d34
tree523cddaf3bdb72c4116ace07b533d7ef131c3190
parentdbd7067f1392a5c01fc609b02c4b3d9840309d85
ipv6: Use a 31-bit multipath hash

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 <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c