mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
ipv4: convert udp_l3mdev_accept sysctl to u8
Reduce footprint of sysctls. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b2908fac5b
commit
cd04bd0222
2 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ struct netns_ipv4 {
|
|||
u8 sysctl_fib_notify_on_flag_change;
|
||||
|
||||
#ifdef CONFIG_NET_L3_MASTER_DEV
|
||||
int sysctl_udp_l3mdev_accept;
|
||||
u8 sysctl_udp_l3mdev_accept;
|
||||
#endif
|
||||
|
||||
int sysctl_igmp_max_memberships;
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue