mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
bpf, sk_msg: Add get socket storage helpers
Add helpers to use local socket storage. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/159033907577.12355.14740125020572756560.stgit@john-Precision-5820-Tower Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
f470378c75
commit
13d70f5a5e
3 changed files with 19 additions and 0 deletions
|
@ -3645,6 +3645,8 @@ struct sk_msg_md {
|
|||
__u32 remote_port; /* Stored in network byte order */
|
||||
__u32 local_port; /* stored in host byte order */
|
||||
__u32 size; /* Total size of sk_msg */
|
||||
|
||||
__bpf_md_ptr(struct bpf_sock *, sk); /* current socket */
|
||||
};
|
||||
|
||||
struct sk_reuseport_md {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue