aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2016-12-15 12:12:54 -0800
committerDavid S. Miller <davem@davemloft.net>2016-12-17 11:48:55 -0500
commitf23bc46c30ca5ef58b8549434899fcbac41b2cfc (patch)
tree390ef0bceeecca2cbad8641150c828fe572565ec /include
parentsctp: sctp_transport_lookup_process should rcu_read_unlock when transport is null (diff)
downloadlinux-dev-f23bc46c30ca5ef58b8549434899fcbac41b2cfc.tar.xz
linux-dev-f23bc46c30ca5ef58b8549434899fcbac41b2cfc.zip
net: xdp: add invalid buffer warning
This adds a warning for drivers to use when encountering an invalid buffer for XDP. For normal cases this should not happen but to catch this in virtual/qemu setups that I may not have expected from the emulation layer having a standard warning is useful. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/filter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h
index 6a1658308612..af8a1804cac6 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -602,6 +602,7 @@ bool bpf_helper_changes_pkt_data(void *func);
struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
const struct bpf_insn *patch, u32 len);
void bpf_warn_invalid_xdp_action(u32 act);
+void bpf_warn_invalid_xdp_buffer(void);
#ifdef CONFIG_BPF_JIT
extern int bpf_jit_enable;