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=WIPX1Zc3; 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 877955A0262 for ; Fri, 27 Mar 2026 19:10:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774635004; 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=OSZ+/Q3WhXnTrKJ/B/2rTAEen0ahEbk3wymI+6SeYc0=; b=WIPX1Zc3ul/ZF0LuTGpByMG/AQjTMGJW/t7Rn/trvlzuDWMt8vmW/v9CnaEmg+YZwMSuZa ltIBFZ30GhL0wVDLr/QHlMuD16403BpNqlFBaC+AodgYl+Qvt2bJ3/Ce8XSOeDAOCu23Qe tajm0oJoWwYpbH7x+lfMsae+HkpdF6U= 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-86-2hJakdR_MR6YP-gyOXoK9A-1; Fri, 27 Mar 2026 14:10:03 -0400 X-MC-Unique: 2hJakdR_MR6YP-gyOXoK9A-1 X-Mimecast-MFC-AGG-ID: 2hJakdR_MR6YP-gyOXoK9A_1774635001 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 4A8F0195609D for ; Fri, 27 Mar 2026 18:10:01 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.44.32.96]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 53AA719560B1; Fri, 27 Mar 2026 18:10:00 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH v2 0/5] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Date: Fri, 27 Mar 2026 19:09:53 +0100 Message-ID: <20260327180958.833430-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: wQQx0dsV0GFU6hBefZXXr6Oag7NkZGZJTehjhNj3jp4_1774635001 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: ABR4WY6WCHWZCQR4LK2YTYUUFOJEAKBY X-Message-ID-Hash: ABR4WY6WCHWZCQR4LK2YTYUUFOJEAKBY 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: 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