aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-01-16 03:31:02 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-17 15:32:10 -0500
commitaff3d70a07fffc0abb53663e4a4acb059d2f36af (patch)
tree6274d9253d5cd93105e5759e616212876ceb2ec9 /include
parentcd5681d7d8903bf43a571aaf96cf6d2e2e00118c (diff)
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 @@
58#define TUNSETVNETBE _IOW('T', 222, int) 58#define TUNSETVNETBE _IOW('T', 222, int)
59#define TUNGETVNETBE _IOR('T', 223, int) 59#define TUNGETVNETBE _IOR('T', 223, int)
60#define TUNSETSTEERINGEBPF _IOR('T', 224, int) 60#define TUNSETSTEERINGEBPF _IOR('T', 224, int)
61#define TUNSETFILTEREBPF _IOR('T', 225, int)
61 62
62/* TUNSETIFF ifr flags */ 63/* TUNSETIFF ifr flags */
63#define IFF_TUN 0x0001 64#define IFF_TUN 0x0001