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=Q7bI6+jA; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 6E0E45A0262 for ; Wed, 01 Apr 2026 21:26:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775071569; 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=3nhkIrnU7iyfXBLOJCuTonAA9l2gNBo8jQEtxh6bVqs=; b=Q7bI6+jAYQ4/caRdO2V9Wngc7qXlGADcWMYnk4yQbRZf1CyxaW3M1bRZ7UxUYmC0mI2EUO Z/pX8pVPpxc8HG+BSsQgycxFvxynclynZpdHLdgqVodkkljWWMMNr6ANfWXvxZ2FQ1tS6w 8MYVhRgMKU7hjjOHIiOGbP3GpJY7Yrk= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-657-Nzj3FmLQMZWLOm3JkZsEIg-1; Wed, 01 Apr 2026 15:26:08 -0400 X-MC-Unique: Nzj3FmLQMZWLOm3JkZsEIg-1 X-Mimecast-MFC-AGG-ID: Nzj3FmLQMZWLOm3JkZsEIg_1775071567 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 595A6180049D for ; Wed, 1 Apr 2026 19:26:07 +0000 (UTC) Received: from lenovo-t14s.redhat.corp (headnet01.pony-001.prod.iad2.dc.redhat.com [10.2.32.101]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 66A3630001A2; Wed, 1 Apr 2026 19:26:06 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH v3 0/4] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Date: Wed, 1 Apr 2026 21:26:01 +0200 Message-ID: <20260401192605.1783897-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: B1pgN9iR3iJP138yq_rfDPqdyZpJroL6H12JTfR4bKc_1775071567 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: 3N3TGZUYSOO5QBXNTT4DHOVOJOTMM6I2 X-Message-ID-Hash: 3N3TGZUYSOO5QBXNTT4DHOVOJOTMM6I2 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: 20260401192326.1783350-1-lvivier@redhat.com 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