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=202502 header.b=b/ZZknXr; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 8070A5A026F for ; Wed, 26 Mar 2025 04:44:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1742960649; bh=p97gxrsEH9u+s3pn63EmNZgUWwSDfo4+rhNGjy+/qdg=; h=From:To:Cc:Subject:Date:From; b=b/ZZknXr/fv6PqtYYLCpzWMNbDJScROTY5x8KcSw9uo/u7CooghW1C7EAAyme58d5 3NcL0Aeod8l1bXfAGQPDj8KfZfLe8dcDqNaap2duxFejXs9GWNbhYIutaqlOLeTW/R PbkzPoGxXOkalubiWiaWRzgiBmDqkJxG5qMOWy//wl7yQUIO3V/33blh//hK/hyajV tuTUKQTCjf9Rbz20p+sK8o2qj5HrJQHuDBDNTRJLtZbTggBUOT5v9Ia+Gpi9VUg9aD xmUS21CtgaGr7vt3XHrrESC4jKr42DA0xzceaIHllJ4gimo5ppYkxkE8tpMTF16t0l q8n907BtJlAqA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ZMt2158GBz4x43; Wed, 26 Mar 2025 14:44:09 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/7] UDP flow socket preliminaries Date: Wed, 26 Mar 2025 14:44:00 +1100 Message-ID: <20250326034407.2240846-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.49.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: DIMBTWFI5I532XE5A3MBB53CWQJVZEZD X-Message-ID-Hash: DIMBTWFI5I532XE5A3MBB53CWQJVZEZD 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: As discussed on our recent call, I'm working towards using connected sockets on both sides of UDP flows. This series makes some preliminary reworks that simplify things and make that easier. v2: * Added patches 5..7, other patches unchanged. David Gibson (7): udp: Common invocation of udp_sock_errs() for vhost-user and "buf" paths udp: Simplify checking of epoll event bits udp_vu: Factor things out of udp_vu_reply_sock_data() loop udp: Share more logic between vu and non-vu reply socket paths udp: Better handling of failure to forward from reply socket udp: Always hash socket facing flowsides udp: Add helper function for creating connected UDP socket udp.c | 121 +++++++++++++++++++++-------------------- udp_flow.c | 143 ++++++++++++++++++++++++++----------------------- udp_internal.h | 2 +- udp_vu.c | 68 +++++++---------------- udp_vu.h | 9 ++-- 5 files changed, 166 insertions(+), 177 deletions(-) -- 2.49.0