mirror_ubuntu-kernels/tools/testing/selftests
Nicolas Dichtel e550f9dc38 selftests/net: test nexthop without gw
BugLink: https://bugs.launchpad.net/bugs/1988809

This test implement the scenario described in the commit
"ip: fix dflt addr selection for connected nexthop".
The test configures a nexthop object with an output device only (no gateway
address) and a route that uses this nexthop. The goal is to check if the
kernel selects a valid source address.

Link: https://lore.kernel.org/netdev/20220712095545.10947-1-nicolas.dichtel@6wind.com/
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20220713114853.29406-2-nicolas.dichtel@6wind.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

(cherry-picked from commit cd72e61bad)
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-09-20 11:00:09 +02:00
..
arm64 kselftest/arm64: bti: force static linking 2022-08-10 09:24:31 +02:00
bpf selftests/bpf: Check dst_port only on the client socket 2022-09-16 10:53:49 +02:00
breakpoints
capabilities
cgroup kseltest/cgroup: Make test_stress.sh work if run interactively 2022-08-10 09:25:30 +02:00
clone3 selftests: fixup build warnings in pidfd / clone3 tests 2022-03-07 11:44:13 +01:00
core selftests/core: fix conflicting types compile error for close_range() 2021-12-07 07:32:23 +01:00
cpu-hotplug
cpufreq selftests/cpufreq: Rename DEBUG_PI_LIST to DEBUG_PLIST 2021-08-31 11:00:02 -06:00
damon selftests/damon: test debugfs file reads/writes with huge count 2022-01-04 09:49:29 +01:00
dma
dmabuf-heaps
drivers selftests: ocelot: tc_flower_chains: specify conform-exceed action for policer 2022-06-22 14:23:20 +02:00
efivarfs
exec selftests/exec: Add non-regular to TEST_GEN_PROGS 2022-03-07 11:44:09 +01:00
filesystems selftests/binderfs: add test for feature files 2021-07-21 13:46:36 +02:00
firmware selftests: firmware: Fix ignored return val of asprintf() warn 2021-07-21 16:11:42 +02:00
fpu
ftrace selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT 2022-02-23 09:17:44 +01:00
futex selftests: futex: Use variable MAKE instead of make 2022-02-10 15:31:35 +01:00
gpio selftests: gpio: fix gpio compiling error 2022-01-04 09:48:48 +01:00
ia64
intel_pstate
ipc
ir
kcmp
kexec
kmod
kselftest UBUNTU: SAUCE: kselftest/runner: avoid using timeout if timeout is disabled 2021-11-02 08:24:48 +01:00
kvm selftests: KVM: Handle compiler optimizations in ucall 2022-09-16 10:53:52 +02:00
landlock landlock: Fix same-layer rule unions 2022-08-10 09:25:19 +02:00
lib selftests: lib: Add wrapper script for test_scanf 2021-05-19 15:05:11 +02:00
livepatch
lkdtm selftests/lkdtm: Add UBSAN config 2022-05-20 14:38:23 +02:00
locking
media_tests
membarrier
memfd selftests/memfd: clean up mapping in mfd_fail_write 2022-03-23 11:49:04 +01:00
memory-hotplug UBUNTU: SAUCE: selftests: memory-hotplug: bump timeout to 10min 2021-11-02 08:24:54 +01:00
mincore selftests: skip mincore.check_file_mmap when fs lacks needed support 2022-03-07 11:44:04 +01:00
mount
mount_setattr tests: fix idmapped mount_setattr test 2022-03-07 11:44:18 +01:00
move_mount_set_group tests: add move_mount(MOVE_MOUNT_SET_GROUP) selftest 2021-07-26 14:45:19 +02:00
mqueue testing/selftests/mqueue: Fix mq_perf_tests to free the allocated cpu set 2022-05-20 14:42:21 +02:00
nci selftests: nci: replace unsigned int with int 2021-09-16 13:55:51 +01:00
net selftests/net: test nexthop without gw 2022-09-20 11:00:09 +02:00
netfilter selftests: netfilter: correct PKTGEN_SCRIPT_PATHS in nft_concat_range.sh 2022-08-26 10:53:51 +02:00
nsfs
ntb
openat2 selftests: openat2: Skip testcases that fail with EOPNOTSUPP 2022-03-07 11:44:04 +01:00
perf_events signal: Deliver all of the siginfo perf data in _perf 2021-05-18 16:20:54 -05:00
pid_namespace
pidfd selftests: fixup build warnings in pidfd / clone3 tests 2022-03-07 11:44:13 +01:00
powerpc selftests/powerpc: Add a test of sigreturning to the kernel 2022-01-28 11:02:59 +01:00
prctl
proc proc: add .gitignore for proc-subset-pid selftest 2021-06-05 08:58:11 -07:00
pstore
ptp
ptrace
rcutorture torture: Make torture.sh help message match reality 2022-05-20 14:40:25 +02:00
resctrl selftests/resctrl: Fix null pointer dereference on open failed 2022-08-10 09:24:15 +02:00
rlimits kselftests: Add test to check for rlimit changes in different user namespaces 2021-04-30 14:14:03 -05:00
rseq selftests/rseq: Change type of rseq_offset to ptrdiff_t 2022-08-26 10:54:23 +02:00
rtc selftests: rtc: Increase test timeout so that all tests run 2022-03-07 11:44:04 +01:00
safesetid selftests: safesetid: Fix spelling mistake "cant" -> "can't" 2021-08-26 15:15:24 -06:00
sched kselftests/sched: cleanup the child processes 2022-01-04 09:48:15 +01:00
seccomp selftests/seccomp: Don't call read() on TTY from background pgrp 2022-06-22 14:23:16 +02:00
sgx selftests/sgx: Treat CC as one argument 2022-05-20 14:37:57 +02:00
sigaltstack selftest/sigaltstack: Use the AT_MINSIGSTKSZ aux vector if available 2021-05-19 12:38:17 +02:00
size
sparc64
splice selftests: splice: Adjust for handler fallback removal 2021-06-07 18:39:43 -06:00
static_keys
sync selftests/sync: Remove the deprecated config SYNC 2021-08-31 10:58:00 -06:00
syscall_user_dispatch
sysctl
tc-testing tc-testing: Add control-plane selftests for sch_mq 2021-08-04 12:42:27 +01:00
timens selftests/timens: Fix gettime_perf to work on powerpc 2021-04-21 22:52:32 +10:00
timers selftests: timers: rtcpie: skip test if default RTC device does not exist 2021-06-07 19:18:52 -06:00
tmpfs
tpm2
uevent
user
vDSO kselftest: Fix vdso_test_abi return status 2022-03-07 11:44:05 +01:00
vm Revert "selftest/vm: verify mmap addr in mremap_test" 2022-09-16 10:53:06 +02:00
watchdog
wireguard wireguard: device: reset peer src endpoint when netns exits 2022-01-04 09:49:08 +01:00
x86 selftests, x86: fix how check_cc.sh is being invoked 2022-05-20 14:38:08 +02:00
zram selftests/zram: Adapt the situation that /dev/zram0 is being used 2022-03-07 11:44:04 +01:00
.gitignore
gen_kselftest_tar.sh
kselftest_deps.sh
kselftest_harness.h kselftest: signal all child processes 2022-03-07 11:44:04 +01:00
kselftest_install.sh
kselftest_module.h
kselftest.h
lib.mk selftests: be sure to make khdr before other targets 2021-09-15 10:34:21 -06:00
Makefile selftests/damon: add damon to selftests root Makefile 2022-08-10 09:24:14 +02:00
run_kselftest.sh