On 1/9/18 7:40 AM, Ido Schimmel wrote:
> Before we convert IPv6 to use hash-threshold instead of modulo-N, we
> first need each nexthop to store its region boundary in the hash
> function's output space.
> 
> The boundary is calculated by dividing the output space equally between
> the different active nexthops. That is, nexthops that are not dead or
> linkdown.
> 
> The boundaries are rebalanced whenever a nexthop is added or removed to
> a multipath route and whenever a nexthop becomes active or inactive.
> 
> Signed-off-by: Ido Schimmel <ido...@mellanox.com>
> ---
>  include/net/ip6_fib.h   |  1 +
>  include/net/ip6_route.h |  7 ++++
>  net/ipv6/ip6_fib.c      |  8 ++---
>  net/ipv6/route.c        | 96 
> +++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 106 insertions(+), 6 deletions(-)
> 

LGTM.
Acked-by: David Ahern <dsah...@gmail.com>

Reply via email to