summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@kernel.org>2026-11-12 11:20:01 +0100
committerJakub Kicinski <kuba@kernel.org>2026-11-12 11:25:23 -0800
commit53e7352d65f70b479de04c2c197aa5e3ca64d8f1 (patch)
tree0cd66a9f0ccc76f1f9a9fea3386bf490eff89da6 /rust/kernel/alloc/kvec
parent3921fb102d78a6d7aa61b8d273e097a1a8026b90 (diff)
selftests: net: add a test for NSH GSO
Send TCPv4 GSO packets encapsulated in a stack of NSH headers to a dummy device which has TSO disabled, using a packet socket with PACKET_VNET_HDR, and count the packets the device transmits. Packets with one or four NSH headers must be segmented. Packets with 5, 64 or 8000 NSH headers must be dropped: they exceed the recursion limit of the GSO handlers. Without the limit in nsh_gso_segment(), the last one overflows the kernel stack. # ./nsh_gso.sh PASS: 1 NSH headers: 4 packets sent PASS: 4 NSH headers: 4 packets sent PASS: 5 NSH headers: 0 packets sent PASS: 64 NSH headers: 0 packets sent PASS: 8000 NSH headers: 0 packets sent Signed-off-by: Eric Dumazet <edumazet@kernel.org> Link: https://patch.msgid.link/20261112102001.3744643-3-edumazet@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec')
0 files changed, 0 insertions, 0 deletions