summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLawrence Brakmo2017-07-01 05:02:53 +0200
committerDavid S. Miller2017-07-02 01:15:14 +0200
commit13bf96411ad2bd162a4f9470d58c6bb579c96e21 (patch)
tree33d5d9ecfa19d4cc4752a888abf0b03ff42881c4 /include/uapi/linux
parentbpf: Sample BPF program to set initial cwnd (diff)
downloadkernel-qcow2-linux-13bf96411ad2bd162a4f9470d58c6bb579c96e21.tar.gz
kernel-qcow2-linux-13bf96411ad2bd162a4f9470d58c6bb579c96e21.tar.xz
kernel-qcow2-linux-13bf96411ad2bd162a4f9470d58c6bb579c96e21.zip
bpf: Adds support for setting sndcwnd clamp
Adds a new bpf_setsockopt for TCP sockets, TCP_BPF_SNDCWND_CLAMP, which sets the initial congestion window. It is useful to limit the sndcwnd when the host are close to each other (small RTT). Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/bpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 32755b538652..a6a91e5e96fc 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -784,5 +784,6 @@ enum {
};
#define TCP_BPF_IW 1001 /* Set TCP initial congestion window */
+#define TCP_BPF_SNDCWND_CLAMP 1002 /* Set sndcwnd_clamp */
#endif /* _UAPI__LINUX_BPF_H__ */