mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: willemb@google.com, Jason Wang <jasowang@redhat.com>
Subject: [PATCH net-next V3 0/2] tun: allow to attach eBPF filter
Date: Tue, 16 Jan 2018 16:31:00 +0800	[thread overview]
Message-ID: <1516091462-13472-1-git-send-email-jasowang@redhat.com> (raw)

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(-)

-- 
2.7.4

             reply	other threads:[~2018-01-16  8:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-16  8:31 Jason Wang [this message]
2018-01-16  8:31 ` [PATCH net-next V3 1/2] tuntap: rename struct tun_steering_prog to struct tun_prog Jason Wang
2018-01-16  8:31 ` [PATCH net-next V3 2/2] tun: allow to attach ebpf socket filter Jason Wang
2018-01-17 20:38 ` [PATCH net-next V3 0/2] tun: allow to attach eBPF filter David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1516091462-13472-1-git-send-email-jasowang@redhat.com \
    --to=jasowang@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®