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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -58,6 +58,7 @@ · 57 unmodified lines | |||
| 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 |