]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add bpf_sk_storage support to bpf_tcp_ca
authorMartin KaFai Lau <kafai@fb.com>
Fri, 20 Mar 2020 15:21:01 +0000 (08:21 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 Mar 2020 19:51:55 +0000 (20:51 +0100)
commit4fdda16bcee1c2a2c9ee658866db0eda4aaf1f5f
tree6560d904aeea7c1aeb23f3a2cff643c28a9eeaca
parent599b8a9d35f3c5dab25cd47659b6eb719763915d
bpf: Add bpf_sk_storage support to bpf_tcp_ca

This patch adds bpf_sk_storage_get() and bpf_sk_storage_delete()
helper to the bpf_tcp_ca's struct_ops.  That would allow
bpf-tcp-cc to:
1) share sk private data with other bpf progs.
2) use bpf_sk_storage as a private storage for a bpf-tcp-cc
   if the existing icsk_ca_priv is not big enough.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200320152101.2169498-1-kafai@fb.com
net/ipv4/bpf_tcp_ca.c