mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next V2 0/2] tun: allow to attahc eBPF filter
@ 2018-01-05  3:54 Jason Wang
  2018-01-05  3:54 ` [PATCH net-next V2 1/2] tuntap: rename struct tun_steering_prog to struct tun_prog Jason Wang
  2018-01-05  3:54 ` [PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter Jason Wang
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Wang @ 2018-01-05  3:54 UTC (permalink / raw)
  To: netdev, linux-kernel; +Cc: mst, willemb, Jason Wang

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

Changes from V1:
- trim more bytes if vlan tag is existed to make sure the packet
  length does not exceed what is allowed by the filter.

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

 drivers/net/tun.c           | 71 ++++++++++++++++++++++++++++++++-------------
 include/uapi/linux/if_tun.h |  1 +
 2 files changed, 52 insertions(+), 20 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-08  3:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-05  3:54 [PATCH net-next V2 0/2] tun: allow to attahc eBPF filter Jason Wang
2018-01-05  3:54 ` [PATCH net-next V2 1/2] tuntap: rename struct tun_steering_prog to struct tun_prog Jason Wang
2018-01-05  3:54 ` [PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter Jason Wang
2018-01-05 16:21   ` Willem de Bruijn
2018-01-08  3:55     ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®