From: Eric Dumazet Date: Thu, 1 Jun 2023 16:04:44 +0000 (+0000) Subject: net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down X-Git-Tag: v6.6.7~2710^2~32^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edf2e1d2019b2730d6076dbe4c040d37d7c10bbe;p=platform%2Fkernel%2Flinux-starfive.git 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: 7c6bb7d2faaf ("net/ipv6: Add knob to skip DELROUTE message on device down") Signed-off-by: Eric Dumazet Reviewed-by: David Ahern Acked-by: Matthieu Baerts Signed-off-by: Jakub Kicinski --- diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 3cceb3e..d44b2ee4 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h @@ -53,7 +53,7 @@ struct netns_sysctl_ipv6 { int seg6_flowlabel; u32 ioam6_id; u64 ioam6_id_wide; - bool skip_notify_on_dev_down; + int skip_notify_on_dev_down; u8 fib_notify_on_flag_change; u8 icmpv6_error_anycast_as_unicast; };