libvirt/SOURCES/libvirt-util-Fix-typo-in-virNetDevOpenvswitchInterfaceSetQos.patch
2025-05-13 09:18:07 +03:00

42 lines
1.5 KiB
Diff

From f58977a1475e6222e40e0cb93e9eef76da48012e Mon Sep 17 00:00:00 2001
Message-ID: <f58977a1475e6222e40e0cb93e9eef76da48012e.1734433245.git.jdenemar@redhat.com>
From: Jiri Denemark <jdenemar@redhat.com>
Date: Wed, 4 Dec 2024 11:53:47 +0100
Subject: [PATCH] util: Fix typo in virNetDevOpenvswitchInterfaceSetQos
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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>
(cherry picked from commit dba710374d92688f797bf64642cc0d640c301239)
https://issues.redhat.com/browse/RHEL-69938
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
src/util/virnetdevopenvswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitch.c
index a1bd9f3d5b..0f5d23b794 100644
--- a/src/util/virnetdevopenvswitch.c
+++ b/src/util/virnetdevopenvswitch.c
@@ -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);
}
--
2.47.1