summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorLawrence Brakmo2017-07-01 05:02:51 +0200
committerDavid S. Miller2017-07-02 01:15:14 +0200
commitfc7478103c84af437ca3bfae71a82631f770bf7e (patch)
tree1206a0518c692212f01c133a8aac0c9385946fc6 /include/uapi/linux/bpf.h
parentbpf: Sample BPF program to set congestion control (diff)
downloadkernel-qcow2-linux-fc7478103c84af437ca3bfae71a82631f770bf7e.tar.gz
kernel-qcow2-linux-fc7478103c84af437ca3bfae71a82631f770bf7e.tar.xz
kernel-qcow2-linux-fc7478103c84af437ca3bfae71a82631f770bf7e.zip
bpf: Adds support for setting initial cwnd
Adds a new bpf_setsockopt for TCP sockets, TCP_BPF_IW, which sets the initial congestion window. This can be used when the hosts are far apart (large RTTs) and it is safe to start with a large inital cwnd. Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r--include/uapi/linux/bpf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index cc4725982bd8..32755b538652 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -783,4 +783,6 @@ enum {
*/
};
+#define TCP_BPF_IW 1001 /* Set TCP initial congestion window */
+
#endif /* _UAPI__LINUX_BPF_H__ */