public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Cc: David Gibson <david@gibson.dropbear.id.au>
Subject: [PATCH 0/7] TCP buffer handling cleanups (including vhost)
Date: Wed, 27 Nov 2024 14:54:03 +1100	[thread overview]
Message-ID: <20241127035410.1167773-1-david@gibson.dropbear.id.au> (raw)

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


             reply	other threads:[~2024-11-27  3:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-27  3:54 David Gibson [this message]
2024-11-27  3:54 ` [PATCH 1/7] iov: iov tail helpers David Gibson
2024-11-27  3:54 ` [PATCH 2/7] iov, checksum: Replace csum_iov() with csum_iov_tail() David Gibson
2024-11-27  3:54 ` [PATCH 3/7] tcp: Pass TCP header and payload separately to tcp_update_check_tcp[46]() David Gibson
2024-11-27  3:54 ` [PATCH 4/7] tcp: Pass TCP header and payload separately to tcp_fill_headers[46]() David Gibson
2024-11-27  3:54 ` [PATCH 5/7] tcp: Merge tcp_update_check_tcp[46]() David Gibson
2024-11-27  3:54 ` [PATCH 6/7] tcp: Merge tcp_fill_headers[46]() with each other David Gibson
2024-11-27  3:54 ` [PATCH 7/7] tcp_vu: Remove unnecessary tcp_vu_update_check() function David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241127035410.1167773-1-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).