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 13DA95A026E for ; Mon, 5 Dec 2022 09:14:35 +0100 (CET) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4NQbtY2LvBz4xGH; Mon, 5 Dec 2022 19:14:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1670228069; bh=48GmAg5EaPp+IgZm5NloJz2kLd4Kj+kxf0bQEN8HYwI=; h=From:To:Cc:Subject:Date:From; b=UCfnlME7QITnkbhgnXo9PWrHFHljPiq8kYzzf+HeD0PgyP1yFHoZauG/Cmd1rBQda ZuR1TjfNV2Stdn0gIinX2k/5fpitYHo3yJfZNpQuPGaxHohJoC5JZ6/u5MfGX2Ofhf yJqVeIKwOn/nvs8FUPTOGWkZR1iVlPPzBwQ6aX1c= From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/8] Don't use additional sockets for receiving "spliced" UDP communications Date: Mon, 5 Dec 2022 19:14:17 +1100 Message-Id: <20221205081425.2614425-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.38.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: EV2YVFQDN6TD3KLFA6GKH5U56YT4JJ6K X-Message-ID-Hash: EV2YVFQDN6TD3KLFA6GKH5U56YT4JJ6K 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.3 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: At present, the UDP "splice" and "tap" paths are quite separate. We have separate sockets to receive packets bound for the tap and splice paths. This leads to some code duplication, and extra open sockets. This series partially unifies the two paths, allowing us to use a single (host side) socket, bound to 0.0.0.0 or :: to receive packets for both cases. This is based on my earlier series with some fixes for the tap path. David Gibson (8): udp: Move sending pasta tap frames to the end of udp_sock_handler() udp: Split sending to passt tap interface into separate function udp: Split receive from preparation and send in udp_sock_handler() udp: Receive multiple datagrams at once on the pasta sock->tap path udp: Pre-populate msg_names with local address udp: Unify udp_sock_handler_splice() with udp_sock_handler() udp: Decide whether to "splice" per datagram rather than per socket udp: Don't use separate sockets to listen for spliced packets udp.c | 382 ++++++++++++++++++++++++++++++--------------------------- udp.h | 2 +- util.h | 7 ++ 3 files changed, 207 insertions(+), 184 deletions(-) -- 2.38.1