diff options
| author | 2020-12-03 17:23:24 -0800 | |
|---|---|---|
| committer | 2020-12-03 17:25:24 -0800 | |
| commit | cadd64807cd83e2213dcb70f93d12d978c02b5fa (patch) | |
| tree | b1c7a0f08e572ddb25c8016d65cb2ee588b1c2ea /include | |
| parent | samples/bpf: Fix spelling mistake "recieving" -> "receiving" (diff) | |
| parent | selftests/bpf: Add Userspace tests for TCP_WINDOW_CLAMP (diff) | |
Merge branch 'Add support to set window_clamp from bpf setsockops'
Prankur gupta says:
====================
This patch contains support to set tcp window_field field from bpf setsockops.
v2: Used TCP_WINDOW_CLAMP setsockopt logic for bpf_setsockopt (review comment addressed)
v3: Created a common function for duplicated code (review comment addressed)
v4: Removing logic to pass struct sock and struct tcp_sock together (review comment addressed)
====================
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/tcp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 4aba0f069b05..347a76f176b4 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -406,6 +406,7 @@ void tcp_syn_ack_timeout(const struct request_sock *req); int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, int flags, int *addr_len); int tcp_set_rcvlowat(struct sock *sk, int val); +int tcp_set_window_clamp(struct sock *sk, int val); void tcp_data_ready(struct sock *sk); #ifdef CONFIG_MMU int tcp_mmap(struct file *file, struct socket *sock, |
