aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/sysctl_net_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-03-31 17:52:08 +0000
committerDavid S. Miller <[email protected]>2021-03-31 21:48:20 +0000
commitcd04bd022258f4aa6e8392c8133dbbf31da0f12f (patch)
treed0d8222f35b2505980fd1097ac1cc1e8efc0ccbf /net/ipv4/sysctl_net_ipv4.c
parentipv4: convert fib_notify_on_flag_change sysctl to u8 (diff)
downloadkernel-cd04bd022258f4aa6e8392c8133dbbf31da0f12f.tar.gz
kernel-cd04bd022258f4aa6e8392c8133dbbf31da0f12f.zip
ipv4: convert udp_l3mdev_accept sysctl to u8
Reduce footprint of sysctls. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r--net/ipv4/sysctl_net_ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index a2352d8d88cc..1b6ce649a433 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -1065,9 +1065,9 @@ static struct ctl_table ipv4_net_table[] = {
{
.procname = "udp_l3mdev_accept",
.data = &init_net.ipv4.sysctl_udp_l3mdev_accept,
- .maxlen = sizeof(int),
+ .maxlen = sizeof(u8),
.mode = 0644,
- .proc_handler = proc_dointvec_minmax,
+ .proc_handler = proc_dou8vec_minmax,
.extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE,
},