]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Add support for non-equal-cost multipath
authorIdo Schimmel <idosch@mellanox.com>
Tue, 9 Jan 2018 14:40:28 +0000 (16:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:14:44 +0000 (15:14 -0500)
commit4e1cc09a320ed9cfd2bf8cc0169194b33456e9e4
tree1af7f7291b37d5e8c3106540e06a041d9f563d83
parenta9b9bea68c0e64a4b90275d5f3e7d48b092cf89c
ipv6: Add support for non-equal-cost multipath

The use of hash-threshold instead of modulo-N makes it trivial to add
support for non-equal-cost multipath.

Instead of dividing the multipath hash function's output space equally
between the nexthops, each nexthop is assigned a region size which is
proportional to its weight.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/route.c