From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id 52EF05A0275 for ; Thu, 29 Feb 2024 09:10:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709194230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8evBnnc0ZUhcJREMog2tm+qyqeHDRbENNxR8xwPgJaA=; b=iZHxbNSiLSNv2VZz1frmv5VdU280EYcmYx1SZQGpGToih42AfWxU8j+9mEwaHAcFdIytd5 /POxrH+2hOuXBUDFuQPilGzK0cDU5gFQuMuRV2PaaQrsuxFwNrNOMY4LpuXYOJwFPGDtVg JAgsBoujWs3VezZ4xEMAqJvFsXsxsIE= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-269-P2Ms6vkdOoWzZszGWjTczw-1; Thu, 29 Feb 2024 03:10:28 -0500 X-MC-Unique: P2Ms6vkdOoWzZszGWjTczw-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a44170156daso44836866b.1 for ; Thu, 29 Feb 2024 00:10:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709194208; x=1709799008; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8evBnnc0ZUhcJREMog2tm+qyqeHDRbENNxR8xwPgJaA=; b=a/UYM1zMuX02j8A9f6oG2b3PPZKRDB17R49Fe451kxBhMlBVe4mCFfOcc7CFTBZ/fM FRSfHK/JF/26EUobJX19A+2++pJ5qfWEg3fUNhWFXO1XY7ug/qk15HHCN87boC83JkaF Pn+32C/wI+TrOQCvs27cFPkA1gLRWVo+x5l2BgrzffHNgsrBU/rnLRs/fuwBVzK2lZ60 yB83CtUU2vGdDLCzCTqjLghv4i891Vo8nLO7F7RsawDukomkkcLIHhpCtb/e+ZOCyayt e6xx9cJxJfzngBXql349Km7V1KAdA6e0ybIiKBLi70MJ71CxLr011UlnIiKsQi5T5VbP tavg== X-Gm-Message-State: AOJu0Yz7WMDM4Y4N3K76Xaf81v/D88BFDt3vBLCVuZZSAzDh0PBaCwpt Js1JuZACtG7mfK3Pcr4YIPxqUEgF1Fub99YoibbhAK2jc3GDC6z7OuQ5zRnW10loeZ9186zL5k3 QfQMTuJy5tnZ4RPY6PvAWLIu/DvhU2wZgcXyggjjN4tj2vltHgw== X-Received: by 2002:a17:906:17c1:b0:a3f:2703:1c6a with SMTP id u1-20020a17090617c100b00a3f27031c6amr770110eje.51.1709194208419; Thu, 29 Feb 2024 00:10:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+dgmrA0v60pwodyo0xuYvVGnA9L3gH+Gh8VIdtYv3lQ2KuRwJKbmAIOrIU0cAFNAHQcfb5w== X-Received: by 2002:a17:906:17c1:b0:a3f:2703:1c6a with SMTP id u1-20020a17090617c100b00a3f27031c6amr770095eje.51.1709194208048; Thu, 29 Feb 2024 00:10:08 -0800 (PST) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id h4-20020a1709063b4400b00a433f470cf1sm415153ejf.138.2024.02.29.00.10.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Feb 2024 00:10:07 -0800 (PST) Date: Thu, 29 Feb 2024 09:09:32 +0100 From: Stefano Brivio To: David Gibson , Laurent Vivier Subject: Re: [PATCH v2 1/7] iov: add some functions to manage iovec Message-ID: <20240229090837.0a75863b@elisabeth> In-Reply-To: <20240228015206.1214242-2-david@gibson.dropbear.id.au> References: <20240228015206.1214242-1-david@gibson.dropbear.id.au> <20240228015206.1214242-2-david@gibson.dropbear.id.au> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 673CM5PS4JJ5H7F24Q6GZQY56FELISKM X-Message-ID-Hash: 673CM5PS4JJ5H7F24Q6GZQY56FELISKM X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 28 Feb 2024 12:52:00 +1100 David Gibson wrote: > From: Laurent Vivier > > Introduce functions to copy to/from a buffer from/to an iovec array, > to compute data length in in bytes of an iovec and to copy memory from > an iovec to another. > > iov_from_buf(), iov_to_buf(), iov_size(), iov_copy(). > > Signed-off-by: Laurent Vivier > Message-ID: <20240217150725.661467-2-lvivier@redhat.com> > [dwg: Small changes to suppress cppcheck warnings] > Signed-off-by: David Gibson I have a long list of style comments on this one, but nothing functional, so I'll go ahead and apply it to unblock this series, and post fix-up patches later. -- Stefano