diff options
| author | Mahe Tardy <mahe.tardy@gmail.com> | 2026-07-09 14:49:00 +0000 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2026-07-10 11:57:02 +0200 |
| commit | b1d4514ff1f96ee83192e17d3db766d2e4ec77f7 (patch) | |
| tree | 8715c6bb12e7d0771c29e0d86f216a903491193d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 49d07ba673bbbbde876f6854282961ccf67acd93 (diff) | |
selftests/bpf: Add bpf_icmp_send no route test
For normal live cgroup_skb paths, the skb should already be routed. The
exception is for test run via BPF_PROG_TEST_RUN with packets created
via bpf_prog_test_run_skb. Those lack dst route and thus the icmp_send
would quietly fail by returning early.
This test exercises this and makes sure the kfunc returns -ENETUNREACH.
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Reviewed-by: Jordan Rife <jordan@jrife.io>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://lore.kernel.org/bpf/20260709144900.245904-6-mahe.tardy@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
