]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Sample BPF program to set buffer sizes
authorLawrence Brakmo <brakmo@fb.com>
Sat, 1 Jul 2017 03:02:48 +0000 (20:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 23:15:14 +0000 (16:15 -0700)
commit847c6b79a0ca26f2aa3a727834d8def9c9103caa
tree8eb3087d8e67417dcc0892908fac9b1921e55b8b
parenteb2289b689e002c257678dd84fdbe7cc0770d7c4
bpf: Sample BPF program to set buffer sizes

This patch contains a BPF program to set initial receive window to
40 packets and send and receive buffers to 1.5MB. This would usually
be done after doing appropriate checks that indicate the hosts are
far enough away (i.e. large RTT).

Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile
samples/bpf/tcp_bufs_kern.c [new file with mode: 0644]