From: Laurent Vivier <lvivier@redhat.com>
To: passt-dev@passt.top
Cc: Laurent Vivier <lvivier@redhat.com>
Subject: [PATCH v2 0/2] Fix minimum frame size checks in vhost-user paths
Date: Mon, 23 Feb 2026 15:10:25 +0100 [thread overview]
Message-ID: <20260223141027.2205762-1-lvivier@redhat.com> (raw)
In the vhost-user code paths, buffers from the virtio queue include
a virtio net header prepended to the Ethernet frame. The minimum
frame size checks (ETH_ZLEN, i.e. 60 bytes per IEEE 802.3) must
account for this extra header, otherwise the size requested from
vu_collect() and validated in ASSERT() is too small.
v2:
- PATCH 1/2 is merged, rebase the series on top of master
- Add a patch to remove VNET_HLEN from l2len in vu_pad() callers
- Remove assert on ETH_ZLEN in tcp_vu_prepare() as the size is
trimmed to the actual data size
Laurent Vivier (2):
tcp_vu: vu_pad() expects l2 length
tcp_vu, udp_vu: Account for virtio net header in minimum frame size
tcp_vu.c | 17 ++++++++++-------
udp_vu.c | 2 +-
2 files changed, 11 insertions(+), 8 deletions(-)
--
2.53.0
next reply other threads:[~2026-02-23 14:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 14:10 Laurent Vivier [this message]
2026-02-23 14:10 ` [PATCH v2 1/2] tcp_vu: vu_pad() expects l2 length Laurent Vivier
2026-02-23 14:10 ` [PATCH v2 2/2] tcp_vu, udp_vu: Account for virtio net header in minimum frame size Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260223141027.2205762-1-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).