Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3migration for review #1

Open
wants to merge 8 commits into
base: temp
Choose a base branch
from
Open

V3migration for review #1

wants to merge 8 commits into from

Commits on Jan 10, 2021

  1. net/tap: Added TUNSETSTEERINGEBPF code.

    Additional code that will be used for eBPF setting steering routine.
    AndrewAtDaynix committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    bf77f10 View commit details
    Browse the repository at this point in the history
  2. net: Added SetSteeringEBPF method for NetClientState.

    For now, that method supported only by Linux TAP.
    Linux TAP uses TUNSETSTEERINGEBPF ioctl.
    AndrewAtDaynix committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    1a30cd2 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. ebpf: Added eBPF RSS program.

    RSS program and Makefile to build it.
    The bpftool used to generate '.h' file.
    The data in that file may be loaded by libbpf.
    EBPF compilation is not required for building qemu.
    You can use Makefile if you need to regenerate rss.bpf.skeleton.h.
    
    Signed-off-by: Yuri Benditovich <[email protected]>
    AndrewAtDaynix committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    ce02ac2 View commit details
    Browse the repository at this point in the history
  2. ebpf: Added eBPF RSS loader.

    Added function that loads RSS eBPF program.
    Added stub functions for RSS eBPF loader.
    Added meson and configuration options.
    
    By default, eBPF feature enabled if libbpf is present in the build system.
    libbpf checked in configuration shell script and meson script.
    
    Signed-off-by: Yuri Benditovich <[email protected]>
    AndrewAtDaynix committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    a001b46 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2021

  1. net: add ability to hide (disable) vhost_net

    if 'vhost_net_disabled' in the NetClientState of the
    net device, get_vhost_net for TAP returns NULL. Network adapters
    can use this ability to hide the vhost_net temporary between
    resets in case some active features contradict with vhost.
    
    Signed-off-by: Yuri Benditovich <[email protected]>
    ybendito committed Jan 24, 2021
    Configuration menu
    Copy the full SHA
    d3b2246 View commit details
    Browse the repository at this point in the history
  2. virtio-net: Added eBPF RSS to virtio-net.

    When RSS is enabled the device tries to load the eBPF program
    to select RX virtqueue in the TUN. If eBPF can be loaded
    the RSS will function also with vhost (works with kernel 5.8 and later).
    Software RSS is used as a fallback with vhost=off when eBPF can't be loaded
    or when hash population requested by the guest.
    In case the RSS feature is present and acked by the guest but the ebpf
    due to any reason can't be used with vhost, the virtio-net disables
    vhost till next reset (or migration) and uses userspace virtio.
    The same in case the hash report feature is acked by the guest (the
    vhost can't support this feature currently).
    
    Signed-off-by: Yuri Benditovich <[email protected]>
    AndrewAtDaynix authored and ybendito committed Jan 24, 2021
    Configuration menu
    Copy the full SHA
    4d0508a View commit details
    Browse the repository at this point in the history
  3. docs: Added eBPF documentation.

    Also, added maintainers information.
    
    Signed-off-by: Yuri Benditovich <[email protected]>
    AndrewAtDaynix authored and ybendito committed Jan 24, 2021
    Configuration menu
    Copy the full SHA
    fde4312 View commit details
    Browse the repository at this point in the history
  4. not for delivery: testing additions for virtio-net

    Signed-off-by: Yuri Benditovich <[email protected]>
    ybendito committed Jan 24, 2021
    Configuration menu
    Copy the full SHA
    8cbb426 View commit details
    Browse the repository at this point in the history