]> www.infradead.org Git - nvme.git/commit
selftests/bpf: Test bpf_skb_change_tail() in TC ingress
authorCong Wang <cong.wang@bytedance.com>
Fri, 13 Dec 2024 03:40:57 +0000 (19:40 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 20 Dec 2024 22:13:31 +0000 (23:13 +0100)
commit4a58963d10fa3cb654b859e3f9a8aecbcf9f4982
tree29589262b6dc75a697cffe117fc1605afb565472
parent472759c9f5377912c7483cca5da847888a27cecc
selftests/bpf: Test bpf_skb_change_tail() in TC ingress

Similarly to the previous test, we also need a test case to cover
positive offsets as well, TC is an excellent hook for this.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Zijian Zhang <zijianzhang@bytedance.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241213034057.246437-5-xiyou.wangcong@gmail.com
tools/testing/selftests/bpf/prog_tests/tc_change_tail.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_tc_change_tail.c [new file with mode: 0644]