linux/arch/alpha
Pavel Tikhomirov 04190bf894 sock: allow reading and changing sk_userlocks with setsockopt
SOCK_SNDBUF_LOCK and SOCK_RCVBUF_LOCK flags disable automatic socket
buffers adjustment done by kernel (see tcp_fixup_rcvbuf() and
tcp_sndbuf_expand()). If we've just created a new socket this adjustment
is enabled on it, but if one changes the socket buffer size by
setsockopt(SO_{SND,RCV}BUF*) it becomes disabled.

CRIU needs to call setsockopt(SO_{SND,RCV}BUF*) on each socket on
restore as it first needs to increase buffer sizes for packet queues
restore and second it needs to restore back original buffer sizes. So
after CRIU restore all sockets become non-auto-adjustable, which can
decrease network performance of restored applications significantly.

CRIU need to be able to restore sockets with enabled/disabled adjustment
to the same state it was before dump, so let's add special setsockopt
for it.

Let's also export SOCK_SNDBUF_LOCK and SOCK_RCVBUF_LOCK flags to uAPI so
that using these interface one can reenable automatic socket buffer
adjustment on their sockets.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-04 12:52:03 +01:00
..
boot alpha: fix spelling mistakes 2021-07-25 22:33:04 -07:00
configs alpha: defconfig: add necessary configs for boot testing 2021-07-25 22:33:03 -07:00
include sock: allow reading and changing sk_userlocks with setsockopt 2021-08-04 12:52:03 +01:00
kernel alpha: register early reserved memory in memblock 2021-07-28 20:49:18 -07:00
lib alpha: csum_partial_copy.c: add function prototypes from <net/checksum.h> 2021-05-06 19:24:11 -07:00
math-emu alpha: fp_emul: avoid init/cleanup_module names 2021-07-25 22:33:04 -07:00
mm alpha: remove DISCONTIGMEM and NUMA 2021-06-29 10:53:55 -07:00
Kbuild alpha: move core-y in arch/alpha/Makefile to arch/alpha/Kbuild 2021-05-26 23:11:47 +09:00
Kconfig libata-5.14-2021-07-30 2021-07-30 10:56:47 -07:00
Kconfig.debug treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile alpha: move core-y in arch/alpha/Makefile to arch/alpha/Kbuild 2021-05-26 23:11:47 +09:00