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=202410 header.b=YPe0Tpc0; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 4D7AE5A004E for ; Mon, 28 Oct 2024 10:41:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1730108451; bh=nqY3zikkv8PlLmfAwMi8HWH7RZEp4uJ+hkjMEES/yXQ=; h=From:To:Cc:Subject:Date:From; b=YPe0Tpc0WQYWInYc40P39V8HsVLuynGVlpYU1dnvbFXs+nkYkUCeGHYzBmMuc+i4S 8C+SZ6tdoMML4LToOSw84JgHzQ9iLcN7S5HLoGn2iWsuaMuI6mFVNUDyDXPMypdCwd 2eZF5h4y8CtshzyFBgMAbb5BcFXj5FWW5vLbPvNFrlxF6pxqp6cHNKmwxBN+rghsUt wCZlBfIrzj21fLPpvR1mQktQIVze0YQcKkdlIroIgp3M036dN+IACBJxvpBznnSCVR 9wtnrBBCrBcZj2GfSuVZhEAKMQ2t6qTX2sJ2oNtB1tD7zF9ZDXsZTSc712Ln5Hqgf4 /AtUae5YlxNgA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XcT0M1wXwz4x8C; Mon, 28 Oct 2024 20:40:51 +1100 (AEDT) From: David Gibson To: Stefano Brivio , Laurent Vivier , passt-dev@passt.top Subject: [PATCH 0/7] Rework some IOV handling in TCP code Date: Mon, 28 Oct 2024 20:40:43 +1100 Message-ID: <20241028094050.1609090-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.47.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: UO7DK7AWKGZBXMFD75PINQ6KD6EUMJJ5 X-Message-ID-Hash: UO7DK7AWKGZBXMFD75PINQ6KD6EUMJJ5 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: These reworks are largely aimed at making the vhost-user integration easier, and with luck allowing more logic to be shared between it and the existing "buffer" paths. Of course, in the short term, these will probably conflict with the patches... I hope it ends up as a net positive, Laurent, let me know. I think a number of similar changes should be possible for UDP, but I haven't tackled that yet. David Gibson (7): tcp: Pass TCP header and payload separately to tcp_update_check_tcp[46]() tcp: Move tcp_l2_buf_fill_headers() to tcp_buf.c tcp: Rework tcp_l2_buf_fill_headers() into tcp_buf_make_frame() tcp: Don't use return value from tcp_fill_headers[46] to adjust iov_len tcp: Pass TCP header and payload separately to tcp_fill_headers[46]() tcp: Merge tcp_update_check_tcp[46]() tcp: Fold tcp_update_csum() into tcp_fill_header() tcp.c | 232 +++++++++++-------------------------------------- tcp_buf.c | 48 +++++++--- tcp_internal.h | 15 +++- 3 files changed, 100 insertions(+), 195 deletions(-) -- 2.47.0