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=L+sIclve; 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 5A25F5A0265 for ; Tue, 24 Feb 2026 13:22:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771935752; 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=M3E6GSZTwrklNc/QVU+lOhi57Mco7yJ7zhQBotSv7Hg=; b=L+sIclveoz0mQuYFiXFbAuycOldCvnjpvTi4RS12Rb+sndUQWjDu+u+/mXR5IRiYVZL1KI 3scW7V918a+BIEDZvlOvqT495LV6lnljwigUJCjbFOAzPpPa/jFSrAiX8Z5+ovdLWaRnJ1 gtkIt4eR0HN9Pts40bfXQS36iNWU3jU= 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-260-DtLPyIBIPK-jnrtvQgTMeA-1; Tue, 24 Feb 2026 07:22:30 -0500 X-MC-Unique: DtLPyIBIPK-jnrtvQgTMeA-1 X-Mimecast-MFC-AGG-ID: DtLPyIBIPK-jnrtvQgTMeA_1771935749 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 8836D1800578 for ; Tue, 24 Feb 2026 12:22:29 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.45.225.0]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7710D1955F43; Tue, 24 Feb 2026 12:22:28 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH trivial] tcp_vu, udp_vu: Fix comment headers for header length functions Date: Tue, 24 Feb 2026 13:22:27 +0100 Message-ID: <20260224122227.437310-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ISUCmaSXkoThiZFsF7OmPsyrtpSYdtDN3VvTLZLlUvQ_1771935749 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: TCWVKH6N6CT6YRPQSLWQXVAVMFDUJUNW X-Message-ID-Hash: TCWVKH6N6CT6YRPQSLWQXVAVMFDUJUNW 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: The comment headers for tcp_vu_hdrlen() and udp_vu_hdrlen() described the return value as "the size of the header in level 2 frame", but these functions also include the virtio net header, which is not part of the L2 frame. Signed-off-by: Laurent Vivier --- tcp_vu.c | 4 ++-- udp_vu.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tcp_vu.c b/tcp_vu.c index 94169c21f700..8908d376a7dd 100644 --- a/tcp_vu.c +++ b/tcp_vu.c @@ -40,10 +40,10 @@ static struct vu_virtq_element elem[VIRTQUEUE_MAX_SIZE]; static int head[VIRTQUEUE_MAX_SIZE + 1]; /** - * tcp_vu_hdrlen() - return the size of the header in level 2 frame (TCP) + * tcp_vu_hdrlen() - Return the size of virtio net and L2 headers (TCP) * @v6: Set for IPv6 packet * - * Return: return the size of the header + * Return: total size of virtio net header, Ethernet, IP and TCP headers */ static size_t tcp_vu_hdrlen(bool v6) { diff --git a/udp_vu.c b/udp_vu.c index d190fef82d49..dd3f8e9272ff 100644 --- a/udp_vu.c +++ b/udp_vu.c @@ -37,10 +37,10 @@ static struct iovec iov_vu [VIRTQUEUE_MAX_SIZE]; static struct vu_virtq_element elem [VIRTQUEUE_MAX_SIZE]; /** - * udp_vu_hdrlen() - return the size of the header in level 2 frame (UDP) + * udp_vu_hdrlen() - Return the size of virtio net and L2 headers (UDP) * @v6: Set for IPv6 packet * - * Return: return the size of the header + * Return: total size of virtio net header, Ethernet, IP and UDP headers */ static size_t udp_vu_hdrlen(bool v6) { -- 2.53.0