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 | 58 | #define TUNSETVNETBE _IOW('T', 222, int) |
| 59 | 59 | #define TUNGETVNETBE _IOR('T', 223, int) |
| 60 | 60 | #define TUNSETSTEERINGEBPF _IOR('T', 224, int) |
| 61 | +#define TUNSETFILTEREBPF _IOR('T', 225, int) | |
| 61 | 62 | |
| 62 | 63 | /* TUNSETIFF ifr flags */ |
| 63 | 64 | #define IFF_TUN 0x0001 |