[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1472764397.5439.1.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Thu, 01 Sep 2016 14:13:17 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Johanna Abrahamsson <johanna@...o.org>
Cc: "David S. Miller" <davem@...emloft.net>,
HÃ¥kon Bugge <haakon.bugge@...cle.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Hans Westgaard Ry <hans.westgaard.ry@...cle.com>,
"open list:NETWORKING [GENERAL]" <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: Reduce size of rps_sock_flow_sysctl
On Thu, 2016-09-01 at 22:37 +0200, Johanna Abrahamsson wrote:
> Reduce size of rps_sock_flow_sysctl to improve readability.
>
> Signed-off-by: Johanna Abrahamsson <johanna@...o.org>
> ---
> net/core/sysctl_net_core.c | 44 ++++++++++++++++++++++----------------------
> 1 file changed, 22 insertions(+), 22 deletions(-)
>
> diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
> index 0df2aa6..d0be2ce 100644
> --- a/net/core/sysctl_net_core.c
> +++ b/net/core/sysctl_net_core.c
> @@ -53,29 +53,29 @@ static int rps_sock_flow_sysctl(struct ctl_table *table, int write,
> ret = proc_dointvec(&tmp, write, buffer, lenp, ppos);
>
> if (write) {
> - if (size) {
> - if (size > 1<<29) {
> - /* Enforce limit to prevent overflow */
> - mutex_unlock(&sock_flow_mutex);
> - return -EINVAL;
> + if (!size)
> + goto exit_unlock;
Hi Johanna
Unfortunately this would break the following action :
lpaa24:~# cat /proc/sys/net/core/rps_sock_flow_entries
65536
lpaa24:~# echo 0 >/proc/sys/net/core/rps_sock_flow_entries
lpaa24:~# cat /proc/sys/net/core/rps_sock_flow_entries
0
If you resubmit a V2, please include a 'Tested:' section showing how
you have tested your (first linux ?) patch ;)
Thanks !
Powered by blists - more mailing lists