]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Add selftests for the invocation of bpf_lwt_xmit_push_encap
authorFeng Yang <yangfeng@kylinos.cn>
Wed, 4 Mar 2026 09:44:29 +0000 (17:44 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 5 Mar 2026 00:44:29 +0000 (16:44 -0800)
commite8ae16d65ac629bcdebf685b9ad9b008648b08b0
tree895b34a2a47129455a60cc1a10a3ca6a14b3049b
parent972787479ee73006fddb5e59ab5c8e733810ff42
selftests/bpf: Add selftests for the invocation of bpf_lwt_xmit_push_encap

Calling bpf_lwt_xmit_push_encap will not cause a crash when dst is missing.

Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260304094429.168521-3-yangfeng59949@163.com
tools/testing/selftests/bpf/prog_tests/lwt_misc.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/lwt_misc.c [new file with mode: 0644]