From nobody Sun Feb 8 19:56:04 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; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1666621144; cv=none; d=zohomail.com; s=zohoarc; b=Tmkn0qOK7FzLzOrt2t4XBPs/wE8EGPEGgh0CTHGUdRGYLN8rdqP0IRkJMoaZwHpelQVA1Jivb1p/UaHKObvvBHtLGyo89cPnU0wmi5DA9jNAHL7WuNR+3uq1nJGEMQkLcz8hspAE18Ozy+u2Jw4QAxDWsgbwkTlIHLxAVfhgkJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666621144; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MiL1NKe/6Uxfs7OiabnE73+v9JFJI7H9JNKpjpq5UW8=; b=FV5rvV+JP+rBOR4I/IOBHkQ+2M3nOIotxGkfgoV+fgvs3ZjI1oPn8MruvwIy99UGVcW4kL/E6KBRvlWXsdP/iR8Cdfi0MpcOUCYR/kxDlv/D6zVlXb60OxLS0LHFy1fxFpnIUIccOTX3qKHfJv1mJB/bg+uURcvZ53gFqyyj6+0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) 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 1666621144472862.9049993074324; Mon, 24 Oct 2022 07:19:04 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-383-v90ZwJEkN2aYNZk5M5rp3A-1; Mon, 24 Oct 2022 10:16:44 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 548A01C004FB; Mon, 24 Oct 2022 14:15:53 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3F882112132E; Mon, 24 Oct 2022 14:15:53 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 01CEC194658F; Mon, 24 Oct 2022 14:15:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B8A14194658D for ; Mon, 24 Oct 2022 14:15:50 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id AE33D40C2088; Mon, 24 Oct 2022 14:15:50 +0000 (UTC) Received: from speedmetal.lan (ovpn-208-27.brq.redhat.com [10.40.208.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CE5940C2064 for ; Mon, 24 Oct 2022 14:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666621143; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=MiL1NKe/6Uxfs7OiabnE73+v9JFJI7H9JNKpjpq5UW8=; b=Dz30n+WnX22pl7khlQnBp8IfmWVSGD1lg7uXqpe21rtiTAQJ5LXaWTDAl4+6Kgn0c0KOEp 7sctJcVc4Cw5wVfneyG0U9lCp+ZkxnFWd+IOUP4PIufhycTECKdaMFZlcFE7KjtIVoohWO PGbQPMZ+l7zGTMXE9b5HFaPryelOzBg= X-MC-Unique: v90ZwJEkN2aYNZk5M5rp3A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 37/43] virDomainNetDef: Change type of 'tune.sndbuf' Date: Mon, 24 Oct 2022 16:14:42 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1666621145539100001 Content-Type: text/plain; charset="utf-8" Use 'unsigned long long' instead of 'unsigned long' and fix the parser and formatter. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/conf/domain_conf.c | 4 ++-- src/conf/domain_conf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2d01693a31..7c6caa01e5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -9376,7 +9376,7 @@ virDomainNetDefParseXML(virDomainXMLOption *xmlopt, if (virDomainNetTeamingInfoParseXML(ctxt, &def->teaming) < 0) return NULL; - rv =3D virXPathULong("string(./tune/sndbuf)", ctxt, &def->tune.sndbuf); + rv =3D virXPathULongLong("string(./tune/sndbuf)", ctxt, &def->tune.snd= buf); if (rv >=3D 0) { def->tune.sndbuf_specified =3D true; } else if (rv =3D=3D -2) { @@ -23585,7 +23585,7 @@ virDomainNetDefFormat(virBuffer *buf, if (def->tune.sndbuf_specified) { virBufferAddLit(buf, "\n"); virBufferAdjustIndent(buf, 2); - virBufferAsprintf(buf, "%lu\n", def->tune.sndbuf); + virBufferAsprintf(buf, "%llu\n", def->tune.sndbuf= ); virBufferAdjustIndent(buf, -2); virBufferAddLit(buf, "\n"); } diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index f5825138e7..54dc9098df 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1146,7 +1146,7 @@ struct _virDomainNetDef { virNetDevVPortProfile *virtPortProfile; struct { bool sndbuf_specified; - unsigned long sndbuf; + unsigned long long sndbuf; } tune; char *script; char *downscript; --=20 2.37.3