From nobody Tue May 7 08:54:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=126.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1635754345019468.4266376704103; Mon, 1 Nov 2021 01:12:25 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-210-jTncCYwrPPmb5ZAVHYyudw-1; Mon, 01 Nov 2021 04:12:20 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1DFC8066EB; Mon, 1 Nov 2021 08:12:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A45B6100EA05; Mon, 1 Nov 2021 08:12:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5CA774A703; Mon, 1 Nov 2021 08:12:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1A18CExo022197 for ; Mon, 1 Nov 2021 04:12:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 70D2640CFD12; Mon, 1 Nov 2021 08:12:14 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BDAF40CFD11 for ; Mon, 1 Nov 2021 08:12:14 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 508628001EA for ; Mon, 1 Nov 2021 08:12:14 +0000 (UTC) Received: from m15112.mail.126.com (m15112.mail.126.com [220.181.15.112]) by relay.mimecast.com with ESMTP id us-mta-195-cT6oLPWONZCOD7idiBCB9A-1; Mon, 01 Nov 2021 04:12:11 -0400 Received: from zhangjl0200.home.langchao.com (unknown [223.104.194.160]) by smtp2 (Coremail) with SMTP id DMmowABHnsL3mX9hb_zcAw--.21007S3; Mon, 01 Nov 2021 15:40:43 +0800 (CST) X-MC-Unique: jTncCYwrPPmb5ZAVHYyudw-1 X-MC-Unique: cT6oLPWONZCOD7idiBCB9A-1 From: jx8zjs To: libvir-list@redhat.com Subject: [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. Date: Mon, 1 Nov 2021 15:39:55 +0800 Message-Id: <20211101073956.1892-2-jx8zjs@126.com> In-Reply-To: <20211101073956.1892-1-jx8zjs@126.com> References: <20211101073956.1892-1-jx8zjs@126.com> MIME-Version: 1.0 X-CM-TRANSID: DMmowABHnsL3mX9hb_zcAw--.21007S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF15try5KF4rur1xAF47Jwb_yoWxKFcE9F 48ZwsrCw4xtFyFgwn8CFWrXF12gw4rWrW09w1fCr1Skr4qqayrGFy8W3W2gr17WryjyFWD X3s7XrsFvF1j9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8LSdDUUUUU== X-Originating-IP: [223.104.194.160] X-CM-SenderInfo: dm0y6ybv6rjloofrz/1tbiFxs+SFpECguEYgAAsD X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-loop: libvir-list@redhat.com Cc: shenjiatong@inspur.com, zhangjl02@inspur.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1635755249273100001 Content-Type: text/plain; charset="utf-8" From: zhangjl02 Signed-off-by: zhangjl02 Reviewed-by: Michal Privoznik --- src/util/virnetdevopenvswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitc= h.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 =20 /** --=20 2.30.2.windows.1 From nobody Tue May 7 08:54:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=126.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1635754346224136.58191355330484; Mon, 1 Nov 2021 01:12:26 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-484-qSy_iDZ4MciZaioNgzF1eg-1; Mon, 01 Nov 2021 04:12:23 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81CF3802B61; Mon, 1 Nov 2021 08:12:18 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F8CC5D6CF; Mon, 1 Nov 2021 08:12:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 307B84E58F; Mon, 1 Nov 2021 08:12:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1A18CF5P022207 for ; Mon, 1 Nov 2021 04:12:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id BC82C518B; Mon, 1 Nov 2021 08:12:15 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B0E1D51E5 for ; Mon, 1 Nov 2021 08:12:12 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B0E2F1066559 for ; Mon, 1 Nov 2021 08:12:12 +0000 (UTC) Received: from m15112.mail.126.com (m15112.mail.126.com [220.181.15.112]) by relay.mimecast.com with ESMTP id us-mta-596-dqCF5d88Mb62wzOyQ9eMNg-1; Mon, 01 Nov 2021 04:12:10 -0400 Received: from zhangjl0200.home.langchao.com (unknown [223.104.194.160]) by smtp2 (Coremail) with SMTP id DMmowABHnsL3mX9hb_zcAw--.21007S4; Mon, 01 Nov 2021 15:40:43 +0800 (CST) X-MC-Unique: qSy_iDZ4MciZaioNgzF1eg-1 X-MC-Unique: dqCF5d88Mb62wzOyQ9eMNg-1 From: jx8zjs To: libvir-list@redhat.com Subject: [PATCH 2/2] virnetdevopenvswitchtest: fix inbound value calculation Date: Mon, 1 Nov 2021 15:39:56 +0800 Message-Id: <20211101073956.1892-3-jx8zjs@126.com> In-Reply-To: <20211101073956.1892-1-jx8zjs@126.com> References: <20211101073956.1892-1-jx8zjs@126.com> MIME-Version: 1.0 X-CM-TRANSID: DMmowABHnsL3mX9hb_zcAw--.21007S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7uFW8AFWruF48Ww4ftw4DXFb_yoW8Gr13pr sxGF1Fk3ykXr4Ut3yagr1rGryUGr1kAF4kGFZ3W34Y9w15JrZ3Zw13K3yxCF43AryrXas3 Z3ZYyryFy3W7J3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jxeOLUUUUU= X-Originating-IP: [223.104.194.160] X-CM-SenderInfo: dm0y6ybv6rjloofrz/1tbiIR0+SFpECrdSAgAAs5 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: shenjiatong@inspur.com, zhangjl02@inspur.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1635754346869100002 Content-Type: text/plain; charset="utf-8" From: zhangjl02 Signed-off-by: zhangjl02 --- tests/virnetdevopenvswitchtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/virnetdevopenvswitchtest.c b/tests/virnetdevopenvswitcht= est.c index 2a20ba82d0..57860f4bc4 100644 --- a/tests/virnetdevopenvswitchtest.c +++ b/tests/virnetdevopenvswitchtest.c @@ -274,10 +274,10 @@ mymain(void) OVS_VSCTL " --timeout=3D5 set port tap-fake qos=3D@qos1" " 'external-ids:vm-id=3D\"66616b65-7575-6964-00= 00-000000000000\"'" " 'external-ids:ifname=3D\"tap-fake\"'" - " -- --id=3D@qos1 create qos type=3Dlinux-htb o= ther_config:min-rate=3D163840000" + " -- --id=3D@qos1 create qos type=3Dlinux-htb o= ther_config:min-rate=3D160000000" " queues:0=3D@queue0 'external-ids:vm-id=3D\"66= 616b65-7575-6964-0000-000000000000\"'" " 'external-ids:ifname=3D\"tap-fake\"'" - " -- --id=3D@queue0 create queue other_config:m= in-rate=3D163840000 " + " -- --id=3D@queue0 create queue other_config:m= in-rate=3D160000000 " "'external-ids:vm-id=3D\"66616b65-7575-6964-000= 0-000000000000\"'" " 'external-ids:ifname=3D\"tap-fake\"'\n" OVS_VSCTL " --timeout=3D5 set Interface tap-fake ingress_= policing_rate=3D0 ingress_policing_burst=3D0\n")); --=20 2.30.2.windows.1