Commit ef62c0ae authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

net/ipv6: convert skip_notify_on_dev_down sysctl to u8



Save a bit a space, and could help future sysctls to
use the same pattern.

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 edf2e1d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ struct netns_sysctl_ipv6 {
	int seg6_flowlabel;
	u32 ioam6_id;
	u64 ioam6_id_wide;
	int skip_notify_on_dev_down;
	u8 skip_notify_on_dev_down;
	u8 fib_notify_on_flag_change;
	u8 icmpv6_error_anycast_as_unicast;
};
+2 −2
Original line number Diff line number Diff line
@@ -6412,9 +6412,9 @@ static struct ctl_table ipv6_route_table_template[] = {
	{
		.procname	=	"skip_notify_on_dev_down",
		.data		=	&init_net.ipv6.sysctl.skip_notify_on_dev_down,
		.maxlen		=	sizeof(int),
		.maxlen		=	sizeof(u8),
		.mode		=	0644,
		.proc_handler	=	proc_dointvec_minmax,
		.proc_handler	=	proc_dou8vec_minmax,
		.extra1		=	SYSCTL_ZERO,
		.extra2		=	SYSCTL_ONE,
	},