From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id ED39B5A02AD for ; Tue, 30 Apr 2024 12:05:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1714471543; bh=CeVKRO3pxetCKrIL7WbjI49nQKn0yfjoUhWu333dIrw=; h=From:To:Cc:Subject:Date:From; b=Dze7gqmNutD5dlaj6P8uFZk9Sn4I+b74+UMu9tjiStGteaLhVylmUysVKaflN391G xi3fHKOGL23aH8LCmyAI5oc2dmxSAeK6k4jfq7IJfYoP2kY/oKtac0tsXLQ1RlzsuW nhUUUrQs19q1arw13VATF0OnnCkVLUWs3D8b7UG2WwN5Zdt6gxcyDYH9KuvfUzN8eo LjgcUtM/HIXW2SuOxkffNQIsj+wkjEm8LsZZKlf9BtCBLLJ1p61wc+jkj5q5OiEf4v zF+Uoko1AYVAbQrKCPEy4QaK/81Y+qo6K5hjoFZjI3dCc+YvFDy96FD8zfXrilENXX A/W8YewNKufHg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4VTG6b2cSlz4xM0; Tue, 30 Apr 2024 20:05:43 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/7] Rework UDP buffers Date: Tue, 30 Apr 2024 20:05:34 +1000 Message-ID: <20240430100541.381350-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.44.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GCIURVDROEXAW5AOQCBBJH5OSVMUIEQP X-Message-ID-Hash: GCIURVDROEXAW5AOQCBBJH5OSVMUIEQP 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: David Gibson 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: 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. 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 tap.h | 38 ------ test/passt.mbuto | 6 +- udp.c | 304 +++++++++++++++++++++++------------------------ 3 files changed, 153 insertions(+), 195 deletions(-) -- 2.44.0