android_kernel_motorola_sm6375/tools/testing
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dmitry Yakunin 64e25a5d35
UPSTREAM: bpf: Allow to specify ifindex for skb in bpf_prog_test_run_skb
Now skb->dev is unconditionally set to the loopback device in current net
namespace. But if we want to test bpf program which contains code branch
based on ifindex condition (eg filters out localhost packets) it is useful
to allow specifying of ifindex from userspace. This patch adds such option
through ctx_in (__sk_buff) parameter.

Change-Id: Ia56479984ad24f3e0deb878c30dc42a6377bfb0b
Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200803090545.82046-3-zeil@yandex-team.ru
2026-01-14 18:12:12 -08:00
..
fault-injection
ktest ktest.pl: Prevent recursion of default variable options 2025-08-28 16:21:26 +02:00
nvdimm
radix-tree
scatterlist
selftests UPSTREAM: bpf: Allow to specify ifindex for skb in bpf_prog_test_run_skb 2026-01-14 18:12:12 -08:00
vsock