[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <537bdf7c-a5cf-aae6-cf34-c917ab4fcbde@gmail.com>
Date: Sun, 26 Apr 2020 11:26:08 -0600
From: David Ahern <dsahern@...il.com>
To: Roopa Prabhu <roopa@...ulusnetworks.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, nikolay@...ulusnetworks.com,
bpoirier@...ulusnetworks.com
Subject: Re: [PATCH net-next v2 2/3] ipv4: add sysctl for nexthop api
compatibility mode
On 4/25/20 6:48 PM, Roopa Prabhu wrote:
> diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
> index 81b267e..a613ecf 100644
> --- a/net/ipv4/sysctl_net_ipv4.c
> +++ b/net/ipv4/sysctl_net_ipv4.c
> @@ -711,6 +711,13 @@ static struct ctl_table ipv4_net_table[] = {
> .proc_handler = proc_tcp_early_demux
> },
> {
> + .procname = "nexthop_compat_mode",
> + .data = &init_net.ipv4.sysctl_nexthop_compat_mode,
> + .maxlen = sizeof(int),
> + .mode = 0644,
> + .proc_handler = proc_dointvec
> + },
I think you can make this a bool.
.proc_handler = proc_dointvec_minmax,
.extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE,
rest looks good to me.
Powered by blists - more mailing lists