From nobody Mon Feb 9 17:58:11 2026 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 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 1627481631694936.1446325254656; Wed, 28 Jul 2021 07:13:51 -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-144-Vj5Oi6wuM3mg6ZC_8DVKyQ-1; Wed, 28 Jul 2021 10:13:48 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A47771804877; Wed, 28 Jul 2021 14:13:42 +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 833825C1D1; Wed, 28 Jul 2021 14:13:42 +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 503864A706; Wed, 28 Jul 2021 14:13:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 16S8IJBW013784 for ; Wed, 28 Jul 2021 04:18:19 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0CAA3200E4A9; Wed, 28 Jul 2021 08:18:19 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 07D2D200AD0C for ; Wed, 28 Jul 2021 08:18:19 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (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 E497189C7DC for ; Wed, 28 Jul 2021 08:18:18 +0000 (UTC) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-293-3dCnzN5aPyG6lTav8YE6fA-1; Wed, 28 Jul 2021 04:18:16 -0400 Received: by mail-lf1-f49.google.com with SMTP id h14so2365704lfv.7 for ; Wed, 28 Jul 2021 01:18:16 -0700 (PDT) Received: from navi.cosmonova.net.ua ([95.67.24.131]) by smtp.gmail.com with ESMTPSA id p5sm571964lfd.240.2021.07.28.01.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 01:18:14 -0700 (PDT) X-MC-Unique: Vj5Oi6wuM3mg6ZC_8DVKyQ-1 X-MC-Unique: 3dCnzN5aPyG6lTav8YE6fA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ExDAjbmKPg9eJYQlQkCtYcUFayYAZJ32LSZuVJQL4LU=; b=DTW4OXP9ncUqROqDaWbgqGIXBYzYgcIzSwb8SOPCS73fZj5PlDoLYcxGjENGoDNTII p2xqyn3XPNn/bqKG5AXTG484Sq3ERfu4DeT0Q5gN6NdVva/Cmm2zt6YEOu64A6YcUkZl YL/2t7HkBsVUWFFwWq+BfVpfsTpVrdEOdhtDVC6OTQ6DhCClpbbyJlLLZXUuRpUOf7UP v75EliSB2PO7/uTvjnUIFOPoo0rTKZTBg63Xf9/Zv5ZkHiJSx0jiFeIBF7e/fKs65JX/ Uw2b6eacalvrOLoAc8XulSC8Ihm6Xi0Jvuqyc8vKasCAlwA67S5C/VOSrpIMEoAk5Kaq BnMg== X-Gm-Message-State: AOAM532gTcV8FZOOFjbcR6dadXsjaIriKXxlZlrqIHUmVqwxgdStPjON DzKzNiGv5NnOUBvxLljbwMQLWCdxQ+5nhiEo X-Google-Smtp-Source: ABdhPJxm4q7zM2oUuHzzFIvFigJejx9HA6cGnRdSKXRfYqthgI/f3UGu3js8K/PK1eIfEYa+uLbPJg== X-Received: by 2002:a05:6512:e87:: with SMTP id bi7mr20543152lfb.218.1627460294805; Wed, 28 Jul 2021 01:18:14 -0700 (PDT) From: Andrew Melnychenko To: libvir-list@redhat.com Subject: [RFC PATCH 03/10] qemu_command: Added "rss" and "hash" properties. Date: Wed, 28 Jul 2021 11:17:07 +0300 Message-Id: <20210728081714.715287-4-andrew@daynix.com> In-Reply-To: <20210728081714.715287-1-andrew@daynix.com> References: <20210728081714.715287-1-andrew@daynix.com> MIME-Version: 1.0 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.78 on 10.11.54.6 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Wed, 28 Jul 2021 10:13:24 -0400 Cc: yan@daynix.com, yuri.benditovich@daynix.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.16 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: 1627481632790100002 Content-Type: text/plain; charset="utf-8" If domain config contains "rss" and/or "rss_hash_report" options for driver. Also if the qemu has device capabilities for RSS. Libvirt will create an NI= C device command line with enabled "rss"/"hash". Signed-off-by: Andrew Melnychenko --- src/qemu/qemu_command.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 156af4caee..67a396a513 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -3495,6 +3495,16 @@ qemuBuildNicDevStr(virDomainDef *def, if (net->driver.virtio.tx_queue_size) virBufferAsprintf(&buf, ",tx_queue_size=3D%u", net->driver.vir= tio.tx_queue_size); =20 + if (net->driver.virtio.rss =3D=3D VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&buf, ",rss=3D%s", + virTristateSwitchTypeToString(net->driver.virtio.rss)); + } + + if (net->driver.virtio.rss_hash_report =3D=3D VIR_TRISTATE_SWITCH_= ON) { + virBufferAsprintf(&buf, ",hash=3D%s", + virTristateSwitchTypeToString(net->driver.virtio.rss_h= ash_report)); + } + if (net->mtu) virBufferAsprintf(&buf, ",host_mtu=3D%u", net->mtu); =20 --=20 2.31.1