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)
commitd9925368a641391f38cd281e67b948e6b6f3bcca
tree8eb3087d8e67417dcc0892908fac9b1921e55b8b
parent9872a4bde31b0b055448e9ac1f4c9ee62d978766
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]