summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2019-02-09 23:22:23 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-02-10 19:46:17 -0800
commit9b1f3d6e5af295a72deb5e3f04db07a6a58be72e (patch)
treeed930951a91c0ebc2d278c6f50e19955cee9d714 /kernel
parentaa65d6960a98fc15a96ce361b26e9fd55c9bccc5 (diff)
downloadlinux-stable-9b1f3d6e5af295a72deb5e3f04db07a6a58be72e.tar.gz
linux-stable-9b1f3d6e5af295a72deb5e3f04db07a6a58be72e.tar.bz2
linux-stable-9b1f3d6e5af295a72deb5e3f04db07a6a58be72e.zip
bpf: Refactor sock_ops_convert_ctx_access
The next patch will introduce a new "struct bpf_tcp_sock" which exposes the same tcp_sock's fields already exposed in "struct bpf_sock_ops". This patch refactor the existing convert_ctx_access() codes for "struct bpf_sock_ops" to get them ready to be reused for "struct bpf_tcp_sock". The "rtt_min" is not refactored in this patch because its handling is different from other fields. The SOCK_OPS_GET_TCP_SOCK_FIELD is new. All other SOCK_OPS_XXX_FIELD changes are code move only. Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions