bpf: Add BPF_FUNC_tcp_send_ack helper
authorMartin KaFai Lau <kafai@fb.com>
Thu, 9 Jan 2020 00:45:51 +0000 (16:45 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2020 16:46:18 +0000 (08:46 -0800)
commit206057fe020ac5c037d5e2dd6562a9bd216ec765
tree4e4b87e6b400b03b472793c007485d5df57584a9
parent0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2
bpf: Add BPF_FUNC_tcp_send_ack helper

Add a helper to send out a tcp-ack.  It will be used in the later
bpf_dctcp implementation that requires to send out an ack
when the CE state changed.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200109004551.3900448-1-kafai@fb.com
include/uapi/linux/bpf.h
net/ipv4/bpf_tcp_ca.c