-
- Downloads
Project 'drm/intel' was moved to 'drm/i915/kernel'. Please update any links and bookmarks that may still have the old path.
bpf: Add bpf_skc_to_udp6_sock() helper
The helper is used in tracing programs to cast a socket pointer to a udp6_sock pointer. The return value could be NULL if the casting is illegal. Signed-off-by:Yonghong Song <yhs@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Acked-by:
Martin KaFai Lau <kafai@fb.com> Cc: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/bpf/20200623230815.3988481-1-yhs@fb.com
Showing
- include/linux/bpf.h 1 addition, 0 deletionsinclude/linux/bpf.h
- include/uapi/linux/bpf.h 8 additions, 1 deletioninclude/uapi/linux/bpf.h
- kernel/trace/bpf_trace.c 2 additions, 0 deletionskernel/trace/bpf_trace.c
- net/core/filter.c 22 additions, 0 deletionsnet/core/filter.c
- scripts/bpf_helpers_doc.py 2 additions, 0 deletionsscripts/bpf_helpers_doc.py
- tools/include/uapi/linux/bpf.h 8 additions, 1 deletiontools/include/uapi/linux/bpf.h
Loading
Please register or sign in to comment