public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v4 0/4] vhost-user,tcp: Handle multiple iovec entries per virtqueue element
@ 2026-04-01 21:55 Laurent Vivier
  2026-04-01 21:55 ` [PATCH v4 1/4] tcp: Encode checksum computation flags in a single parameter Laurent Vivier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Laurent Vivier @ 2026-04-01 21:55 UTC (permalink / raw)
  To: passt-dev; +Cc: Laurent Vivier

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: 20260401192326.1783350-1-lvivier@redhat.com

v4:
- fix error during rebasei, s/vu_pad_len/vu_pad/

v3:
- Rebased on top of
  [PATCH 00/10] vhost-user: Preparatory series for multiple iovec entries per virtqueue element

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 (4):
  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()
  tcp_vu: Support multibuffer frames in tcp_vu_send_flag()

 iov.c          |   1 -
 tcp.c          |  25 ++--
 tcp_buf.c      |  23 +--
 tcp_internal.h |   7 +-
 tcp_vu.c       | 395 +++++++++++++++++++++++++++++--------------------
 vu_common.h    |  20 ---
 6 files changed, 265 insertions(+), 206 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-01 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-01 21:55 [PATCH v4 0/4] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Laurent Vivier
2026-04-01 21:55 ` [PATCH v4 1/4] tcp: Encode checksum computation flags in a single parameter Laurent Vivier
2026-04-01 21:55 ` [PATCH v4 2/4] tcp_vu: Build headers on the stack and write them into the iovec Laurent Vivier
2026-04-01 21:55 ` [PATCH v4 3/4] tcp_vu: Support multibuffer frames in tcp_vu_sock_recv() Laurent Vivier
2026-04-01 21:55 ` [PATCH v4 4/4] tcp_vu: Support multibuffer frames in tcp_vu_send_flag() Laurent Vivier

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).