]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest: tun: Add test for sending gso packet into tun
authorXu Du <xudu@redhat.com>
Wed, 21 Jan 2026 10:04:59 +0000 (18:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jan 2026 19:43:28 +0000 (11:43 -0800)
commit400e658aa096cda99b37ce806ed63cfe894c9566
tree14c9b8e76c9c5c9a4bc0dc8fd4e971011bb8a4a4
parent24e59f26eef2c806a8dbb94859aaf7af28197148
selftest: tun: Add test for sending gso packet into tun

The test constructs a raw packet, prepends a virtio_net_hdr,
and writes the result to the TUN device. This mimics the behavior
of a vm forwarding a guest's packet to the host networking stack.

Signed-off-by: Xu Du <xudu@redhat.com>
Link: https://patch.msgid.link/a988dbc9ca109e4f1f0b33858c5035bce8ebede3.1768979440.git.xudu@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tun.c