Commit edf2e1d2 authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski

net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down

skip_notify_on_dev_down ctl table expects this field
to be an int (4 bytes), not a bool (1 byte).

Because proc_dou8vec_minmax() was added in 5.13,
this patch converts skip_notify_on_dev_down to an int.

Following patch then converts the field to u8 and use proc_dou8vec_minmax().

Fixes: 7c6bb7d2 ("net/ipv6: Add knob to skip DELROUTE message on device down")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Acked-by: default avatarMatthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 37a826d8
...@@ -53,7 +53,7 @@ struct netns_sysctl_ipv6 { ...@@ -53,7 +53,7 @@ struct netns_sysctl_ipv6 {
int seg6_flowlabel; int seg6_flowlabel;
u32 ioam6_id; u32 ioam6_id;
u64 ioam6_id_wide; u64 ioam6_id_wide;
bool skip_notify_on_dev_down; int skip_notify_on_dev_down;
u8 fib_notify_on_flag_change; u8 fib_notify_on_flag_change;
u8 icmpv6_error_anycast_as_unicast; u8 icmpv6_error_anycast_as_unicast;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment