]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
bpf: Adds support for setting window clamp
authorPrankur gupta <prankgup@fb.com>
Wed, 2 Dec 2020 21:31:51 +0000 (13:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Dec 2020 01:23:24 +0000 (17:23 -0800)
commitcb81110997d1f5097f29dd8e49d32a1fc55cbf86
tree9e4266c79d35395cbccd79f7eb7cf4c27eaef2b9
parent2faa7328f53b36b2b171501154bba3fd66d8f5da
bpf: Adds support for setting window clamp

Adds a new bpf_setsockopt for TCP sockets, TCP_BPF_WINDOW_CLAMP,
which sets the maximum receiver window size. It will be useful for
limiting receiver window based on RTT.

Signed-off-by: Prankur gupta <prankgup@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201202213152.435886-2-prankgup@fb.com
include/net/tcp.h
net/core/filter.c
net/ipv4/tcp.c