Add new helper bpf_sk_storage_clone which optionally clones sk storage and call it from sk_clone_lock.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -337,6 +337,9 @@ enum bpf_attach_type { · 336 unmodified lines | ||
| 337 | 337 | #define BPF_F_RDONLY_PROG (1U << 7) |
| 338 | 338 | #define BPF_F_WRONLY_PROG (1U << 8) |
| 339 | 339 | |
| 340 | +/* Clone map from listener for newly accepted socket */ | |
| 341 | +#define BPF_F_CLONE (1U << 9) | |
| 342 | + | |
| 340 | 343 | /* flags for BPF_PROG_QUERY */ |
| 341 | 344 | #define BPF_F_QUERY_EFFECTIVE (1U << 0) |
| 342 | 345 | |