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.87 [+6.87] # 6.87 [+0.00] Basic functional tests # 6.87 [+0.00] ---------------------- # 6.99 [+0.12] TEST: List with nothing defined [ OK ] # 7.08 [+0.08] TEST: Nexthop get on non-existent id [ OK ] # 7.17 [+0.09] TEST: Nexthop del with non-existent id [ OK ] # 7.26 [+0.09] TEST: Nexthop del with non-existent id and extra attributes [ OK ] # 7.37 [+0.11] TEST: Nexthop with no device or gateway [ OK ] # 7.56 [+0.19] TEST: Nexthop with down device [ OK ] # 7.81 [+0.25] TEST: Nexthop with device that is linkdown [ OK ] # 7.99 [+0.18] TEST: Nexthop with device only [ OK ] # 8.07 [+0.08] TEST: Nexthop with duplicate id [ OK ] # 8.16 [+0.09] TEST: Blackhole nexthop [ OK ] # 8.24 [+0.08] TEST: Blackhole nexthop with other attributes [ OK ] # 8.44 [+0.19] TEST: Blackhole nexthop with loopback device down [ OK ] # 8.78 [+0.34] TEST: Maximum nexthop ID dump [ OK ] # 8.87 [+0.09] TEST: Create group [ OK ] # 8.96 [+0.09] TEST: Create group with blackhole nexthop [ OK ] # 9.04 [+0.09] TEST: Create multipath group where 1 path is a blackhole [ OK ] # 9.32 [+0.28] TEST: Multipath group can not have a member replaced by blackhole [ OK ] # 9.41 [+0.09] TEST: Create group with non-existent nexthop [ OK ] # 9.51 [+0.09] TEST: Create group with same nexthop multiple times [ OK ] # 9.59 [+0.09] TEST: Replace nexthop with nexthop group [ OK ] # 9.69 [+0.10] TEST: Replace nexthop group with nexthop [ OK ] # 9.82 [+0.12] TEST: Nexthop group and device [ OK ] # 10.95 [+1.14] TEST: Test proto flush [ OK ] # 11.06 [+0.11] TEST: Nexthop group and blackhole [ OK ] # 82.56 [+71.49] TEST: Large scale nexthop flushing [ OK ] # 91.56 [+9.01] # 91.56 [+0.00] Basic resilient nexthop group functional tests # 91.56 [+0.00] ---------------------------------------------- # 91.93 [+0.37] TEST: Add a nexthop group with default parameters [ OK ] # 92.16 [+0.23] TEST: Get a nexthop group with default parameters [ OK ] # 92.52 [+0.35] TEST: Get a nexthop group with non-default parameters [ OK ] # 92.61 [+0.09] TEST: Add a nexthop group with 0 buckets [ OK ] # 92.71 [+0.11] TEST: Replace nexthop group parameters [ OK ] # 92.84 [+0.13] TEST: Get a nexthop group after replacing parameters [ OK ] # 92.97 [+0.13] TEST: Replace idle timer [ OK ] # 93.10 [+0.13] TEST: Get a nexthop group after replacing idle timer [ OK ] # 93.21 [+0.10] TEST: Replace unbalanced timer [ OK ] # 93.35 [+0.15] TEST: Get a nexthop group after replacing unbalanced timer [ OK ] # 93.46 [+0.11] TEST: Replace with no parameters [ OK ] # 93.61 [+0.14] TEST: Get a nexthop group after replacing no parameters [ OK ] # 93.70 [+0.09] TEST: Replace nexthop group type - implicit [ OK ] # 93.80 [+0.10] TEST: Replace nexthop group type - explicit [ OK ] # 93.89 [+0.09] TEST: Replace number of nexthop buckets [ OK ] # 94.02 [+0.13] TEST: Get a nexthop group after replacing with invalid parameters [ OK ] # 94.77 [+0.74] TEST: Dump all nexthop buckets [ OK ] # 94.90 [+0.14] TEST: Dump all nexthop buckets in a group [ OK ] # 95.21 [+0.30] TEST: All nexthop buckets report a positive near-zero idle time [ OK ] # 95.34 [+0.14] TEST: Dump all nexthop buckets with a specific nexthop device [ OK ] # 95.46 [+0.12] TEST: Dump all nexthop buckets with a specific nexthop identifier [ OK ] # 95.58 [+0.11] TEST: Dump all nexthop buckets in a non-existent group [ OK ] # 95.72 [+0.14] TEST: Dump all nexthop buckets in a non-resilient group [ OK ] # 96.00 [+0.27] TEST: Dump all nexthop buckets using a non-existent device [ OK ] # 96.12 [+0.13] TEST: Dump all nexthop buckets with invalid 'groups' keyword [ OK ] # 96.24 [+0.11] TEST: Dump all nexthop buckets with invalid 'fdb' keyword [ OK ] # 96.52 [+0.28] TEST: Maximum nexthop ID dump [ OK ] # 96.67 [+0.15] TEST: Get a valid nexthop bucket [ OK ] # 96.78 [+0.11] TEST: Get a nexthop bucket with valid group, but invalid index [ OK ] # 96.89 [+0.11] TEST: Get a nexthop bucket from a non-resilient group [ OK ] # 97.04 [+0.15] TEST: Get a nexthop bucket from a non-existent group [ OK ] # 97.75 [+0.72] TEST: Initial bucket allocation [ OK ] # 98.12 [+0.37] TEST: Bucket allocation after replace [ OK ] # 98.61 [+0.49] TEST: Buckets migrated after idle timer change [ OK ] # 107.44 [+8.83] # 107.44 [+0.00] IPv4 functional # 107.44 [+0.00] ---------------------- # 107.56 [+0.11] TEST: Create nexthop with id, gw, dev [ OK ] # 107.66 [+0.10] TEST: Get nexthop by id [ OK ] # 107.93 [+0.28] TEST: Delete nexthop by id [ OK ] # 108.20 [+0.26] TEST: Create nexthop - gw only [ OK ] # 108.32 [+0.12] TEST: Create nexthop - invalid gw+dev combination [ OK ] # 108.44 [+0.12] TEST: Create nexthop - gw+dev and onlink [ OK ] # 109.04 [+0.60] TEST: Nexthops removed on admin down [ OK ] # 109.70 [+0.66] TEST: Delete nexthop route warning [ OK ] # 110.27 [+0.57] TEST: Delete multipath route with only nh id based entry [ OK ] # 110.65 [+0.37] TEST: Delete route when specifying only nexthop device [ OK ] # 110.75 [+0.11] TEST: Delete route when specifying only gateway [ OK ] # 110.87 [+0.12] TEST: Delete route when not specifying nexthop attributes [ OK ] # 119.91 [+9.03] # 119.91 [+0.00] IPv4 groups functional # 119.91 [+0.00] ---------------------- # 120.14 [+0.23] TEST: Create nexthop group with single nexthop [ OK ] # 120.28 [+0.14] TEST: Get nexthop group by id [ OK ] # 120.56 [+0.28] TEST: Delete nexthop group by id [ OK ] # 121.50 [+0.94] TEST: Nexthop group with multiple nexthops [ OK ] # 121.88 [+0.38] TEST: Nexthop group updated when entry is deleted [ OK ] # 122.12 [+0.24] TEST: Nexthop group with weighted nexthops [ OK ] # 122.52 [+0.40] TEST: Weighted nexthop group updated when entry is deleted [ OK ] # 122.78 [+0.27] TEST: Nexthops in groups removed on admin down [ OK ] # 124.35 [+1.56] TEST: Multiple groups with same nexthop [ OK ] # 124.87 [+0.52] TEST: Nexthops in group removed on admin down - mixed group [ OK ] # 124.99 [+0.12] TEST: Nexthop group can not have a group as an entry [ OK ] # 125.20 [+0.21] TEST: Nexthop group with a blackhole entry [ OK ] # 125.31 [+0.11] TEST: Nexthop group can not have a blackhole and another nexthop [ OK ] # 134.80 [+9.49] # 134.80 [+0.00] IPv4 resilient groups functional # 134.80 [+0.00] -------------------------------- # 135.54 [+0.74] TEST: Nexthop group updated when entry is deleted [ OK ] # 135.69 [+0.15] TEST: Nexthop buckets updated when entry is deleted [ OK ] # 136.06 [+0.37] TEST: Nexthop group updated after replace [ OK ] # 136.20 [+0.14] TEST: Nexthop buckets updated after replace [ OK ] # 136.89 [+0.70] TEST: Nexthop group updated when entry is deleted - nECMP [ OK ] # 137.05 [+0.16] TEST: Nexthop buckets updated when entry is deleted - nECMP [ OK ] # 137.41 [+0.35] TEST: Nexthop group updated after replace - nECMP [ OK ] # 137.54 [+0.13] TEST: Nexthop buckets updated after replace - nECMP [ OK ] # 146.73 [+9.19] TEST: IPv6 nexthop with IPv4 route [ OK ] # 147.25 [+0.52] TEST: IPv6 nexthop with IPv4 route [ OK ] # 147.52 [+0.27] TEST: IPv4 route with IPv6 gateway [ OK ] # 147.77 [+0.25] TEST: IPv4 route with invalid IPv6 gateway [ OK ] # 156.76 [+8.99] # 156.76 [+0.00] IPv4 functional runtime # 156.76 [+0.00] ----------------------- # 156.98 [+0.22] TEST: Route add [ OK ] # 157.26 [+0.28] TEST: Route delete [ OK ] # 157.51 [+0.25] TEST: Route add - scope conflict with nexthop [ OK ] # 157.84 [+0.33] TEST: Nexthop replace with invalid scope for existing route [ OK ] # 158.03 [+0.19] TEST: IPv4 route with invalid metric [ OK ] # 158.47 [+0.44] TEST: Basic ping [ OK ] # 158.94 [+0.48] TEST: Ping - multipath [ OK ] # 159.61 [+0.66] TEST: Ping - multiple default routes, nh first [ OK ] # 160.37 [+0.76] TEST: Ping - multiple default routes, nh second [ OK ] # 161.03 [+0.65] TEST: Ping - blackhole [ OK ] # 161.33 [+0.30] TEST: Ping - blackhole replaced with gateway [ OK ] # 161.61 [+0.28] TEST: Ping - gateway replaced by blackhole [ OK ] # 162.23 [+0.62] TEST: Ping - group with blackhole [ OK ] # 162.57 [+0.34] TEST: Ping - group blackhole replaced with gateways [ OK ] # 162.85 [+0.29] TEST: IPv4 route with device only nexthop [ OK ] # 163.19 [+0.33] TEST: IPv4 multipath route with nexthop mix - dev only + gw [ OK ] # 163.87 [+0.69] TEST: IPv6 nexthop with IPv4 route [ OK ] # 164.40 [+0.53] TEST: IPv4 route with mixed v4-v6 multipath route [ OK ] # 164.71 [+0.31] TEST: IPv6 nexthop with IPv4 route [ OK ] # 164.99 [+0.28] TEST: IPv4 route with IPv6 gateway [ OK ] # 165.64 [+0.65] TEST: IPv4 default route with IPv6 gateway [ OK ] # 165.99 [+0.35] TEST: IPv4 route with MPLS encap [ OK ] # 166.14 [+0.16] TEST: IPv4 route with MPLS encap - check [ OK ] # 166.28 [+0.14] TEST: IPv4 route with MPLS encap and v6 gateway [ OK ] # 166.42 [+0.14] TEST: IPv4 route with MPLS encap, v6 gw - check [ OK ] # 176.12 [+9.71] # 176.12 [+0.00] IPv4 large groups (x32) # 176.12 [+0.00] --------------------- # 208.90 [+32.78] TEST: Dump large (x32) ecmp groups [ OK ] # 218.12 [+9.21] # 218.12 [+0.00] IPv4 large resilient group (128k buckets) # 218.12 [+0.00] ----------------------------------------- # 218.58 [+0.46] TEST: Dump large (x131072) nexthop buckets [ OK ] # 227.32 [+8.75] # 227.32 [+0.00] IPv4 nexthop api compat mode # 227.33 [+0.00] ---------------------------- # 227.64 [+0.31] TEST: IPv4 default nexthop compat mode check [ OK ] # 228.61 [+0.97] TEST: IPv4 compat mode on - route add notification [ OK ] # 228.73 [+0.12] TEST: IPv4 compat mode on - route dump [ OK ] # 229.44 [+0.71] TEST: IPv4 compat mode on - nexthop change [ OK ] # 229.58 [+0.14] TEST: IPv4 set compat mode - 0 [ OK ] # 230.32 [+0.73] TEST: IPv4 compat mode off - route add notification [ OK ] # 230.43 [+0.11] TEST: IPv4 compat mode off - route dump [ OK ] # 231.06 [+0.63] TEST: IPv4 compat mode off - nexthop change [ OK ] # 231.78 [+0.72] TEST: IPv4 compat mode off - nexthop delete [ OK ] # 231.95 [+0.17] TEST: IPv4 set compat mode - 1 [ OK ] # 240.70 [+8.75] # 240.70 [+0.00] IPv4 fdb groups functional # 240.70 [+0.00] -------------------------- # 241.28 [+0.58] TEST: Fdb Nexthop group with multiple nexthops [ OK ] # 241.52 [+0.23] TEST: Get Fdb nexthop group by id [ OK ] # 241.86 [+0.35] TEST: Fdb Nexthop group with non-fdb nexthops [ OK ] # 242.18 [+0.32] TEST: Non-Fdb Nexthop group with fdb nexthops [ OK ] # 242.31 [+0.12] TEST: Fdb Nexthop with blackhole [ OK ] # 242.41 [+0.11] TEST: Fdb Nexthop with oif [ OK ] # 242.53 [+0.12] TEST: Fdb Nexthop with onlink [ OK ] # 242.68 [+0.14] TEST: Fdb Nexthop with encap [ OK ] # 243.04 [+0.37] TEST: Fdb mac add with nexthop group [ OK ] # 243.14 [+0.09] TEST: Fdb mac add with nexthop [ OK ] # 243.25 [+0.12] TEST: Route add with fdb nexthop [ OK ] # 243.38 [+0.12] TEST: Route add with fdb nexthop group [ OK ] # 243.60 [+0.22] TEST: Fdb entry after deleting a single nexthop [ OK ] # 243.72 [+0.12] TEST: Fdb nexthop delete [ OK ] # 243.83 [+0.11] TEST: Fdb entry after deleting a nexthop group [ OK ] # 252.94 [+9.11] # 252.94 [+0.00] IPv4 multipath selection # 252.94 [+0.00] ------------------------ # 254.52 [+1.58] TEST: Use valid neighbor during multipath selection [ OK ] # 254.86 [+0.34] TEST: Multipath selection with no valid neighbor [ OK ] # 263.77 [+8.91] # 263.77 [+0.00] IPv4 runtime torture # 263.78 [+0.00] -------------------- # 564.48 [+300.70] TEST: IPv4 torture test [ OK ] # 572.85 [+8.37] # 572.85 [+0.00] IPv4 runtime resilient nexthop group torture # 572.85 [+0.00] -------------------------------------------- # 873.65 [+300.79] TEST: IPv4 resilient nexthop group torture test [ OK ] # 881.82 [+8.18] # 881.82 [+0.00] IPv6 # 881.82 [+0.00] ---------------------- # 881.92 [+0.10] TEST: Create nexthop with id, gw, dev [ OK ] # 882.04 [+0.11] TEST: Get nexthop by id [ OK ] # 882.26 [+0.23] TEST: Delete nexthop by id [ OK ] # 882.47 [+0.20] TEST: Create nexthop - gw only [ OK ] # 882.58 [+0.11] TEST: Create nexthop - invalid gw+dev combination [ OK ] # 882.69 [+0.11] TEST: Create nexthop - gw+dev and onlink [ OK ] # 883.24 [+0.55] TEST: Nexthops removed on admin down [ OK ] # 891.19 [+7.95] # 891.19 [+0.00] IPv6 groups functional # 891.19 [+0.00] ---------------------- # 891.39 [+0.20] TEST: Create nexthop group with single nexthop [ OK ] # 891.48 [+0.09] TEST: Get nexthop group by id [ OK ] # 891.69 [+0.20] TEST: Delete nexthop group by id [ OK ] # 892.50 [+0.81] TEST: Nexthop group with multiple nexthops [ OK ] # 892.82 [+0.32] TEST: Nexthop group updated when entry is deleted [ OK ] # 893.02 [+0.20] TEST: Nexthop group with weighted nexthops [ OK ] # 893.35 [+0.32] TEST: Weighted nexthop group updated when entry is deleted [ OK ] # 893.55 [+0.20] 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__->