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

Sample BPF program that sets congestion control to dctcp when both hosts
are within the same datacenter. In this example that is assumed to be
when they have the first 5.5 bytes of their IPv6 address are the same.

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