|
@@ -2972,6 +2972,12 @@ void bpf_warn_invalid_xdp_action(u32 act)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_action);
|
|
EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_action);
|
|
|
|
|
|
|
|
+void bpf_warn_invalid_xdp_buffer(void)
|
|
|
|
+{
|
|
|
|
+ WARN_ONCE(1, "Illegal XDP buffer encountered, expect throughput degradation\n");
|
|
|
|
+}
|
|
|
|
+EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_buffer);
|
|
|
|
+
|
|
static u32 sk_filter_convert_ctx_access(enum bpf_access_type type, int dst_reg,
|
|
static u32 sk_filter_convert_ctx_access(enum bpf_access_type type, int dst_reg,
|
|
int src_reg, int ctx_off,
|
|
int src_reg, int ctx_off,
|
|
struct bpf_insn *insn_buf,
|
|
struct bpf_insn *insn_buf,
|