aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-01-16 16:31:02 +0800
committerDavid S. Miller <davem@davemloft.net>2018-01-17 15:32:10 -0500
commitaff3d70a07fffc0abb53663e4a4acb059d2f36af (patch)
tree6274d9253d5cd93105e5759e616212876ceb2ec9 /include
parenttuntap: rename struct tun_steering_prog to struct tun_prog (diff)
downloadlinux-dev-aff3d70a07fffc0abb53663e4a4acb059d2f36af.tar.xz
linux-dev-aff3d70a07fffc0abb53663e4a4acb059d2f36af.zip
tun: allow to attach ebpf socket filter
This patch allows userspace to attach eBPF filter to tun. This will allow to implement VM dataplane filtering in a more efficient way compared to cBPF filter by allowing either qemu or libvirt to attach eBPF filter to tun. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/if_tun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h
index fb38c1797131..ee432cd3018c 100644
--- a/include/uapi/linux/if_tun.h
+++ b/include/uapi/linux/if_tun.h
@@ -58,6 +58,7 @@
#define TUNSETVNETBE _IOW('T', 222, int)
#define TUNGETVNETBE _IOR('T', 223, int)
#define TUNSETSTEERINGEBPF _IOR('T', 224, int)
+#define TUNSETFILTEREBPF _IOR('T', 225, int)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001