From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XsOe7YYi; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 65D855A0626 for ; Mon, 23 Mar 2026 17:53:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774284784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iyDBbUUofi0xM0FepKiWWuCSceyD5mb9vM2eotqwL/E=; b=XsOe7YYim0GNhpE2Kw42vXPNUm4dyZSri/uVBqpq1ONMzpKLU3katPXDSbGqLPijzTPhgj WRG1Npg5bFjFBzitgL5w8Vxul/2EycZ5AR8mkKUBcMmwmBp8uG99FhaTrUphdexRk4UHLb ey9fpnt7sV4bIJZCI6YQaiumDEd9jk0= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-574-3yOSzWj7MjOQa-csPl53PA-1; Mon, 23 Mar 2026 12:53:03 -0400 X-MC-Unique: 3yOSzWj7MjOQa-csPl53PA-1 X-Mimecast-MFC-AGG-ID: 3yOSzWj7MjOQa-csPl53PA_1774284782 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F27FF1955D53 for ; Mon, 23 Mar 2026 16:53:01 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.44.32.96]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0872330001A2; Mon, 23 Mar 2026 16:53:00 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH 0/7] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Date: Mon, 23 Mar 2026 17:52:52 +0100 Message-ID: <20260323165259.1253482-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: yqZMekNW9FEWOE8mQEzfAxAldXB4W3hBIhysD98664U_1774284782 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: REPLI2YS2JOA3NSHTCCN67RLCCQDNRKG X-Message-ID-Hash: REPLI2YS2JOA3NSHTCCN67RLCCQDNRKG X-MailFrom: lvivier@redhat.com 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: Laurent Vivier 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: 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