diff options
| author | Minxi Hou <houminxi@gmail.com> | 2026-07-02 03:49:26 -0400 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-07-08 10:00:32 +0200 |
| commit | a211b03fee2c87704b38db08b039bd2c597a2eea (patch) | |
| tree | 0865aa9b02b0c3bb910ea9e4ee31cd6665e6de9e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 4a13f31a92f35161b499bf29638336885259da78 (diff) | |
selftests/net/openvswitch: add output truncation test
Add test_trunc exercising the OVS_ACTION_ATTR_TRUNC action. The test
verifies truncation limits in four steps: reject trunc(1) and
trunc(13) which are below ETH_HLEN, confirm normal forwarding works,
apply trunc(14) which truncates packets to the Ethernet header and
verify ping fails, then restore normal forwarding and verify recovery.
The kernel requires max_len >= ETH_HLEN (14 bytes). trunc(14) sets
OVS_CB(skb)->cutlen so pskb_trim strips the IP payload at output
time; the receiver drops the runt frame and no echo reply is
generated.
Signed-off-by: Minxi Hou <houminxi@gmail.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20260702074926.1174810-1-houminxi@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
