Bug 1865773

Summary: [RFE] Use eBPF for RSS support on tun level
Product: Red Hat Enterprise Linux 9 Reporter: ybendito
Component: qemu-kvmAssignee: ybendito
qemu-kvm sub component: Networking QA Contact: Lei Yang <leiyang>
Status: CLOSED MIGRATED Docs Contact:
Severity: unspecified    
Priority: unspecified CC: ailan, chayang, jinzhao, juzhang, leiyang, lvivier, mdean, virt-maint, yalzhang, yvugenfi
Version: unspecifiedKeywords: FutureFeature, MigratedToJIRA, Reopened, Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 13:38:02 UTC Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1408902    

Description ybendito 2020-08-04 06:51:25 UTC
Description of extension:
Currently in case of multiple vqueues in virtio-net the tun driver in the kernel is responsible for the receive steering. It maintains lookup table of TCPIP header hashes for transmitted packets, calculates hash for received packets and decides on RX queue to place the packet in. As now QEMU is aware of RSS settings of Windows quest, it can provide eBPF to tun driver to use it for faster decision of receive queue according to RSS settings.

Comment 3 John Ferlan 2021-09-09 12:54:26 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.

Comment 5 RHEL Program Management 2022-02-04 07:27:13 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 8 Lei Yang 2022-02-07 08:03:28 UTC
Thanks for Yuri Update. Based on Comment 7, reopened this bug.

Comment 16 Laurent Vivier 2023-02-24 08:17:18 UTC
Yuri,

what is the state of this BZ?

Thanks

Comment 17 ybendito 2023-02-26 09:33:58 UTC
(In reply to Laurent Vivier from comment #16)
> Yuri,
> 
> what is the state of this BZ?
> 
> Thanks

Support is added to QEMU, so the QEMU is able to use RSS with EBPF (i.e. also vhost=on) from the command line with root privileges.
Now we're submitting patches to QEMU and libvirt to make it possible to use this mode when qemu runs under libvirt.
Another patches are submitted to fix EBPF functionality with libbpf 1.1

Comment 18 RHEL Program Management 2023-04-30 07:28:11 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 19 Lei Yang 2023-08-10 07:29:36 UTC
Hello Yuri

Is there still plan to fix this problem on the rhel 9.3? If not, could you please help reset the ITR to 9.4.0? Thanks in advance.

Thanks
Lei

Comment 20 Lei Yang 2023-08-10 09:23:27 UTC
(In reply to Lei Yang from comment #19)
> Hello Yuri
> 
> Is there still plan to fix this problem on the rhel 9.3? If not, could you
> please help reset the ITR to 9.4.0? Thanks in advance.

Because of QE noticed the following upstream patch looks like made to fix current bugs, but they has not been merge into upstream master. So from the QE's perspective this bug should be move to next release, please correct me if I'm wrong.

Commits ID:
ebpf: Added eBPF initialization by fds and map update.
virtio-net: Added property to load eBPF RSS with fds.
ebpf: Added declaration/initialization routines.
qmp: Added new command to retrieve eBPF blob.
> 
> Thanks
> Lei

Comment 21 RHEL Program Management 2023-08-15 15:25:07 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.