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=gTbT34kT; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 104805A061D for ; Wed, 27 Nov 2024 04:54:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1732679649; bh=zzXb75mxz5/bLHGG/NBpKQDoRZMTZws9I0+NeVfAY5g=; h=From:To:Cc:Subject:Date:From; b=gTbT34kTBmbMHmJjA/PwAZgbKpvKpC/UYt8WSNz49Y69KVcO/us5ggfMmMWoZKGtk kQVM5taZi1SnC8uYa+klRnm/4lEPM+GNDE4EjcYgKoZW29bPOwGiwWAXfMKmBc0Jx3 P0ggnX75qZwiHOa6chUE8zzA8se4aWtvURQ04cVe/FPQ4Awv999OAjvYnP8EZ9Tb3d PUX9BImIA54+MpBvU6OvSbMnCbie1WL4q/grLONFdbtyWGc1fLry3mk1ckCY1VnRUy Xb6Gtb7AU1L/PoT/JlMhOuqYicNn9bBNwr4z1EfGyke0J6KY+NG/JYEUwAwP+VwSg2 GJRGUT+yhI2aQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XyltT5CfQz4xgF; Wed, 27 Nov 2024 14:54:09 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/7] TCP buffer handling cleanups (including vhost) Date: Wed, 27 Nov 2024 14:54:03 +1100 Message-ID: <20241127035410.1167773-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: DAVCN32AYOHFE2UMBTS66P7LPAOFPHIK X-Message-ID-Hash: DAVCN32AYOHFE2UMBTS66P7LPAOFPHIK 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: Here's a current version of my IOV tail and some cleanups to TCP buffer handling based on it. Now rebased on top of v14 of the vhost-user patches. This was aimed at sharing more code between the "buffer" and vhost-user paths, but that turned out to be trickier than I anticipated, so it hasn't really been accomplished. Nonetheless I think these are reasonable cleanups on their own merits, and may yet make sharing some more code between the paths easier in future. David Gibson (7): iov: iov tail helpers iov, checksum: Replace csum_iov() with csum_iov_tail() tcp: Pass TCP header and payload separately to tcp_update_check_tcp[46]() tcp: Pass TCP header and payload separately to tcp_fill_headers[46]() tcp: Merge tcp_update_check_tcp[46]() tcp: Merge tcp_fill_headers[46]() with each other tcp_vu: Remove unnecessary tcp_vu_update_check() function checksum.c | 58 +++++-------- checksum.h | 8 +- iov.c | 91 ++++++++++++++++++++ iov.h | 76 ++++++++++++++++ tap.c | 6 +- tcp.c | 229 +++++++++++++------------------------------------ tcp_buf.c | 33 ++++--- tcp_internal.h | 21 ++--- tcp_vu.c | 120 ++++++++++---------------- udp.c | 7 +- udp_vu.c | 9 +- 11 files changed, 338 insertions(+), 320 deletions(-) -- 2.47.0