From: Sameeh Jubran <sameeh@daynix.com>
To: qemu-devel@nongnu.org
Cc: Yan Vugenfirer <yan@daynix.com>, Jason Wang <jasowang@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Amnon Ilan <ailan@redhat.com>
Subject: [Qemu-devel] [RFC v2 0/2] Add BPF suuport to Qemu
Date: Mon, 25 Jun 2018 14:07:04 +0300 [thread overview]
Message-ID: <20180625110706.23332-1-sameeh@daynix.com> (raw)
From: Sameeh Jubran <sjubran@redhat.com>
The Berkeley Packet Filter has been in the kernel for a while now and I
think it is time that it is introduced to Qemu. This patch is an
infrastructure for any future usage of the BPF in Qemu.
It is important to note that the tun driver had started supporting using
BPF programs through ioctls (TUNSETSTEERINGEBPF and TUNSETFILTEREBPF).
My plan is to use the bpf support from within virtio-net in order to set
a bpf steering program to the tun device which would allow virtio-net to
support RSS feature https://lists.oasis-open.org/archives/virtio-dev/201805/msg00024.html
Difference from v1:
* Used libbpf library provided by linux
* Added a configure option
* Added a sample patch with demonstrates how to use the libbpf library
from within virtio-net. This patch should not be applied! It is for
demonstration purposes only
The libbpf can be manually installed from the Linux source tree by running make
tools/bpf and make tools/bpf_install from the top level directory.
Please share your thoughts :)
v1 - https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg05307.html
Sameeh Jubran (2):
Add bpf support to qemu
virtio-net: Example Patch for using BPF
MAINTAINERS | 6 +
configure | 46 +
hw/net/Makefile.objs | 4 +
hw/net/virtio-net.c | 4 +
include/standard-headers/linux/libbpf.h | 284 ++++
linux-headers/linux/bpf.h | 2669 +++++++++++++++++++++++++++++++
scripts/update-linux-headers.sh | 11 +-
7 files changed, 3021 insertions(+), 3 deletions(-)
create mode 100644 include/standard-headers/linux/libbpf.h
create mode 100644 linux-headers/linux/bpf.h
--
2.13.6
next reply other threads:[~2018-06-25 11:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 11:07 Sameeh Jubran [this message]
2018-06-25 11:07 ` [Qemu-devel] [RFC v2 1/2] Add bpf support to qemu Sameeh Jubran
2018-06-25 11:07 ` [Qemu-devel] [RFC v2 2/2] virtio-net: Example Patch for using BPF Sameeh Jubran
2018-06-25 11:22 ` Daniel P. Berrangé
2018-06-25 15:29 ` Sameeh Jubran
2018-06-25 11:16 ` [Qemu-devel] [RFC v2 0/2] Add BPF suuport to Qemu Peter Maydell
2018-06-25 11:21 ` Sameeh Jubran
2018-06-25 15:35 ` Daniel P. Berrangé
2018-06-30 18:56 ` no-reply
2018-07-02 5:20 ` no-reply
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=20180625110706.23332-1-sameeh@daynix.com \
--to=sameeh@daynix.com \
--cc=ailan@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yan@daynix.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;
as well as URLs for NNTP newsgroup(s).