diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2025-11-12 15:23:31 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-11-14 18:49:18 -0800 |
| commit | 6cc73f35406cae1f053e984e8de40e6dc9681446 (patch) | |
| tree | 00949d8cfcf380517604cadad13c417f401775da /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | d946f3c98328171fa50ddb908593cf833587f725 (diff) | |
selftests/bpf: Test bpf_skb_check_mtu(BPF_MTU_CHK_SEGS) when transport_header is not set
Add a test to check that bpf_skb_check_mtu(BPF_MTU_CHK_SEGS) is
rejected (-EINVAL) if skb->transport_header is not set. The test
needs to lower the MTU of the loopback device. Thus, take this
opportunity to run the test in a netns by adding "ns_" to the test
name. The "serial_" prefix can then be removed.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20251112232331.1566074-2-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
