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)
commitbb56d4449d8b8de1f22a07f007bb91cb30fcc7cc
treef267b7163aa103e842705e765a2cf726b0a7f6a4
parent91b5b21c7c16899abb37f4a9e4388b4e9aae0b9d
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]