]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6a6981cef54554ac45020b98761f819a7b0ae8d
tree33d5d9ecfa19d4cc4752a888abf0b03ff42881c4
parente34085d78cef9a6fdb6432697a4be3db415292cf
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