]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ipv4: convert fib_notify_on_flag_change sysctl to u8
authorEric Dumazet <edumazet@google.com>
Wed, 31 Mar 2021 17:52:07 +0000 (10:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 21:48:19 +0000 (14:48 -0700)
Reduce footprint of sysctls.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/ipv4/sysctl_net_ipv4.c

index 538ed69919dc4d51acfd43c7d6d1fca611fcb003..b187ac597b8ce33376070bcd42c8c935b9c287eb 100644 (file)
@@ -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;
index 9199f507a005efc3f57ca0225d3898bfa5d01c53..a2352d8d88cc9956ac0ddcaf351cbc996fa10add 100644 (file)
@@ -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,
        },