Re: [PATCH net-next 1/3] ipv4: Lock-less per-packet multipath

2015-06-20 Thread Peter Nørlund
On Thu, 18 Jun 2015 12:42:05 -0700 Alexander Duyck wrote: > On 06/17/2015 01:08 PM, Peter Nørlund wrote: > > The current multipath attempted to be quasi random, but in most > > cases it behaved just like a round robin balancing. This patch > > refactors the algorithm to be exactly that and in doi

Re: [PATCH net-next 1/3] ipv4: Lock-less per-packet multipath

2015-06-18 Thread Alexander Duyck
On 06/17/2015 01:08 PM, Peter Nørlund wrote: The current multipath attempted to be quasi random, but in most cases it behaved just like a round robin balancing. This patch refactors the algorithm to be exactly that and in doing so, avoids the spin lock. The new design paves the way for hash-base

[PATCH net-next 1/3] ipv4: Lock-less per-packet multipath

2015-06-17 Thread Peter Nørlund
The current multipath attempted to be quasi random, but in most cases it behaved just like a round robin balancing. This patch refactors the algorithm to be exactly that and in doing so, avoids the spin lock. The new design paves the way for hash-based multipath, replacing the modulo with threshol