Bug 1861436
| Summary: | packed=on:guest fails receive packets with "network" interface type and 'qemu' driver | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Pei Zhang <pezhang> |
| Component: | qemu-kvm | Assignee: | lulu <lulu> |
| qemu-kvm sub component: | Networking | QA Contact: | Pei Zhang <pezhang> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aadam, ailan, chayang, eperezma, jasowang, jinzhao, juzhang, leiyang, virt-maint |
| Version: | unspecified | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1861434 | Environment: | |
| Last Closed: | 2021-12-17 05:32:19 UTC | Type: | Bug |
| 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: | 1861434 | ||
| Bug Blocks: | 1897024 | ||
|
Description
Pei Zhang
2020-07-28 15:40:21 UTC
Hi: Have you used vhost-net or not? Is this an regression? Reduce the priority and severity since vhost-net doesn't support packed virtqueue. Thanks Hi Jason. The behavior is observed on the virtual NICs with `driver name='qemu'`, so is using the qemu's implementation. The bug description could be misleading because it includes a vhost-net interface, but it was used for management, not testing. I was able to reproduce from the first commit in qemu introducing packed vq, with DPDK's testpmd using AF_PACKET vdev (as in the bz description). If the traffic rate is moderate, the device is able to exchange packets, download big files... with no issues. I didn't investigate further to locate better the bug. (In reply to Eugenio Pérez Martín from comment #2) > Hi Jason. > > The behavior is observed on the virtual NICs with `driver name='qemu'`, so > is using the qemu's implementation. The bug description could be misleading > because it includes a vhost-net interface, but it was used for management, > not testing. > > I was able to reproduce from the first commit in qemu introducing packed vq, > with DPDK's testpmd using AF_PACKET vdev (as in the bz description). > > If the traffic rate is moderate, the device is able to exchange packets, > download big files... with no issues. I didn't investigate further to locate > better the bug. I see, will try to reproduce. Anyway, move to 8.4 first since vhost-net doesn't support packed vq right now. Thanks As Eugenio has helped to provid the info in Comment 2. So remove the needinfo+ from me. Best regards, Pei *** Bug 1861434 has been marked as a duplicate of this bug. *** Bulk update: Move RHEL8 bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release. Please try upstream Qemu. We got several fixes from packed virtqueue recently. Thanks Thanks Jason's info. This issue has gone with qemu-kvm-6.2.0-1.el9.x86_64.
Following steps in Description, VM can receive packets well:
Host testpmd:
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 524169021 TX-dropped: 9839043 TX-total: 534008064
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
VM testpmd:
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 44367445 RX-dropped: 0 RX-total: 44367445
TX-packets: 0 TX-dropped: 0 TX-total: 0
----------------------------------------------------------------------------
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 44367445 RX-dropped: 0 RX-total: 44367445
TX-packets: 0 TX-dropped: 0 TX-total: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note:
1. There is no need to transfer packed option by "qemu:commandline" with libvirt. Libvirt has already supported packed='on' in the driver section. Just like below.
<interface type='network'>
<mac address='18:66:da:5f:dd:02'/>
<source network='default' portid='ba4f8dc9-c215-4e99-b1d9-599d40a08eaf' bridge='virbr0'/>
<target dev='vnet16'/>
<model type='virtio'/>
<driver name='qemu' packed='on'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</interface>
<interface type='network'>
<mac address='18:66:da:5f:dd:03'/>
<source network='default' portid='3172fab0-c746-4160-8ad7-d0020f3c778e' bridge='virbr0'/>
<target dev='vnet17'/>
<model type='virtio'/>
<driver name='qemu' packed='on'/>
<alias name='net2'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</interface>
So close this bug as CurrentRelease.
|