diff options
author | Jason Wang <jasowang@redhat.com> | 2018-01-16 16:31:02 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-17 15:32:10 -0500 |
commit | aff3d70a07fffc0abb53663e4a4acb059d2f36af (patch) | |
tree | 6274d9253d5cd93105e5759e616212876ceb2ec9 /include/uapi/linux/if_tun.h | |
parent | cd5681d7d8903bf43a571aaf96cf6d2e2e00118c (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/uapi/linux/if_tun.h')
-rw-r--r-- | include/uapi/linux/if_tun.h | 1 |
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 |