public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: passt-dev@passt.top
Cc: Laurent Vivier <lvivier@redhat.com>
Subject: [PATCH v2 0/5] vhost-user,tcp: Handle multiple iovec entries per virtqueue element
Date: Fri, 27 Mar 2026 19:09:53 +0100	[thread overview]
Message-ID: <20260327180958.833430-1-lvivier@redhat.com> (raw)

This is the TCP counterpart to the UDP multi-iov series.  It converts
the TCP vhost-user receive path from direct pointer arithmetic (via
vu_eth(), vu_ip(), etc.) to the iov_tail abstraction, removing the
assumption that all headers reside in a single contiguous buffer.

With this series applied, the TCP path correctly handles virtio-net
drivers that provide multiple buffers per virtqueue element (e.g. iPXE
provides the vnet header in the first buffer and the frame payload in a
second one), matching the support already present in the UDP path.

Based-on: 20260327175834.831995-1-lvivier@redhat.com

v2:
- add "tcp: Encode checksum computation flags in a single parameter"
- remove IOV_PUT_HEADER()/with_header() and use IOV_PUSH_HEADER()
- don't use the iov_tail to provide the headers to the functions

Laurent Vivier (5):
  tcp: Encode checksum computation flags in a single parameter
  tcp_vu: Build headers on the stack and write them into the iovec
  tcp_vu: Support multibuffer frames in tcp_vu_sock_recv()
  iov: Add iov_memcopy() to copy data between iovec arrays
  tcp_vu: Support multibuffer frames in tcp_vu_send_flag()

 iov.c          |  45 ++++++
 iov.h          |   2 +
 tcp.c          |  25 ++--
 tcp_buf.c      |  24 ++--
 tcp_internal.h |   7 +-
 tcp_vu.c       | 371 +++++++++++++++++++++++++++++--------------------
 vu_common.h    |  20 ---
 7 files changed, 299 insertions(+), 195 deletions(-)

-- 
2.53.0


             reply	other threads:[~2026-03-27 18:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 18:09 Laurent Vivier [this message]
2026-03-27 18:09 ` [PATCH v2 1/5] tcp: Encode checksum computation flags in a single parameter Laurent Vivier
2026-03-27 18:09 ` [PATCH v2 2/5] tcp_vu: Build headers on the stack and write them into the iovec Laurent Vivier
2026-03-27 18:09 ` [PATCH v2 3/5] tcp_vu: Support multibuffer frames in tcp_vu_sock_recv() Laurent Vivier
2026-03-27 18:09 ` [PATCH v2 4/5] iov: Add iov_memcopy() to copy data between iovec arrays Laurent Vivier
2026-03-27 18:09 ` [PATCH v2 5/5] tcp_vu: Support multibuffer frames in tcp_vu_send_flag() Laurent Vivier

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=20260327180958.833430-1-lvivier@redhat.com \
    --to=lvivier@redhat.com \
    --cc=passt-dev@passt.top \
    /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).