diff options
author | Eric Dumazet <edumazet@google.com> | 2021-03-31 10:52:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-31 14:48:19 -0700 |
commit | b2908fac5b7b23c03fa1d3e1055ad95ba305c871 (patch) | |
tree | b95b04a1788788c02fc89b5789f6f0f806fc51c3 | |
parent | 490f33c4e70431d0a4d01666a6525fdd43299cde (diff) | |
download | linux-b2908fac5b7b23c03fa1d3e1055ad95ba305c871.tar.bz2 |
ipv4: convert fib_notify_on_flag_change sysctl to u8
Reduce footprint of sysctls.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/netns/ipv4.h | 2 | ||||
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 538ed69919dc..b187ac597b8c 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -191,7 +191,7 @@ struct netns_ipv4 { int sysctl_udp_wmem_min; int sysctl_udp_rmem_min; - int sysctl_fib_notify_on_flag_change; + u8 sysctl_fib_notify_on_flag_change; #ifdef CONFIG_NET_L3_MASTER_DEV int sysctl_udp_l3mdev_accept; diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 9199f507a005..a2352d8d88cc 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -1364,9 +1364,9 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "fib_notify_on_flag_change", .data = &init_net.ipv4.sysctl_fib_notify_on_flag_change, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dou8vec_minmax, .extra1 = SYSCTL_ZERO, .extra2 = &two, }, |