make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fib_nexthops.sh TTEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: fib_nexthops.sh # 6.56 [+6.56] # 6.56 [+0.00] Basic functional tests # 6.56 [+0.00] ---------------------- # 6.65 [+0.09] TEST: List with nothing defined [ OK ] # 6.73 [+0.09] TEST: Nexthop get on non-existent id [ OK ] # 6.83 [+0.09] TEST: Nexthop del with non-existent id [ OK ] # 6.93 [+0.10] TEST: Nexthop del with non-existent id and extra attributes [ OK ] # 7.01 [+0.08] TEST: Nexthop with no device or gateway [ OK ] # 7.18 [+0.17] TEST: Nexthop with down device [ OK ] # 7.44 [+0.26] TEST: Nexthop with device that is linkdown [ OK ] # 7.61 [+0.17] TEST: Nexthop with device only [ OK ] # 7.69 [+0.08] TEST: Nexthop with duplicate id [ OK ] # 7.79 [+0.10] TEST: Blackhole nexthop [ OK ] # 7.89 [+0.10] TEST: Blackhole nexthop with other attributes [ OK ] # 8.09 [+0.19] TEST: Blackhole nexthop with loopback device down [ OK ] # 8.44 [+0.35] TEST: Maximum nexthop ID dump [ OK ] # 8.53 [+0.10] TEST: Create group [ OK ] # 8.63 [+0.10] TEST: Create group with blackhole nexthop [ OK ] # 8.73 [+0.09] TEST: Create multipath group where 1 path is a blackhole [ OK ] # 9.01 [+0.28] TEST: Multipath group can not have a member replaced by blackhole [ OK ] # 9.09 [+0.08] TEST: Create group with non-existent nexthop [ OK ] # 9.18 [+0.09] TEST: Create group with same nexthop multiple times [ OK ] # 9.27 [+0.08] TEST: Replace nexthop with nexthop group [ OK ] # 9.37 [+0.10] TEST: Replace nexthop group with nexthop [ OK ] # 9.46 [+0.10] TEST: Nexthop group and device [ OK ] # 10.36 [+0.90] TEST: Test proto flush [ OK ] # 10.45 [+0.09] TEST: Nexthop group and blackhole [ OK ] # 73.04 [+62.60] TEST: Large scale nexthop flushing [ OK ] # 81.21 [+8.16] # 81.21 [+0.00] Basic resilient nexthop group functional tests # 81.21 [+0.00] ---------------------------------------------- # 81.51 [+0.30] TEST: Add a nexthop group with default parameters [ OK ] # 81.72 [+0.21] TEST: Get a nexthop group with default parameters [ OK ] # 82.04 [+0.32] TEST: Get a nexthop group with non-default parameters [ OK ] # 82.14 [+0.09] TEST: Add a nexthop group with 0 buckets [ OK ] # 82.24 [+0.10] TEST: Replace nexthop group parameters [ OK ] # 82.34 [+0.11] TEST: Get a nexthop group after replacing parameters [ OK ] # 82.44 [+0.10] TEST: Replace idle timer [ OK ] # 82.55 [+0.10] TEST: Get a nexthop group after replacing idle timer [ OK ] # 82.63 [+0.09] TEST: Replace unbalanced timer [ OK ] # 82.74 [+0.11] TEST: Get a nexthop group after replacing unbalanced timer [ OK ] # 82.82 [+0.08] TEST: Replace with no parameters [ OK ] # 82.93 [+0.11] TEST: Get a nexthop group after replacing no parameters [ OK ] # 83.01 [+0.08] TEST: Replace nexthop group type - implicit [ OK ] # 83.10 [+0.09] TEST: Replace nexthop group type - explicit [ OK ] # 83.19 [+0.08] TEST: Replace number of nexthop buckets [ OK ] # 83.29 [+0.11] TEST: Get a nexthop group after replacing with invalid parameters [ OK ] # 83.85 [+0.56] TEST: Dump all nexthop buckets [ OK ] # 83.94 [+0.09] TEST: Dump all nexthop buckets in a group [ OK ] # 84.20 [+0.26] TEST: All nexthop buckets report a positive near-zero idle time [ OK ] # 84.35 [+0.15] TEST: Dump all nexthop buckets with a specific nexthop device [ OK ] # 84.45 [+0.11] TEST: Dump all nexthop buckets with a specific nexthop identifier [ OK ] # 84.56 [+0.10] TEST: Dump all nexthop buckets in a non-existent group [ OK ] # 84.65 [+0.10] TEST: Dump all nexthop buckets in a non-resilient group [ OK ] # 84.91 [+0.25] TEST: Dump all nexthop buckets using a non-existent device [ OK ] # 85.00 [+0.10] TEST: Dump all nexthop buckets with invalid 'groups' keyword [ OK ] # 85.11 [+0.11] TEST: Dump all nexthop buckets with invalid 'fdb' keyword [ OK ] # 85.35 [+0.24] TEST: Maximum nexthop ID dump [ OK ] # 85.47 [+0.12] TEST: Get a valid nexthop bucket [ OK ] # 85.57 [+0.10] TEST: Get a nexthop bucket with valid group, but invalid index [ OK ] # 85.67 [+0.10] TEST: Get a nexthop bucket from a non-resilient group [ OK ] # 85.77 [+0.09] TEST: Get a nexthop bucket from a non-existent group [ OK ] # 86.37 [+0.61] TEST: Initial bucket allocation [ OK ] # 86.72 [+0.35] TEST: Bucket allocation after replace [ OK ] # 87.16 [+0.44] TEST: Buckets migrated after idle timer change [ OK ] # 94.25 [+7.09] # 94.25 [+0.00] IPv4 functional # 94.25 [+0.00] ---------------------- # 94.34 [+0.09] TEST: Create nexthop with id, gw, dev [ OK ] # 94.42 [+0.08] TEST: Get nexthop by id [ OK ] # 94.61 [+0.19] TEST: Delete nexthop by id [ OK ] # 94.79 [+0.18] TEST: Create nexthop - gw only [ OK ] # 94.89 [+0.09] TEST: Create nexthop - invalid gw+dev combination [ OK ] # 94.98 [+0.09] TEST: Create nexthop - gw+dev and onlink [ OK ] # 95.44 [+0.46] TEST: Nexthops removed on admin down [ OK ] # 95.97 [+0.53] TEST: Delete nexthop route warning [ OK ] # 96.41 [+0.44] TEST: Delete multipath route with only nh id based entry [ OK ] # 96.67 [+0.25] TEST: Delete route when specifying only nexthop device [ OK ] # 96.76 [+0.10] TEST: Delete route when specifying only gateway [ OK ] # 96.85 [+0.09] TEST: Delete route when not specifying nexthop attributes [ OK ] # 104.16 [+7.31] # 104.16 [+0.00] IPv4 groups functional # 104.16 [+0.00] ---------------------- # 104.34 [+0.18] TEST: Create nexthop group with single nexthop [ OK ] # 104.45 [+0.11] TEST: Get nexthop group by id [ OK ] # 104.64 [+0.19] TEST: Delete nexthop group by id [ OK ] # 105.27 [+0.63] TEST: Nexthop group with multiple nexthops [ OK ] # 105.56 [+0.30] TEST: Nexthop group updated when entry is deleted [ OK ] # 105.74 [+0.18] TEST: Nexthop group with weighted nexthops [ OK ] # 106.04 [+0.30] TEST: Weighted nexthop group updated when entry is deleted [ OK ] # 106.24 [+0.20] TEST: Nexthops in groups removed on admin down [ OK ] # 107.58 [+1.34] TEST: Multiple groups with same nexthop [ OK ] # 108.01 [+0.42] TEST: Nexthops in group removed on admin down - mixed group [ OK ] # 108.10 [+0.10] TEST: Nexthop group can not have a group as an entry [ OK ] # 108.28 [+0.18] TEST: Nexthop group with a blackhole entry [ OK ] # 108.36 [+0.08] TEST: Nexthop group can not have a blackhole and another nexthop [ OK ] # 115.21 [+6.85] # 115.21 [+0.00] IPv4 resilient groups functional # 115.21 [+0.00] -------------------------------- # 115.73 [+0.53] TEST: Nexthop group updated when entry is deleted [ OK ] # 115.85 [+0.11] TEST: Nexthop buckets updated when entry is deleted [ OK ] # 116.12 [+0.27] TEST: Nexthop group updated after replace [ OK ] # 116.21 [+0.09] TEST: Nexthop buckets updated after replace [ OK ] # 116.74 [+0.53] TEST: Nexthop group updated when entry is deleted - nECMP [ OK ] # 116.84 [+0.10] TEST: Nexthop buckets updated when entry is deleted - nECMP [ OK ] # 117.12 [+0.28] TEST: Nexthop group updated after replace - nECMP [ OK ] # 117.22 [+0.09] TEST: Nexthop buckets updated after replace - nECMP [ OK ] # 124.58 [+7.36] TEST: IPv6 nexthop with IPv4 route [ OK ] # 125.05 [+0.47] TEST: IPv6 nexthop with IPv4 route [ OK ] # 125.28 [+0.23] TEST: IPv4 route with IPv6 gateway [ OK ] # 125.47 [+0.19] TEST: IPv4 route with invalid IPv6 gateway [ OK ] # 132.60 [+7.13] # 132.60 [+0.00] IPv4 functional runtime # 132.60 [+0.00] ----------------------- # 132.78 [+0.18] TEST: Route add [ OK ] # 132.97 [+0.20] TEST: Route delete [ OK ] # 133.15 [+0.18] TEST: Route add - scope conflict with nexthop [ OK ] # 133.42 [+0.27] TEST: Nexthop replace with invalid scope for existing route [ OK ] # 133.57 [+0.15] TEST: IPv4 route with invalid metric [ OK ] # 133.90 [+0.32] TEST: Basic ping [ OK ] # 134.30 [+0.41] TEST: Ping - multipath [ OK ] # 134.80 [+0.49] TEST: Ping - multiple default routes, nh first [ OK ] # 135.37 [+0.58] TEST: Ping - multiple default routes, nh second [ OK ] # 135.86 [+0.49] TEST: Ping - blackhole [ OK ] # 136.08 [+0.22] TEST: Ping - blackhole replaced with gateway [ OK ] # 136.31 [+0.23] TEST: Ping - gateway replaced by blackhole [ OK ] # 136.78 [+0.47] TEST: Ping - group with blackhole [ OK ] # 137.01 [+0.23] TEST: Ping - group blackhole replaced with gateways [ OK ] # 137.19 [+0.18] TEST: IPv4 route with device only nexthop [ OK ] # 137.46 [+0.27] TEST: IPv4 multipath route with nexthop mix - dev only + gw [ OK ] # 138.01 [+0.54] TEST: IPv6 nexthop with IPv4 route [ OK ] # 138.43 [+0.43] TEST: IPv4 route with mixed v4-v6 multipath route [ OK ] # 138.68 [+0.24] TEST: IPv6 nexthop with IPv4 route [ OK ] # 138.91 [+0.23] TEST: IPv4 route with IPv6 gateway [ OK ] # 139.40 [+0.49] TEST: IPv4 default route with IPv6 gateway [ OK ] # 139.64 [+0.24] TEST: IPv4 route with MPLS encap [ OK ] # 139.75 [+0.11] TEST: IPv4 route with MPLS encap - check [ OK ] # 139.84 [+0.09] TEST: IPv4 route with MPLS encap and v6 gateway [ OK ] # 139.94 [+0.11] TEST: IPv4 route with MPLS encap, v6 gw - check [ OK ] # 147.03 [+7.09] # 147.03 [+0.00] IPv4 large groups (x32) # 147.03 [+0.00] --------------------- # 172.50 [+25.47] TEST: Dump large (x32) ecmp groups [ OK ] # 179.51 [+7.01] # 179.51 [+0.00] IPv4 large resilient group (128k buckets) # 179.51 [+0.00] ----------------------------------------- # 179.84 [+0.33] TEST: Dump large (x131072) nexthop buckets [ OK ] # 186.77 [+6.92] # 186.77 [+0.00] IPv4 nexthop api compat mode # 186.77 [+0.00] ---------------------------- # 187.01 [+0.24] TEST: IPv4 default nexthop compat mode check [ OK ] # 187.78 [+0.77] TEST: IPv4 compat mode on - route add notification [ OK ] # 187.87 [+0.10] TEST: IPv4 compat mode on - route dump [ OK ] # 188.48 [+0.61] TEST: IPv4 compat mode on - nexthop change [ OK ] # 188.60 [+0.11] TEST: IPv4 set compat mode - 0 [ OK ] # 189.20 [+0.60] TEST: IPv4 compat mode off - route add notification [ OK ] # 189.30 [+0.11] TEST: IPv4 compat mode off - route dump [ OK ] # 189.82 [+0.52] TEST: IPv4 compat mode off - nexthop change [ OK ] # 190.33 [+0.51] TEST: IPv4 compat mode off - nexthop delete [ OK ] # 190.45 [+0.12] TEST: IPv4 set compat mode - 1 [ OK ] # 197.29 [+6.84] # 197.29 [+0.00] IPv4 fdb groups functional # 197.29 [+0.00] -------------------------- # 197.71 [+0.42] TEST: Fdb Nexthop group with multiple nexthops [ OK ] # 197.88 [+0.17] TEST: Get Fdb nexthop group by id [ OK ] # 198.15 [+0.28] TEST: Fdb Nexthop group with non-fdb nexthops [ OK ] # 198.41 [+0.26] TEST: Non-Fdb Nexthop group with fdb nexthops [ OK ] # 198.49 [+0.08] TEST: Fdb Nexthop with blackhole [ OK ] # 198.58 [+0.09] TEST: Fdb Nexthop with oif [ OK ] # 198.67 [+0.08] TEST: Fdb Nexthop with onlink [ OK ] # 198.76 [+0.10] TEST: Fdb Nexthop with encap [ OK ] # 198.94 [+0.18] TEST: Fdb mac add with nexthop group [ OK ] # 199.02 [+0.08] TEST: Fdb mac add with nexthop [ OK ] # 199.12 [+0.09] TEST: Route add with fdb nexthop [ OK ] # 199.21 [+0.10] TEST: Route add with fdb nexthop group [ OK ] # 199.40 [+0.19] TEST: Fdb entry after deleting a single nexthop [ OK ] # 199.49 [+0.09] TEST: Fdb nexthop delete [ OK ] # 199.57 [+0.08] TEST: Fdb entry after deleting a nexthop group [ OK ] # 206.54 [+6.97] # 206.54 [+0.00] IPv4 multipath selection # 206.54 [+0.00] ------------------------ # 207.77 [+1.22] TEST: Use valid neighbor during multipath selection [ OK ] # 208.03 [+0.27] TEST: Multipath selection with no valid neighbor [ OK ] # 214.92 [+6.88] # 214.92 [+0.00] IPv4 runtime torture # 214.92 [+0.00] -------------------- # 515.51 [+300.59] TEST: IPv4 torture test [ OK ] # 523.40 [+7.89] # 523.40 [+0.00] IPv4 runtime resilient nexthop group torture # 523.40 [+0.00] -------------------------------------------- # 824.07 [+300.67] TEST: IPv4 resilient nexthop group torture test [ OK ] # 831.39 [+7.31] # 831.39 [+0.00] IPv6 # 831.39 [+0.00] ---------------------- # 831.49 [+0.10] TEST: Create nexthop with id, gw, dev [ OK ] # 831.59 [+0.10] TEST: Get nexthop by id [ OK ] # 831.82 [+0.23] TEST: Delete nexthop by id [ OK ] # 832.01 [+0.19] TEST: Create nexthop - gw only [ OK ] # 832.11 [+0.10] TEST: Create nexthop - invalid gw+dev combination [ OK ] # 832.21 [+0.10] TEST: Create nexthop - gw+dev and onlink [ OK ] # 832.66 [+0.46] TEST: Nexthops removed on admin down [ OK ] # 839.35 [+6.69] # 839.35 [+0.00] IPv6 groups functional # 839.35 [+0.00] ---------------------- # 839.52 [+0.17] TEST: Create nexthop group with single nexthop [ OK ] # 839.62 [+0.09] TEST: Get nexthop group by id [ OK ] # 839.79 [+0.17] TEST: Delete nexthop group by id [ OK ] # 840.49 [+0.69] TEST: Nexthop group with multiple nexthops [ OK ] # 840.76 [+0.28] TEST: Nexthop group updated when entry is deleted [ OK ] # 840.93 [+0.17] TEST: Nexthop group with weighted nexthops [ OK ] # 841.21 [+0.28] TEST: Weighted nexthop group updated when entry is deleted [ OK ] # 841.39 [+0.17] TEST: Nexthops in groups removed on admin down [ OK ] not ok 1 selftests: net: fib_nexthops.sh # exit=2 make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->