aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sock_fields.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2020-09-25 00:04:15 +0000
committerAlexei Starovoitov <[email protected]>2020-09-25 20:58:02 +0000
commit27e5203bd9c5cc6d54dcac48c3027f3f04522b8b (patch)
tree9ad54aac549bbb1ae4cfc87b1d0c69019ed4a686 /tools/testing/selftests/bpf/prog_tests/sock_fields.c
parentbpf: Change bpf_tcp_*_syncookie to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON (diff)
downloadkernel-27e5203bd9c5cc6d54dcac48c3027f3f04522b8b.tar.gz
kernel-27e5203bd9c5cc6d54dcac48c3027f3f04522b8b.zip
bpf: Change bpf_sk_assign to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON
This patch changes the bpf_sk_assign() to take ARG_PTR_TO_BTF_ID_SOCK_COMMON such that they will work with the pointer returned by the bpf_skc_to_*() helpers also. The bpf_sk_lookup_assign() is taking ARG_PTR_TO_SOCKET_"OR_NULL". Meaning it specifically takes a literal NULL. ARG_PTR_TO_BTF_ID_SOCK_COMMON does not allow a literal NULL, so another ARG type is required for this purpose and another follow-up patch can be used if there is such need. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sock_fields.c')
0 files changed, 0 insertions, 0 deletions