]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Fix typo in virNetDevOpenvswitchInterfaceSetQos
authorJiri Denemark <jdenemar@redhat.com>
Wed, 4 Dec 2024 10:53:47 +0000 (11:53 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 4 Dec 2024 15:27:00 +0000 (16:27 +0100)
The typo is causing virtqemud to crash when starting a domain with ovs
bridge interface and QOS.

https://issues.redhat.com/browse/RHEL-69840

Fixes: a3b8753db975d8b92b122ccc7daee986974f8b18
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virnetdevopenvswitch.c

index a1bd9f3d5b22c8dba2bf2088fe0c1d59645cc307..0f5d23b794a4eb569742c8fda30cf16a39737912 100644 (file)
@@ -958,7 +958,7 @@ virNetDevOpenvswitchInterfaceSetQos(const char *ifname,
     }
 
     if (rx) {
-        if (rx->peak && tx->peak != rx->average) {
+        if (rx->peak && rx->peak != rx->average) {
             VIR_WARN("Setting different 'peak' value than 'average' for QoS for OVS interface %s might have unexpected results",
                      ifname);
         }