From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id CB66B5A004E for ; Fri, 05 Jul 2024 12:44:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1720176251; bh=zap4RE9s2107DOMCuhaWF9G7d0fOvzN5NSOXmJRCvcY=; h=From:To:Cc:Subject:Date:From; b=SWRhmqjxvTDweDQqlOY+vZAYxRKxgrGe98sJcBCzsWqzSe30c8FLeWrNdjKU3AchO cTgF6ihZhyebLvMRsI7PrEvw5oHnByxJAifjEz7/zzerjWViTfVYiu8WHJNqwyiOjO Q8Pc9PfxuqjcQsOGl7tj8l/OUVAM7t6EDQG035gpYC/HyqmUUorwHvH39d4J+5mRiH cWMIpAq+5C0EKTW+Y4jLD9ILpS5U80BV9TsAVR3qT1DDrkn6XSDSsjjTXWUIjxk0HE /RrLNre6Yk8CiDZAG9oyGh8ilSNEo09oFUbewuNzu8LZGo38yLddmyCHKOCU6kSQXN i3TuVw2FbRw+w== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WFqrW69k9z4wbp; Fri, 5 Jul 2024 20:44:11 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 00/11] Preliminaries for UDP flow support Date: Fri, 5 Jul 2024 20:43:58 +1000 Message-ID: <20240705104409.3847002-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: IBBDFFWBLR7PT4KZU2YKWBX6MJHXI5MC X-Message-ID-Hash: IBBDFFWBLR7PT4KZU2YKWBX6MJHXI5MC 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: The redesign of UDP flows required (or at least, suggested) a new batch of prelininary changes that don't rely on the core of the flow table rework. Changes since v1: * Assorted minor fixes based on Stefano's feedback * Moved test programs from contrib/ to doc/ David Gibson (11): util: sock_l4() determine protocol from epoll type rather than the reverse flow: Add flow_sidx_valid() helper udp: Pass full epoll reference through more of sock handler path udp: Rename IOV and mmsghdr arrays udp: Unify udp[46]_mh_splice udp: Unify udp[46]_l2_iov udp: Don't repeatedly initialise udp[46]_eth_hdr udp: Move some more of sock_handler tasks into sub-functions udp: Consolidate datagram batching doc: Add program to document and test assumptions about SO_REUSEADDR doc: Test behaviour of zero length datagram recv()s doc/platform-requirements/.gitignore | 2 + doc/platform-requirements/Makefile | 45 +++ doc/platform-requirements/README | 18 + doc/platform-requirements/common.c | 66 ++++ doc/platform-requirements/common.h | 47 +++ doc/platform-requirements/recv-zero.c | 74 ++++ .../reuseaddr-priority.c | 240 ++++++++++++ epoll_type.h | 41 ++ flow.h | 11 + flow_table.h | 2 +- icmp.c | 2 +- passt.h | 32 -- tcp.c | 17 +- udp.c | 365 +++++++++--------- util.c | 48 +-- util.h | 3 +- 16 files changed, 756 insertions(+), 257 deletions(-) create mode 100644 doc/platform-requirements/.gitignore create mode 100644 doc/platform-requirements/Makefile create mode 100644 doc/platform-requirements/README create mode 100644 doc/platform-requirements/common.c create mode 100644 doc/platform-requirements/common.h create mode 100644 doc/platform-requirements/recv-zero.c create mode 100644 doc/platform-requirements/reuseaddr-priority.c create mode 100644 epoll_type.h -- 2.45.2