[PATCH 1/2] virnetdevopenvswitch: unify calculation of ovs and tc. For other interface type, values in tc rules are calculated by multiply by 8*1000 instead of 8*1024.

jx8zjs jx8zjs at 126.com
Mon Nov 1 07:39:55 UTC 2021


From: zhangjl02 <zhangjl02 at inspur.com>

Signed-off-by: zhangjl02 <zhangjl02 at inspur.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 8955f0fa66..250726a633 100644
--- a/src/util/virnetdevopenvswitch.c
+++ b/src/util/virnetdevopenvswitch.c
@@ -642,7 +642,7 @@ virNetDevOpenvswitchFindUUID(const char *table,
  * However other_config in ovs qos is in bit.
  * ingress_policing_rate in ovs interface is in kbit.
  */
-#define VIR_NETDEV_TX_TO_OVS 8192
+#define VIR_NETDEV_TX_TO_OVS 8000
 #define VIR_NETDEV_RX_TO_OVS 8
 
 /**
-- 
2.30.2.windows.1




More information about the libvir-list mailing list