Re: [PATCH net-next v4] net: ipv4: add support for ECMP hash policy choice

2017-03-21 Thread David Miller
From: Nikolay Aleksandrov Date: Thu, 16 Mar 2017 15:28:00 +0200 > This patch adds support for ECMP hash policy choice via a new sysctl > called fib_multipath_hash_policy and also adds support for L4 hashes. > The current values for fib_multipath_hash_policy are: > 0 - layer 3 (default) > 1 - la

Re: [PATCH net-next v4] net: ipv4: add support for ECMP hash policy choice

2017-03-17 Thread Nikolay Aleksandrov
On 16/03/17 18:49, Nikolay Aleksandrov wrote: > On 16/03/17 18:41, Stephen Hemminger wrote: >> On Thu, 16 Mar 2017 15:28:00 +0200 >> Nikolay Aleksandrov wrote: >> >>> diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c >>> index d6880a6149ee..62c4f94923e5 100644 >>> --- a/net/ipv4

Re: [PATCH net-next v4] net: ipv4: add support for ECMP hash policy choice

2017-03-16 Thread Nikolay Aleksandrov
On 16/03/17 18:41, Stephen Hemminger wrote: > On Thu, 16 Mar 2017 15:28:00 +0200 > Nikolay Aleksandrov wrote: > >> diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c >> index d6880a6149ee..62c4f94923e5 100644 >> --- a/net/ipv4/sysctl_net_ipv4.c >> +++ b/net/ipv4/sysctl_net_ipv4.

Re: [PATCH net-next v4] net: ipv4: add support for ECMP hash policy choice

2017-03-16 Thread Stephen Hemminger
On Thu, 16 Mar 2017 15:28:00 +0200 Nikolay Aleksandrov wrote: > diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c > index d6880a6149ee..62c4f94923e5 100644 > --- a/net/ipv4/sysctl_net_ipv4.c > +++ b/net/ipv4/sysctl_net_ipv4.c > @@ -1004,6 +1004,15 @@ static struct ctl_table ipv

[PATCH net-next v4] net: ipv4: add support for ECMP hash policy choice

2017-03-16 Thread Nikolay Aleksandrov
This patch adds support for ECMP hash policy choice via a new sysctl called fib_multipath_hash_policy and also adds support for L4 hashes. The current values for fib_multipath_hash_policy are: 0 - layer 3 (default) 1 - layer 4 If there's an skb hash already set and it matches the chosen policy th