Re: [PATCH v3 net-next 1/2] ipv4: L3 hash-based multipath

2015-09-23 Thread Peter Nørlund
On Mon, 21 Sep 2015 10:52:13 -0600 David Ahern wrote: > On 9/15/15 2:29 PM, Peter Nørlund wrote: > > @@ -1094,8 +1142,15 @@ struct fib_info *fib_create_info(struct > > fib_config *cfg) > > > > change_nexthops(fi) { > > fib_info_update_nh_saddr(net, nexthop_nh); > > +#ifdef CONFIG_

Re: [PATCH v3 net-next 1/2] ipv4: L3 hash-based multipath

2015-09-21 Thread David Ahern
On 9/15/15 2:29 PM, Peter Nørlund wrote: @@ -1094,8 +1142,15 @@ struct fib_info *fib_create_info(struct fib_config *cfg) change_nexthops(fi) { fib_info_update_nh_saddr(net, nexthop_nh); +#ifdef CONFIG_IP_ROUTE_MULTIPATH + fi->fib_weight += nexthop_nh->nh_wei

Re: [PATCH v3 net-next 1/2] ipv4: L3 hash-based multipath

2015-09-15 Thread Peter Nørlund
On Tue, 15 Sep 2015 14:40:48 -0700 Alexander Duyck wrote: > On 09/15/2015 01:29 PM, Peter Nørlund wrote: > > Replaces the per-packet multipath with a hash-based multipath using > > source and destination address. > > > > Signed-off-by: Peter Nørlund > > --- > > include/net/ip_fib.h | 11 +

Re: [PATCH v3 net-next 1/2] ipv4: L3 hash-based multipath

2015-09-15 Thread Alexander Duyck
On 09/15/2015 01:29 PM, Peter Nørlund wrote: Replaces the per-packet multipath with a hash-based multipath using source and destination address. Signed-off-by: Peter Nørlund --- include/net/ip_fib.h | 11 ++-- net/ipv4/fib_semantics.c | 137 +-

[PATCH v3 net-next 1/2] ipv4: L3 hash-based multipath

2015-09-15 Thread Peter Nørlund
Replaces the per-packet multipath with a hash-based multipath using source and destination address. Signed-off-by: Peter Nørlund --- include/net/ip_fib.h | 11 ++-- net/ipv4/fib_semantics.c | 137 +-- net/ipv4/route.c | 23 +++- 3 fil