bpf: Add bpf_dctcp example
authorMartin KaFai Lau <kafai@fb.com>
Thu, 9 Jan 2020 00:35:17 +0000 (16:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2020 16:46:18 +0000 (08:46 -0800)
commit09903869f69f37fd7a465183545b5739c6274654
treec07bf1d77af64ba689ace342512ccbbc0c2d6a00
parent590a0088825016ca7ec53f1aef7e84e1211778d8
bpf: Add bpf_dctcp example

This patch adds a bpf_dctcp example.  It currently does not do
no-ECN fallback but the same could be done through the cgrp2-bpf.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200109003517.3856825-1-kafai@fb.com
tools/testing/selftests/bpf/bpf_tcp_helpers.h [new file with mode: 0644]
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_dctcp.c [new file with mode: 0644]