From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202508 header.b=Karz2sjv; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id A950C5A0271 for ; Wed, 03 Sep 2025 03:11:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1756861912; bh=tlovq8Maw4Y5DKBpCOYUxPIzJwB7LQ1HRnbsypmAlYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Karz2sjvHqbKg/a9dfp93my+Y58FhYm8UpBl4bZcSpHPqgJkEZSzfkCWg6m2hljb/ +BybR39GSny/5KJecrdaLFByWItgPykniXIyKnsJa+qwdW6lb5pN7e70952Xm901JB q0RlP9BwVi5grrLwkCweCpFYgTyUO46PxkMSkelgvsIUJ+K4zH0/k/Tg6BxuZXQcnV 6VJxCQkWX5cQyqPngRzqmHVFDpxjtOPvwbI74o4jrwodne8mWV6Z4PMySoiDu9Iopq KMzDOaxdkLEQZH61guZupBd/9kBdaSrry8HzkKsZ/ipNR1z5qTwzS2HoMXRE5Wy/k1 rj2v9fvpOpyRQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4cGl205bBtz4w91; Wed, 3 Sep 2025 11:11:52 +1000 (AEST) Date: Wed, 3 Sep 2025 11:11:46 +1000 From: David Gibson To: Laurent Vivier Subject: Re: [PATCH v11 30/30] packet: Add support for multi-vector packets Message-ID: References: <20250902075253.990038-1-lvivier@redhat.com> <20250902075253.990038-31-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6/haRqVBx72pJlYt" Content-Disposition: inline In-Reply-To: <20250902075253.990038-31-lvivier@redhat.com> Message-ID-Hash: FMDDIPHT7PBR7NFYCFZQJHY4Z5FJCOQN X-Message-ID-Hash: FMDDIPHT7PBR7NFYCFZQJHY4Z5FJCOQN X-MailFrom: dgibson@gandalf.ozlabs.org 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: --6/haRqVBx72pJlYt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 02, 2025 at 09:52:53AM +0200, Laurent Vivier wrote: > The packet pool was previously limited to handling packets contained > within a single buffer. >=20 > This patch extends the packet pool to support iovec array, > allowing a single logical packet to be composed of multiple iovec. >=20 > To accommodate this, the storage format within the pool is modified. > For a multi-vector packet, a header entry is now stored first with > iov_base =3D NULL and iov_len holding the number of subsequent > vectors. The actual data vectors are then stored in the following > pool slots. >=20 > The packet_add_do() and packet_get_do() functions are updated to > manage this new format for storing and retrieving packets. The > pool_full() check is also adjusted to ensure there is enough > space for all vectors of a new packet before adding it. >=20 > Signed-off-by: Laurent Vivier Reviewed-by: David Gibson --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --6/haRqVBx72pJlYt Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmi3ldEACgkQzQJF27ox 2Gfhww//U1c4M14dnt5OOZdVJbZHvEpTa7rmBjBnmj+IGSigp751CMGr/DPeVGoC CHQHQydpIvxQBxzUHm5Q0jMHqGVi4c73tZ8knUrHfH5XwfihJN7adFRYWKzPdu1r DcLTGmELpfpsCiq1oGRvCLduqKTr7SKVZkN5XlVc4HhwczUUN+Emovl56igk1tn0 U6y2RwwcbfuRw77BASbo2N3wHmTnsUybrHpuvyxspguwadP/1o8EiC/ZV5eSnzv0 lgfhnjZej2BuHyHJCFkw49glx6WxVOPDfHbZ9oSabeKOZZsL7C9MvMh6/T0VkTp1 TiqVWTB0ZkLjLZhK2tDrfbpI1M/Gj73a6izXC6pXqJCzAGmxj1tmAcav7bx+X2o+ kgIR6uJuyVgpgzayiSOP6QTb8g7WKNQELuOzApxxeZUq9IAZir7KhQPJgtm605YZ NB/5xT7pkxdXbfXRaQMXH4vPrs1d0gktuPMEur4DJ/+DZGmz5viJCH6EjH5d6Sd2 SzVBgttQThHEMLJq1VcHGoCgkyoiqk3SgtUTT6KH6VDYEV+Peg+gBcnfpMH3T3xs oOzCJ9/vcv1FCNhu3LAhPsCjun7867coIyhamjLhMUtBPrhfk4fK3PeUi7TA57U4 2MmmPO+jGoJtNQP68T1Iv4kvWaY5Q0oeDroGmJeaNhvEACHSOc8= =gGdB -----END PGP SIGNATURE----- --6/haRqVBx72pJlYt--