public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/7] vhost-user,tcp: Handle multiple iovec entries per virtqueue element
@ 2026-03-23 16:52 Laurent Vivier
  2026-03-23 16:52 ` [PATCH 1/7] tcp: pass ipv4h checksum, not a pointer to the checksum Laurent Vivier
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Laurent Vivier @ 2026-03-23 16:52 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: 20260323143151.538673-1-lvivier@redhat.com

Laurent Vivier (7):
  tcp: pass ipv4h checksum, not a pointer to the checksum
  tcp: use iov_tail to access headers in tcp_fill_headers()
  tcp_vu: Use iov_tail helpers to build headers in tcp_vu_prepare()
  tcp_vu: Support multibuffer frames in tcp_vu_sock_recv()
  tcp: Use iov_tail to access headers in tcp_prepare_flags()
  iov: introduce iov_memcopy()
  tcp_vu: Use iov_tail helpers to build headers in tcp_vu_send_flag()

 iov.c          |  45 +++++++
 iov.h          |   2 +
 tcp.c          | 180 ++++++++++++++-----------
 tcp_buf.c      |  34 ++---
 tcp_internal.h |   9 +-
 tcp_vu.c       | 354 ++++++++++++++++++++++++++++---------------------
 vu_common.h    |  20 ---
 7 files changed, 368 insertions(+), 276 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-03-25  5:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-23 16:52 [PATCH 0/7] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Laurent Vivier
2026-03-23 16:52 ` [PATCH 1/7] tcp: pass ipv4h checksum, not a pointer to the checksum Laurent Vivier
2026-03-24  3:53   ` David Gibson
2026-03-24  7:56     ` Laurent Vivier
2026-03-24 23:49       ` David Gibson
2026-03-23 16:52 ` [PATCH 2/7] tcp: use iov_tail to access headers in tcp_fill_headers() Laurent Vivier
2026-03-24  3:58   ` David Gibson
2026-03-23 16:52 ` [PATCH 3/7] tcp_vu: Use iov_tail helpers to build headers in tcp_vu_prepare() Laurent Vivier
2026-03-25  4:46   ` David Gibson
2026-03-23 16:52 ` [PATCH 4/7] tcp_vu: Support multibuffer frames in tcp_vu_sock_recv() Laurent Vivier
2026-03-25  5:06   ` David Gibson
2026-03-23 16:52 ` [PATCH 5/7] tcp: Use iov_tail to access headers in tcp_prepare_flags() Laurent Vivier
2026-03-23 16:52 ` [PATCH 6/7] iov: introduce iov_memcopy() Laurent Vivier
2026-03-23 16:52 ` [PATCH 7/7] tcp_vu: Use iov_tail helpers to build headers in tcp_vu_send_flag() Laurent Vivier
2026-03-25  5:07 ` [PATCH 0/7] vhost-user,tcp: Handle multiple iovec entries per virtqueue element David Gibson

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