aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/bpf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index 30bfd331882a..280a315de8d6 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -103,6 +103,9 @@ struct bpf_verifier_ops {
103 * with 'type' (read or write) is allowed 103 * with 'type' (read or write) is allowed
104 */ 104 */
105 bool (*is_valid_access)(int off, int size, enum bpf_access_type type); 105 bool (*is_valid_access)(int off, int size, enum bpf_access_type type);
106
107 u32 (*convert_ctx_access)(int dst_reg, int src_reg, int ctx_off,
108 struct bpf_insn *insn);
106}; 109};
107 110
108struct bpf_prog_type_list { 111struct bpf_prog_type_list {
@@ -133,7 +136,7 @@ struct bpf_map *bpf_map_get(struct fd f);
133void bpf_map_put(struct bpf_map *map); 136void bpf_map_put(struct bpf_map *map);
134 137
135/* verify correctness of eBPF program */ 138/* verify correctness of eBPF program */
136int bpf_check(struct bpf_prog *fp, union bpf_attr *attr); 139int bpf_check(struct bpf_prog **fp, union bpf_attr *attr);
137#else 140#else
138static inline void bpf_register_prog_type(struct bpf_prog_type_list *tl) 141static inline void bpf_register_prog_type(struct bpf_prog_type_list *tl)
139{ 142{