mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
bpf, sk_msg: Add get socket storage helpers
Add helpers to use local socket storage. Signed-off-by: John Fastabend <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/159033907577.12355.14740125020572756560.stgit@john-Precision-5820-Tower Signed-off-by: Alexei Starovoitov <[email protected]>
This commit is contained in:
committed by
Alexei Starovoitov
parent
f470378c75
commit
13d70f5a5e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user