]> git.itanic.dy.fi Git - linux-stable/commit
selftests/net: mv bpf/nat6to4.c to net folder
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 18 Jan 2023 02:09:27 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:11:10 +0000 (16:11 +0200)
commita0ec52f36ce98796aa3076885b6b96dc7e093384
tree0b465bee56d2931d70a0e819b285696ede79fc70
parentf1fa6e6f85cb5cbf3f1e78c42c25f3b974584543
selftests/net: mv bpf/nat6to4.c to net folder

commit 3c107f36db061603bee7564fbd6388b1f1879fd3 upstream.

There are some issues with the bpf/nat6to4.c building.

1. It use TEST_CUSTOM_PROGS, which will add the nat6to4.o to
   kselftest-list file and run by common run_tests.
2. When building the test via `make -C tools/testing/selftests/
   TARGETS="net"`, the nat6to4.o will be build in selftests/net/bpf/
   folder. But in test udpgro_frglist.sh it refers to ../bpf/nat6to4.o.
   The correct path should be ./bpf/nat6to4.o.
3. If building the test via `make -C tools/testing/selftests/ TARGETS="net"
   install`. The nat6to4.o will be installed to kselftest_install/net/
   folder. Then the udpgro_frglist.sh should refer to ./nat6to4.o.

To fix the confusing test path, let's just move the nat6to4.c to net folder
and build it as TEST_GEN_FILES.

Fixes: edae34a3ed92 ("selftests net: add UDP GRO fraglist + bpf self-tests")
Tested-by: Björn Töpel <bjorn@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20230118020927.3971864-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hardik Garg <hargar@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bpf/Makefile [deleted file]
tools/testing/selftests/net/nat6to4.c [moved from tools/testing/selftests/net/bpf/nat6to4.c with 100% similarity]
tools/testing/selftests/net/udpgro_frglist.sh