Home
last modified time | relevance | path

Searched hist:"9 ee0c7b8654346d60c823babe4b3747357a30477" (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_change_tail.c9ee0c7b8654346d60c823babe4b3747357a30477 Fri Dec 13 04:40:55 CET 2024 Cong Wang <cong.wang@bytedance.com> selftests/bpf: Add a BPF selftest for bpf_skb_change_tail()

As requested by Daniel, we need to add a selftest to cover
bpf_skb_change_tail() cases in skb_verdict. Here we test trimming,
growing and error cases, and validate its expected return values and the
expected sizes of the payload.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241213034057.246437-3-xiyou.wangcong@gmail.com
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_basic.cdiff 9ee0c7b8654346d60c823babe4b3747357a30477 Fri Dec 13 04:40:55 CET 2024 Cong Wang <cong.wang@bytedance.com> selftests/bpf: Add a BPF selftest for bpf_skb_change_tail()

As requested by Daniel, we need to add a selftest to cover
bpf_skb_change_tail() cases in skb_verdict. Here we test trimming,
growing and error cases, and validate its expected return values and the
expected sizes of the payload.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241213034057.246437-3-xiyou.wangcong@gmail.com