|
@@ -656,6 +656,11 @@ void bpf_prog_free(struct bpf_prog *fp)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(bpf_prog_free);
|
|
EXPORT_SYMBOL_GPL(bpf_prog_free);
|
|
|
|
|
|
|
|
+/* Weak definitions of helper functions in case we don't have bpf syscall. */
|
|
|
|
+const struct bpf_func_proto bpf_map_lookup_elem_proto __weak;
|
|
|
|
+const struct bpf_func_proto bpf_map_update_elem_proto __weak;
|
|
|
|
+const struct bpf_func_proto bpf_map_delete_elem_proto __weak;
|
|
|
|
+
|
|
/* To execute LD_ABS/LD_IND instructions __bpf_prog_run() may call
|
|
/* To execute LD_ABS/LD_IND instructions __bpf_prog_run() may call
|
|
* skb_copy_bits(), so provide a weak definition of it for NET-less config.
|
|
* skb_copy_bits(), so provide a weak definition of it for NET-less config.
|
|
*/
|
|
*/
|