Skip to content

tun: allow to attach eBPF filter

Jason Wang lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- fix typo
- remove unnecessary double check

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tuntap: rename struct tun_steering_prog to struct tun_progdrivers/net/tun.c+16 -160 replies
2/2tun: allow to attach ebpf socket filterdrivers/net/tun.c include/uapi/linux/if_tun.h+35 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next V3 0/2] tun: allow to attach eBPF filter

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 V2:
- fix typo
- remove unnecessary double check

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           | 70 ++++++++++++++++++++++++++++++++-------------
 include/uapi/linux/if_tun.h |  1 +
 2 files changed, 51 insertions(+), 20 deletions(-)
Signature · 1 line
2.7.4