[net-next,0/2] tun: allow to attach eBPF filter
mbox series

Message ID 1514515491-6041-1-git-send-email-jasowang@redhat.com
Headers show
Series
  • tun: allow to attach eBPF filter
Related show

Message

Jason Wang Dec. 29, 2017, 2:44 a.m. UTC
Hi all:

This series tries to implement eBPF socket filter for tun. This could
be used for implementing efficient virtio-net receive filter for
vhost-net.

Thanks

Jason Wang (2):
  tuntap: rename struct tun_steering_prog to struct tun_prog
  tun: allow to attach ebpf socket filter

 drivers/net/tun.c           | 58 ++++++++++++++++++++++++++++++++-------------
 include/uapi/linux/if_tun.h |  1 +
 2 files changed, 43 insertions(+), 16 deletions(-)