Re: [PATCH net-next 4/4] ipv6: Add support for non-equal-cost multipath

2018-01-10 Thread David Ahern
On 1/10/18 4:47 AM, Ido Schimmel wrote: > Hi David, > > On Tue, Jan 09, 2018 at 08:48:37PM -0700, David Ahern wrote: >> On 1/9/18 7:40 AM, Ido Schimmel wrote: >>> The use of hash-threshold instead of modulo-N makes it trivial to add >>> support for non-equal-cost multipath. >>> >>> Instead of divi

Re: [PATCH net-next 4/4] ipv6: Add support for non-equal-cost multipath

2018-01-10 Thread Ido Schimmel
Hi David, On Tue, Jan 09, 2018 at 08:48:37PM -0700, David Ahern wrote: > On 1/9/18 7:40 AM, Ido Schimmel wrote: > > 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 spac

Re: [PATCH net-next 4/4] ipv6: Add support for non-equal-cost multipath

2018-01-09 Thread David Ahern
On 1/9/18 7:40 AM, Ido Schimmel wrote: > 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

[PATCH net-next 4/4] ipv6: Add support for non-equal-cost multipath

2018-01-09 Thread Ido Schimmel
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 S