Commit 80c5bd7d authored by Eric Dumazet's avatar Eric Dumazet Committed by sanglipeng
Browse files

sysctl: add proc_dou8vec_minmax()

stable inclusion
from stable-v5.10.178
commit 389dab6142d742f91010f38de0f1f2f440b97e1b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=389dab6142d742f91010f38de0f1f2f440b97e1b



--------------------------------

[ Upstream commit cb944413 ]

Networking has many sysctls that could fit in one u8.

This patch adds proc_dou8vec_minmax() for this purpose.

Note that the .extra1 and .extra2 fields are pointing
to integers, because it makes conversions easier.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: dc5110c2 ("tcp: restrict net.ipv4.tcp_app_win")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 9ec309b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment