diff options
author | Nikolay Aleksandrov <razor@blackwall.org> | 2022-04-01 10:33:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-01 14:09:17 +0300 |
commit | 392baa339c6a42a2cb088e5e5df2b59b8f89be24 (patch) | |
tree | 837722a430699bb426e0ddce2ae8db7fcbac03e1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6bf92d70e690b7ff12b24f4bfff5e5434d019b82 (diff) | |
download | linux-392baa339c6a42a2cb088e5e5df2b59b8f89be24.tar.xz |
selftests: net: add delete nexthop route warning test
Add a test which causes a WARNING on kernels which treat a
nexthop route like a normal route when comparing for deletion and a
device is specified. That is, a route is found but we hit a warning while
matching it. The warning is from fib_info_nh() in include/net/nexthop.h
because we run it on a fib_info with nexthop object. The call chain is:
inet_rtm_delroute -> fib_table_delete -> fib_nh_match (called with a
nexthop fib_info and also with fc_oif set thus calling fib_info_nh on
the fib_info and triggering the warning).
Repro steps:
$ ip nexthop add id 12 via 172.16.1.3 dev veth1
$ ip route add 172.16.101.1/32 nhid 12
$ ip route delete 172.16.101.1/32 dev veth1
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions