Files
android_kernel_fxtec_sm6115/include/uapi/linux
Martin KaFai Lau 41fd8030a3 UPSTREAM: 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.

Change-Id: Ia2747b017398c8dcc4454118dba03e71bdeba1dc
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200925000415.3857374-1-kafai@fb.com
2025-08-28 03:28:01 +03:00
..
2020-06-07 13:17:54 +02:00
2020-04-24 15:19:09 -07:00
2024-04-16 03:13:08 +03:00
2020-06-17 06:00:22 +05:30
2021-06-28 10:09:35 +05:30
2020-07-07 12:09:16 +05:30
2020-03-26 10:50:04 +05:30
2020-01-09 15:11:34 -08:00
2023-09-23 10:48:08 +02:00