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=V++qG7VG; 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 312ED5A0265 for ; Tue, 26 May 2026 14:44:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779799497; 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: in-reply-to:in-reply-to:references:references; bh=WBsQKw7HQQRm+QxoW63KvHJ+dwgm454jWzsmCY/iKuA=; b=V++qG7VGIPMF/YnEHbOJ3fcwI6weU1LIGcybEvP0hmHFSmh/UTDqJgPStspeERGnDLZBC+ rb8A2aUA63L6Khf8IMr8Et1owmvc5x/cmH8fNQblwIrASuNNX4autSHVhxhFiC1YOO60xJ jgAnm8lBCfdIfb5y44jPyAcC66EbFQo= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-456-ZqTN09kPMMi0QMgk0YT3JA-1; Tue, 26 May 2026 08:44:53 -0400 X-MC-Unique: ZqTN09kPMMi0QMgk0YT3JA-1 X-Mimecast-MFC-AGG-ID: ZqTN09kPMMi0QMgk0YT3JA_1779799493 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-49051422d55so32023955e9.2 for ; Tue, 26 May 2026 05:44:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779799492; x=1780404292; h=date:content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WBsQKw7HQQRm+QxoW63KvHJ+dwgm454jWzsmCY/iKuA=; b=DAaHpRlTqXQeMNFkpHVwS5X2foGSV1Y+5DlWE+WaZmo4jtsaBPmVsH9lcUrTBGXwIL EOk9YtKJbDxaYfyYNk4Jt5T08k4QJkVIaQaTStAcLK7jZUzsIgVsHjgBBJcDs6m78h/e MJ6HnV4E8Pic41QfVsqTbqAJVWjZY+6t+yD+O+I/PGkAIlNbbDlbiTzjCwaNR8GomKFG CSTlGeqw0EqVxWlZkMwvz6RBSBE++QyBcns7eg7MqXIjHCt8M3jsUB+NHYG1J5C4Qa3r jonFMfzSIGSrvQrtp5KyuX9MJmBBk/ro+yDDo39POrM8WcP7j9C1BEHByQ0ZFdSVfcJ1 cnCQ== X-Gm-Message-State: AOJu0Yyge2tb3ztvAFdd97YzwNtCyzaXFp8CLUkriGwDOe02yDiR3XNd EB1p7IdiTAmR5io2kxV8+99UppzkrzQYCKDXjbQCjDRNUfnmIRCBIqvDsljmkruAQs4lR+wVs+w Pdz8r9MMkzzgqBCGy3SQX7LvyyVncmoFXlYUE2viOgFlhwiMaCYVSJB7vHXsvn/0pUN4BZjKRH1 zq9iOuif3Sb/CC/GOCoukVksVjCOf/d/2PoQCb X-Gm-Gg: Acq92OENLhnN8aZTlzwdFwu8fuoNAt1j+qdTttNGUs6izfbRRgFRlSpHMQXRi27huCa 1VOEM3cuPDRVZSwoyMs2riudJLqcwhKLKBVQxmykF/iiQR8IrFJ8FBU2dlniib2ko4D7KZ7qIhX guI9n0sdGnzE7kgpscIxws7HA/yaIEUxepQ1PYSfLcMBwg8KQShbqS91FjhJPJCD3Ba7u/+++H4 3c0rLxkeIuKfF2g7IwSQ78osOKdBNntE1iYC1Jz5sK4jIpLnHIGWVM9CgLgqpPOv9W9tLZ/mufP 9PLOhjNOFVU4SPPJPxYNt8tlkd4wfqcNjkRcuRgvDOJRDKUZyZT4GE2hhaimvM/pjxVhTN1c0Lw K7/hKIaQCFZLJUxAGpocGcIeKTcZXr4tC X-Received: by 2002:a05:600c:c4a1:b0:48f:e230:2a1e with SMTP id 5b1f17b1804b1-49042ae7881mr326156895e9.33.1779799492475; Tue, 26 May 2026 05:44:52 -0700 (PDT) X-Received: by 2002:a05:600c:c4a1:b0:48f:e230:2a1e with SMTP id 5b1f17b1804b1-49042ae7881mr326156355e9.33.1779799491889; Tue, 26 May 2026 05:44:51 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49042aec059sm130311685e9.28.2026.05.26.05.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 05:44:51 -0700 (PDT) From: Stefano Brivio To: Laurent Vivier Subject: Re: [PATCH v7 0/4] vhost-user,tcp: Handle multiple iovec entries per virtqueue element Message-ID: <20260526144450.492c6554@elisabeth> In-Reply-To: <20260520151010.496286-1-lvivier@redhat.com> References: <20260520151010.496286-1-lvivier@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Tue, 26 May 2026 14:44:50 +0200 (CEST) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: PFlXeGrsRxT5yLOWRjBXkR7ja5hRkvXsQx7uviyuRN8_1779799493 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: J5FQ7WKFTXEFKGD4RZI6QV4A6NVOWY4Y X-Message-ID-Hash: J5FQ7WKFTXEFKGD4RZI6QV4A6NVOWY4Y X-MailFrom: sbrivio@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: passt-dev@passt.top 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: On Wed, 20 May 2026 17:10:06 +0200 Laurent Vivier wrote: > 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: 20260520095526.21519-1-lvivier@redhat.com > > v7: > - Use initializers for struct tcphdr > - Rename reused 'payload' variable to 'l2frame' > - Fix vu_pad() double-offset bug in tcp_vu_data_from_sock() > - Remove redundant *elem_used = 0 before truncation loop > - Add missing @vnlen to tcp_vu_send_dup() doc comment Applied. -- Stefano