diff options
author | Eric Dumazet <edumazet@google.com> | 2021-03-31 19:52:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-31 23:48:20 +0200 |
commit | 7d4b37ebb934aa32a54666fe9153d127c33ff89a (patch) | |
tree | fbbb443e303b92f0f283ad200ed17f9ae54f879c /net/ipv4/sysctl_net_ipv4.c | |
parent | ipv4: convert fib_multipath_{use_neigh|hash_policy} sysctls to u8 (diff) | |
download | linux-7d4b37ebb934aa32a54666fe9153d127c33ff89a.tar.xz linux-7d4b37ebb934aa32a54666fe9153d127c33ff89a.zip |
ipv4: convert igmp_link_local_mcast_reports sysctl to u8
This sysctl is a bool, can use less storage.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index ad75d6bb2df7..fd2b35065bb2 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -848,9 +848,9 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "igmp_link_local_mcast_reports", .data = &init_net.ipv4.sysctl_igmp_llm_reports, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, - .proc_handler = proc_dointvec + .proc_handler = proc_dou8vec_minmax, }, { .procname = "igmp_max_memberships", |