History

bpf: support cloning sk storage on accept()

Add new helper bpf_sk_storage_clone which optionally clones sk storage and call it from sk_clone_lock.

Stanislav Fomichev committed 7 years ago

Commit 8f51dfc1 parent b0e47014 files · +120 −6Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -337,6 +337,9 @@ enum bpf_attach_type { · 336 unmodified lines
337337 #define BPF_F_RDONLY_PROG (1U << 7)
338338 #define BPF_F_WRONLY_PROG (1U << 8)
339339
340+/* Clone map from listener for newly accepted socket */
341+#define BPF_F_CLONE (1U << 9)
342+
340343 /* flags for BPF_PROG_QUERY */
341344 #define BPF_F_QUERY_EFFECTIVE (1U << 0)
342345