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 4F1345A0354 for ; Thu, 2 May 2024 16:53:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714661608; 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=r7nBhpLaOaPXQsnH+BlNKQfRIOwZfLyuiR7OS4pXeew=; b=Brer1nfb3l6kI4Ah/jGyf8zn4qC8dM+NmolwP0JPykD2Kb67ZnTw5fwoFx5t5IHfmK32c/ IJsMXpYLCMKS0a59ulNA/PP0lmXLL0IL98m6kq+1dePO5OCDcQnrKYz8BemI1kLGSjVLJh 3xRUrBjp7PGRptgeS4Jnro4SCkiae30= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-RxErPvWwOmeG0Mm8e-RjAw-1; Thu, 02 May 2024 10:53:23 -0400 X-MC-Unique: RxErPvWwOmeG0Mm8e-RjAw-1 Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2e2264552e4so803071fa.3 for ; Thu, 02 May 2024 07:53:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714661601; x=1715266401; 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=r7nBhpLaOaPXQsnH+BlNKQfRIOwZfLyuiR7OS4pXeew=; b=CIgKV3V5PQfKS2ekHj1qYCti7WrW8x9o/CsjJG02+SJ7s243ghZiuu+sWGLJyGarLY nfxyP4+jwLqbwscqJ27TR23ziFgwRu1nY2S5uvNsgqiIM/lPOi89VnwMOUoBiIuZ0bAU cuIc8xpkGi5AXiL9qzk3IJ/z5LQhXUS1/gJV3bZ2EjdWxbyg1KV3uJYzueBp6FUacJHP LE6LTxCd2X5Ojii+Q9DQAXWeq3W5q1FWAs151wH3lf95J4HD8dUAcaxraB1j8gKOGXUc 9DN+jDunrzP3ZZ9FyCWHsQCqLzv84G1X+n69QWt6bQpRHIx17WmwWo9V05ZTFeRFX5SP 7/UA== X-Gm-Message-State: AOJu0YyyICsJZe1VrtqNXTz/fOG7fXo/gyVPHx0qbmvy7FUbb8n5+I4s tKNmGVOOhWJMva4aLuY5LVn+lpseRYjUKP7AIniAM/NbgEF3XMjn9iVEpN/O9LAQRrpyo1ItAkC kv076q6EMK7bEzdsylAPS8DRdTT7U4YPjH65Z0PnfS1f4RwK/gitsG7Tth51T X-Received: by 2002:a05:6512:280d:b0:51f:3ae6:7440 with SMTP id cf13-20020a056512280d00b0051f3ae67440mr23328lfb.42.1714661600679; Thu, 02 May 2024 07:53:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbZLidJYSQhx0CZEZcIQDrTVWFHV1z32bjpSRYU9XYe4VWAftRZMcK1SbPCPMkjmbyY685qg== X-Received: by 2002:a05:6512:280d:b0:51f:3ae6:7440 with SMTP id cf13-20020a056512280d00b0051f3ae67440mr23295lfb.42.1714661599796; Thu, 02 May 2024 07:53:19 -0700 (PDT) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id v17-20020a1709062f1100b00a55aee4bf74sm642759eji.79.2024.05.02.07.53.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2024 07:53:19 -0700 (PDT) Date: Thu, 2 May 2024 16:52:46 +0200 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH v2 0/7] Rework UDP buffers Message-ID: <20240502165246.1c2bc305@elisabeth> In-Reply-To: <20240501083110.2172770-1-david@gibson.dropbear.id.au> References: <20240501083110.2172770-1-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: RT5YWJQXXZIXY4QUGCCFK24C43PSBAPA X-Message-ID-Hash: RT5YWJQXXZIXY4QUGCCFK24C43PSBAPA 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, 1 May 2024 18:31:03 +1000 David Gibson wrote: > Laurent recently reworked the TCP buffer handling to be split into > various pieces tracked by iovecs. We'll want that for various future > changes. This series makes a similar split for UDP buffers, which > we'll want in order to allow dual-stack UDP sockets, amongst other > things. > > This is based on my earlier series of cleanups for the TCP buffer > handling. > > Changes since v1: > * Rebase on v2 of the TCP iov and buffer handling cleanups > * Rename udp_payload and udp_meta structures to _t for more > consistency with tcp.c > * Other minor changes based on Stefano's review > > David Gibson (7): > test: Allow sftp via vsock-ssh in tests > udp: Split tap-bound UDP packets into multiple buffers using io vector > udp: Combine initialisation of IPv4 and IPv6 iovs > udp: Explicitly set checksum in guest-bound UDP headers > udp: Share payload buffers between IPv4 and IPv6 > udp: Use the same buffer for the L2 header for all frames > udp: Single buffer for IPv4, IPv6 headers and metadata Applied. -- Stefano