]> 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)
commit281b9aefb35c6aa4f29500224e527a3f32934c16
tree8eb3087d8e67417dcc0892908fac9b1921e55b8b
parent7ba5affd3b0c8d144afc62e2397034d821afb8a4
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]