bpf: Adds support for setting sndcwnd clamp
authorLawrence Brakmo <brakmo@fb.com>
Sat, 1 Jul 2017 03:02:53 +0000 (20:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 23:15:14 +0000 (16:15 -0700)
commit13bf96411ad2bd162a4f9470d58c6bb579c96e21
tree33d5d9ecfa19d4cc4752a888abf0b03ff42881c4
parent7bc62e28547946ec6e47009730ee1385819e6999
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>
include/uapi/linux/bpf.h
net/core/filter.c