bpf: Sample BPF program to set initial cwnd
authorLawrence Brakmo <brakmo@fb.com>
Sat, 1 Jul 2017 03:02:52 +0000 (20:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 23:15:14 +0000 (16:15 -0700)
commit7bc62e28547946ec6e47009730ee1385819e6999
tree160a15867876634565a91f33bf4a02fef0bc4e7c
parentfc7478103c84af437ca3bfae71a82631f770bf7e
bpf: Sample BPF program to set initial cwnd

Sample BPF program that assumes hosts are far away (i.e. large RTTs)
and sets initial cwnd and initial receive window to 40 packets,
send and receive buffers to 1.5MB.

In practice there would be a test to insure the hosts are actually
far enough away.

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