diff options
author | Eric Dumazet <edumazet@google.com> | 2021-03-25 19:08:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-26 01:39:33 +0100 |
commit | 1c69dedc8fa7c9684d48dc89994b4e0aceeae588 (patch) | |
tree | 0b82312ce92842e73255351138858a3aa57139f1 /net/ipv4/sysctl_net_ipv4.c | |
parent | ipv4: shrink netns_ipv4 with sysctl conversions (diff) | |
download | linux-1c69dedc8fa7c9684d48dc89994b4e0aceeae588.tar.xz linux-1c69dedc8fa7c9684d48dc89994b4e0aceeae588.zip |
ipv4: convert ip_forward_update_priority sysctl to u8
This sysctl uses ip_fwd_update_priority() helper,
so the conversion needs to change it.
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 e5ff17526603..713e0c0c91e9 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -209,7 +209,7 @@ static int ipv4_fwd_update_priority(struct ctl_table *table, int write, net = container_of(table->data, struct net, ipv4.sysctl_ip_fwd_update_priority); - ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); + ret = proc_dou8vec_minmax(table, write, buffer, lenp, ppos); if (write && ret == 0) call_netevent_notifiers(NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE, net); @@ -743,7 +743,7 @@ static struct ctl_table ipv4_net_table[] = { { .procname = "ip_forward_update_priority", .data = &init_net.ipv4.sysctl_ip_fwd_update_priority, - .maxlen = sizeof(int), + .maxlen = sizeof(u8), .mode = 0644, .proc_handler = ipv4_fwd_update_priority, .extra1 = SYSCTL_ZERO, |