Re: [PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter

2018-01-07 Thread Jason Wang
On 2018年01月06日 00:21, Willem de Bruijn wrote: On Fri, Jan 5, 2018 at 4:54 AM, Jason Wang wrote: 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 a

Re: [PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter

2018-01-05 Thread Willem de Bruijn
On Fri, Jan 5, 2018 at 4:54 AM, Jason Wang wrote: > 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

[PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter

2018-01-04 Thread Jason Wang
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 --- drivers/net/tun.c | 39 ++