Skip to content

RFC Virtio-net: Support RSS

Sameeh Jubran qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Add bpf support to qemuMAINTAINERS configure scripts/update-linux-headers.sh+55 -25 replies
2/6tap: Add support for bpf ioctlsinclude/net/net.h net/tap-bsd.c net/tap-linux.c +6 more+67 -34 replies
3/6vhost-net: Expose vhost_net_get_fdhw/net/vhost_net.c include/hw/virtio/virtio-net.h+3 -12 replies
4/6virtio-net: implement steering mode featurehw/net/virtio-net.c include/hw/virtio/virtio-net.h include/standard-headers/linux/virtio_net.h+116 -72 replies
5/6virtio-net: steering mode: Implement rss supporthw/net/virtio-net.c+105 -172 replies
6/6virtio-net: rss: Add bpf filterhw/net/rss_bpf_insns.h hw/net/rss_tap_bpf.h hw/net/rss_tap_bpf_program.c +1 more+4305 -112 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/6] Virtio-net: Support RSS

From: Sameeh Jubran <[email protected]>

This series implements the Steering Mode feature which was introduced on the virtio-dev list a while ago, which can be found here:
* https://lists.oasis-open.org/archives/virtio-dev/201805/msg00024.html

The first three patches add some infrastructure support that is used in the following three patches.

The ebpf filter doesn't fully work yet as I'm having an issue with the verifier which needs to be fixed.

The patches still need some love as not all of the cases have been handled yet most of the functionality has been implemented.

Please share your thoughts and comments so I'll move forward with sending v1 along with a fully functioning ebpf code.

Sameeh Jubran (6):
Add bpf support to qemu
tap: Add support for bpf ioctls
vhost-net: Expose vhost_net_get_fd
virtio-net: implement steering mode feature
virtio-net: steering mode: Implement rss support
virtio-net: rss: Add bpf filter

 MAINTAINERS                                 |    5 +
 configure                                   |   44 +
 hw/net/rss_bpf_insns.h                      | 3992 +++++++++++++++++++++++++++
 hw/net/rss_tap_bpf.h                        |   37 +
 hw/net/rss_tap_bpf_program.c                |  172 ++
 hw/net/vhost_net.c                          |    2 +-
 hw/net/virtio-net.c                         |  250 +-
 include/hw/virtio/virtio-net.h              |    5 +
 include/net/net.h                           |    3 +-
 include/standard-headers/linux/virtio_net.h |   55 +
 net/tap-bsd.c                               |    5 +
 net/tap-linux.c                             |   29 +-
 net/tap-linux.h                             |    3 +-
 net/tap-solaris.c                           |    5 +
 net/tap-stub.c                              |    5 +
 net/tap.c                                   |    8 +
 net/tap_int.h                               |    1 +
 qapi/net.json                               |   11 +
 scripts/update-linux-headers.sh             |    8 +-
 19 files changed, 4627 insertions(+), 13 deletions(-)
 create mode 100644 hw/net/rss_bpf_insns.h
 create mode 100644 hw/net/rss_tap_bpf.h
 create mode 100644 hw/net/rss_tap_bpf_program.c
Signature · 1 line
2.13.6