]> git.hungrycats.org Git - linux/commit
vsock/test: add test for small packets under pressure
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 8 Jul 2026 10:29:04 +0000 (12:29 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Jul 2026 10:11:06 +0000 (12:11 +0200)
commit30c82aa0a8b116989bc4d8f75e1936bd83c0134e
tree6e04e3757ae07cf956ea76087a163b6988d576a0
parent2a12c05aef213ff304ecc9e2f351de20731946b8
vsock/test: add test for small packets under pressure

Add a test that sends 2 MB of data using randomly sized small packets
(129-512 bytes) over a SOCK_STREAM connection. Packets above
GOOD_COPY_LEN (128) bypass the in-place coalescing in recv_enqueue(),
forcing each one into its own skb.

Without receive queue collapsing, the per-skb overhead eventually
exceeds buf_alloc and the connection is reset. The test verifies
that all data arrives and that content integrity is preserved.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Bobby Eshleman <bobbyeshleman@meta.com>
Link: https://patch.msgid.link/20260708102904.50732-3-sgarzare@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/vsock_test.c