make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fib_tests.sh TESTT_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_tests.sh # 1.04 [+1.04] # 1.04 [+0.00] Single path route test # 2.99 [+1.95] Start point # 3.15 [+0.16] TEST: IPv4 fibmatch [ OK ] # 3.31 [+0.16] TEST: IPv6 fibmatch [ OK ] # 3.50 [+0.19] Nexthop device deleted # 3.66 [+0.16] TEST: IPv4 fibmatch - no route [ OK ] # 3.82 [+0.16] TEST: IPv6 fibmatch - no route [ OK ] # 4.83 [+1.01] # 4.83 [+0.00] Multipath route test # 8.19 [+3.36] Start point # 8.37 [+0.17] TEST: IPv4 fibmatch [ OK ] # 8.52 [+0.16] TEST: IPv6 fibmatch [ OK ] # 8.73 [+0.21] One nexthop device deleted # 8.89 [+0.16] TEST: IPv4 - multipath route removed on delete [ OK ] # 9.06 [+0.17] TEST: IPv6 - multipath down to single path [ OK ] # 9.27 [+0.20] Second nexthop device deleted # 9.43 [+0.17] TEST: IPv6 - no route [ OK ] # 10.43 [+0.99] # 10.43 [+0.00] Single path, admin down # 12.82 [+2.40] Start point # 12.99 [+0.17] TEST: IPv4 fibmatch [ OK ] # 13.15 [+0.16] TEST: IPv6 fibmatch [ OK ] # 13.32 [+0.17] Route deleted on down # 13.48 [+0.16] TEST: IPv4 fibmatch [ OK ] # 13.64 [+0.17] TEST: IPv6 fibmatch [ OK ] # 14.48 [+0.84] # 14.48 [+0.00] Admin down multipath # 17.89 [+3.40] Verify start point # 18.05 [+0.16] TEST: IPv4 fibmatch [ OK ] # 18.23 [+0.18] TEST: IPv6 fibmatch [ OK ] # 18.40 [+0.17] One device down, one up # 18.57 [+0.17] TEST: IPv4 fibmatch on down device [ OK ] # 18.72 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 18.89 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 19.05 [+0.16] TEST: IPv6 fibmatch on up device [ OK ] # 19.19 [+0.14] TEST: IPv4 flags on down device [ OK ] # 19.32 [+0.14] TEST: IPv6 flags on down device [ OK ] # 19.46 [+0.14] TEST: IPv4 flags on up device [ OK ] # 19.63 [+0.17] TEST: IPv6 flags on up device [ OK ] # 19.97 [+0.34] Other device down and up # 20.13 [+0.16] TEST: IPv4 fibmatch on down device [ OK ] # 20.30 [+0.17] TEST: IPv6 fibmatch on down device [ OK ] # 20.47 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 20.63 [+0.16] TEST: IPv6 fibmatch on up device [ OK ] # 20.77 [+0.14] TEST: IPv4 flags on down device [ OK ] # 20.89 [+0.13] TEST: IPv6 flags on down device [ OK ] # 21.04 [+0.14] TEST: IPv4 flags on up device [ OK ] # 21.17 [+0.13] TEST: IPv6 flags on up device [ OK ] # 21.33 [+0.16] Both devices down # 21.51 [+0.18] TEST: IPv4 fibmatch [ OK ] # 21.65 [+0.14] TEST: IPv6 fibmatch [ OK ] # 22.65 [+1.00] # 22.65 [+0.00] Local carrier tests - single path # 25.22 [+2.57] Start point # 25.38 [+0.16] TEST: IPv4 fibmatch [ OK ] # 25.57 [+0.19] TEST: IPv6 fibmatch [ OK ] # 25.70 [+0.14] TEST: IPv4 - no linkdown flag [ OK ] # 25.87 [+0.17] TEST: IPv6 - no linkdown flag [ OK ] # 27.17 [+1.30] Carrier off on nexthop # 27.34 [+0.17] TEST: IPv4 fibmatch [ OK ] # 27.51 [+0.16] TEST: IPv6 fibmatch [ OK ] # 27.64 [+0.13] TEST: IPv4 - linkdown flag set [ OK ] # 27.78 [+0.14] TEST: IPv6 - linkdown flag set [ OK ] # 28.11 [+0.32] Route to local address with carrier down # 28.27 [+0.17] TEST: IPv4 fibmatch [ OK ] # 28.44 [+0.17] TEST: IPv6 fibmatch [ OK ] # 28.60 [+0.15] TEST: IPv4 linkdown flag set [ OK ] # 28.74 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 29.55 [+0.81] # 29.55 [+0.00] Single path route carrier test # 32.07 [+2.52] Start point # 32.23 [+0.16] TEST: IPv4 fibmatch [ OK ] # 32.40 [+0.17] TEST: IPv6 fibmatch [ OK ] # 32.57 [+0.17] TEST: IPv4 no linkdown flag [ OK ] # 32.69 [+0.12] TEST: IPv6 no linkdown flag [ OK ] # 33.98 [+1.29] Carrier down # 34.15 [+0.17] TEST: IPv4 fibmatch [ OK ] # 34.31 [+0.16] TEST: IPv6 fibmatch [ OK ] # 34.44 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 34.57 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 34.91 [+0.33] Second address added with carrier down # 35.08 [+0.17] TEST: IPv4 fibmatch [ OK ] # 35.26 [+0.18] TEST: IPv6 fibmatch [ OK ] # 35.40 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 35.56 [+0.15] TEST: IPv6 linkdown flag set [ OK ] # 43.17 [+7.61] # 43.17 [+0.00] IPv4 nexthop tests # 43.17 [+0.00] <<< write me >>> # 43.53 [+0.36] # 43.53 [+0.00] IPv6 nexthop tests # 43.72 [+0.19] TEST: Directly connected nexthop, unicast address [ OK ] # 43.89 [+0.17] TEST: Directly connected nexthop, unicast address with device [ OK ] # 44.07 [+0.18] TEST: Gateway is linklocal address [ OK ] # 44.25 [+0.18] TEST: Gateway is linklocal address, no device [ OK ] # 44.43 [+0.18] TEST: Gateway can not be local unicast address [ OK ] # 44.61 [+0.18] TEST: Gateway can not be local unicast address, with device [ OK ] # 44.80 [+0.19] TEST: Gateway can not be a local linklocal address [ OK ] # 44.97 [+0.17] TEST: Gateway can be local address in a VRF [ OK ] # 45.16 [+0.19] TEST: Gateway can be local address in a VRF, with device [ OK ] # 45.34 [+0.18] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 45.53 [+0.18] TEST: Redirect to VRF lookup [ OK ] # 45.70 [+0.18] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 45.87 [+0.17] TEST: VRF route, gateway can not be a local address [ OK ] # 46.06 [+0.19] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 47.64 [+1.58] # 47.64 [+0.00] FIB rule with suppress_prefixlength # 51.28 [+3.64] TEST: FIB rule suppress test [ OK ] # 54.50 [+3.23] # 54.50 [+0.00] Fib6 info length calculation in route notify test # 60.81 [+6.31] TEST: ipv6 route add notify [ OK ] # 64.51 [+3.70] # 64.51 [+0.00] Fib4 info length calculation in route notify test # 70.87 [+6.36] TEST: ipv4 route add notify [ OK ] # 82.37 [+11.50] # 82.37 [+0.00] IPv6 route add / append tests # 83.40 [+1.03] TEST: Attempt to add duplicate route - gw [ OK ] # 84.35 [+0.96] TEST: Attempt to add duplicate route - dev only [ OK ] # 85.27 [+0.92] TEST: Attempt to add duplicate route - reject route [ OK ] # 86.42 [+1.15] TEST: Append nexthop to existing route - gw [ OK ] # 87.27 [+0.85] TEST: Add multipath route [ OK ] # 88.16 [+0.89] TEST: Attempt to add duplicate multipath route [ OK ] # 89.24 [+1.08] TEST: Route add with different metrics [ OK ] # 89.70 [+0.46] TEST: Route delete with metric [ OK ] # 89.71 [+0.00] # 89.71 [+0.00] IPv6 route replace tests # 90.90 [+1.20] TEST: Single path with single path [ OK ] # 92.08 [+1.17] TEST: Single path with multipath [ OK ] # 93.21 [+1.13] TEST: Single path with single path via multipath attribute [ OK ] # 94.35 [+1.14] TEST: Invalid nexthop [ OK ] # 95.24 [+0.88] TEST: Single path - replace of non-existent route [ OK ] # 96.32 [+1.08] TEST: Multipath with multipath [ OK ] # 97.38 [+1.06] TEST: Multipath with single path [ OK ] # 98.47 [+1.09] TEST: Multipath with single path via multipath attribute [ OK ] # 99.50 [+1.04] TEST: Multipath with dev-only [ OK ] # 100.59 [+1.09] TEST: Multipath - invalid first nexthop [ OK ] # 101.74 [+1.14] TEST: Multipath - invalid second nexthop [ OK ] # 102.60 [+0.86] TEST: Multipath - replace of non-existent route [ OK ] # 102.60 [+0.01] # 102.60 [+0.00] IPv6 route with dsfield tests # 103.10 [+0.50] TEST: Reject route with dsfield [ OK ] # 116.37 [+13.26] # 116.37 [+0.00] IPv4 route add / append tests # 117.17 [+0.80] TEST: Attempt to add duplicate route - gw [ OK ] # 117.89 [+0.72] TEST: Attempt to add duplicate route - dev only [ OK ] # 118.61 [+0.72] TEST: Attempt to add duplicate route - reject route [ OK ] # 119.54 [+0.94] TEST: Add new nexthop for existing prefix [ OK ] # 120.66 [+1.12] TEST: Append nexthop to existing route - gw [ OK ] # 121.70 [+1.04] TEST: Append nexthop to existing route - dev only [ OK ] # 122.65 [+0.96] TEST: Append nexthop to existing route - reject route [ OK ] # 123.42 [+0.77] TEST: Append nexthop to existing reject route - gw [ OK ] # 124.17 [+0.75] TEST: Append nexthop to existing reject route - dev only [ OK ] # 124.89 [+0.72] TEST: add multipath route [ OK ] # 125.62 [+0.73] TEST: Attempt to add duplicate multipath route [ OK ] # 126.58 [+0.96] TEST: Route add with different metrics [ OK ] # 126.99 [+0.41] TEST: Route delete with metric [ OK ] # 126.99 [+0.00] # 126.99 [+0.00] IPv4 route replace tests # 127.99 [+1.00] TEST: Single path with single path [ OK ] # 128.90 [+0.90] TEST: Single path with multipath [ OK ] # 129.86 [+0.97] TEST: Single path with reject route [ OK ] # 130.79 [+0.93] TEST: Single path with single path via multipath attribute [ OK ] # 131.70 [+0.91] TEST: Invalid nexthop [ OK ] # 132.41 [+0.71] TEST: Single path - replace of non-existent route [ OK ] # 133.29 [+0.88] TEST: Multipath with multipath [ OK ] # 134.18 [+0.89] TEST: Multipath with single path [ OK ] # 135.02 [+0.84] TEST: Multipath with single path via multipath attribute [ OK ] # 135.90 [+0.88] TEST: Multipath with reject route [ OK ] # 136.78 [+0.88] TEST: Multipath - invalid first nexthop [ OK ] # 137.64 [+0.86] TEST: Multipath - invalid second nexthop [ OK ] # 138.33 [+0.69] TEST: Multipath - replace of non-existent route [ OK ] # 140.82 [+2.48] TEST: Cached route removed from VRF port device [ OK ] # 140.82 [+0.00] # 140.82 [+0.00] IPv4 route with dsfield tests # 141.17 [+0.35] TEST: Reject route with dsfield 0x01 [ OK ] # 141.35 [+0.18] TEST: Reject route with dsfield 0x02 [ OK ] # 141.53 [+0.18] TEST: Reject route with dsfield 0x03 [ OK ] # 142.05 [+0.52] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 142.21 [+0.16] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 142.35 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 142.48 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 142.63 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 142.77 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 142.92 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 143.07 [+0.16] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 143.26 [+0.19] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 143.40 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 143.54 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 143.67 [+0.14] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 146.62 [+2.94] # 146.62 [+0.00] IPv6 prefix route tests # 150.58 [+3.96] TEST: Default metric [ OK ] # 151.12 [+0.54] TEST: User specified metric on first device [ OK ] # 151.66 [+0.54] TEST: User specified metric on second device [ OK ] # 152.02 [+0.36] TEST: Delete of address on first device [ OK ] # 152.37 [+0.34] TEST: Modify metric of address [ OK ] # 152.99 [+0.63] TEST: Prefix route removed on link down [ OK ] # 153.39 [+0.39] TEST: Prefix route with metric on link up [ OK ] # 153.90 [+0.52] TEST: Set metric with peer route on local side [ OK ] # 154.08 [+0.18] TEST: Set metric with peer route on peer side [ OK ] # 154.43 [+0.35] TEST: Modify metric and peer address on local side [ OK ] # 154.60 [+0.17] TEST: Modify metric and peer address on peer side [ OK ] # 156.42 [+1.82] # 156.42 [+0.00] IPv4 prefix route tests # 160.23 [+3.81] TEST: Default metric [ OK ] # 160.75 [+0.53] TEST: User specified metric on first device [ OK ] # 161.28 [+0.53] TEST: User specified metric on second device [ OK ] # 161.63 [+0.35] TEST: Delete of address on first device [ OK ] # 161.98 [+0.35] TEST: Modify metric of address [ OK ] # 162.32 [+0.34] TEST: Prefix route removed on link down [ OK ] # 162.68 [+0.36] TEST: Prefix route with metric on link up [ OK ] # 163.39 [+0.71] TEST: Modify metric of .0/24 address [ OK ] # 163.91 [+0.52] TEST: Set metric of address with peer route [ OK ] # 164.27 [+0.35] TEST: Modify metric and peer address for peer route [ OK ] # 166.10 [+1.84] # 166.10 [+0.00] IPv6 routes with metrics # 175.58 [+9.47] TEST: Single path route with mtu metric [ OK ] # 176.13 [+0.55] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 176.66 [+0.53] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 176.99 [+0.33] TEST: MTU of second leg [ OK ] # 177.35 [+0.36] TEST: Multipath route with mtu metric [ OK ] # 177.83 [+0.48] TEST: Using route with mtu metric [ OK ] # 178.13 [+0.30] TEST: Invalid metric (fails metric_convert) [ OK ] # 181.08 [+2.96] # 181.08 [+0.00] IPv4 route add / append tests # 190.64 [+9.56] TEST: Single path route with mtu metric [ OK ] # 191.00 [+0.36] TEST: Multipath route with mtu metric [ OK ] # 191.50 [+0.50] TEST: Using route with mtu metric [ OK ] # 191.80 [+0.29] TEST: Invalid metric (fails metric_convert) [ OK ] # 194.89 [+3.10] # 194.89 [+0.00] IPv4 route with IPv6 gateway tests # 206.47 [+11.58] TEST: Single path route with IPv6 gateway [ OK ] # 206.95 [+0.49] TEST: Single path route with IPv6 gateway - ping [ OK ] # 207.14 [+0.19] TEST: Single path route delete [ OK ] # 207.49 [+0.35] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 207.85 [+0.36] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 208.04 [+0.19] TEST: Multipath route delete exact match [ OK ] # 208.22 [+0.18] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 208.58 [+0.36] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 208.75 [+0.17] TEST: Multipath route delete exact match [ OK ] # 211.69 [+2.94] # 211.69 [+0.00] IPv4 rp_filter tests # 223.89 [+12.19] TEST: rp_filter passes local packets [ OK ] # 224.18 [+0.29] TEST: rp_filter passes loopback packets [ OK ] # 225.62 [+1.44] # 225.62 [+0.00] IPv4 delete address route tests # 231.42 [+5.80] Regular FIB info # 231.74 [+0.31] TEST: Route removed from VRF when source address deleted [ OK ] # 231.87 [+0.13] TEST: Route in default VRF not removed [ OK ] # 232.50 [+0.62] TEST: Route removed in default VRF when source address deleted [ OK ] # 232.64 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 232.65 [+0.00] Identical FIB info with different table ID # 232.95 [+0.30] TEST: Route removed from VRF when source address deleted [ OK ] # 233.08 [+0.13] TEST: Route in default VRF not removed [ OK ] # 233.71 [+0.64] TEST: Route removed in default VRF when source address deleted [ OK ] # 233.85 [+0.14] TEST: Route in VRF is not removed by address delete [ OK ] # 233.85 [+0.00] Table ID 0 # 234.17 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 236.05 [+1.88] # 236.05 [+0.00] IPv6 delete address route tests # 246.25 [+10.20] Single device using src address # 246.54 [+0.29] TEST: Prefsrc removed when src address removed on other device [ OK ] # 246.54 [+0.00] Two devices with the same source address # 246.89 [+0.35] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 247.22 [+0.33] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 247.23 [+0.00] VRF with single device using src address # 247.56 [+0.33] TEST: Prefsrc removed when src address removed on other device [ OK ] # 247.56 [+0.00] VRF with two devices using src address # 247.85 [+0.29] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 248.20 [+0.35] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 248.20 [+0.00] src address and nexthop dev in same VRF # 248.54 [+0.34] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 248.74 [+0.20] TEST: Prefsrc in default VRF not removed [ OK ] # 249.40 [+0.66] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 249.54 [+0.14] TEST: Prefsrc in default VRF removed [ OK ] # 249.54 [+0.00] src address and nexthop device in different VRF # 249.87 [+0.33] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 250.00 [+0.14] TEST: Prefsrc not removed in default VRF [ OK ] # 250.49 [+0.49] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 250.65 [+0.16] TEST: Prefsrc removed in default VRF [ OK ] # 250.65 [+0.00] Table ID 0 # 250.96 [+0.31] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 250.97 [+0.00] Link local source route # 251.28 [+0.32] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 251.60 [+0.32] TEST: Prefsrc removed when delete ll addr [ OK ] # 251.76 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 252.24 [+0.49] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 255.09 [+2.84] # 255.09 [+0.00] IPv4 mangling tests # 268.10 [+13.01] TEST: Connection with correct parameters [ OK ] # 268.42 [+0.33] TEST: Connection with incorrect parameters [ OK ] # 269.88 [+1.45] TEST: Connection with correct parameters - mangling [ OK ] # 271.05 [+1.17] TEST: Connection with correct parameters - no mangling [ OK ] # 271.17 [+0.12] TEST: Connection check - server side [ OK ] # 274.68 [+3.51] # 274.68 [+0.00] IPv6 mangling tests # 287.43 [+12.75] TEST: Connection with correct parameters [ OK ] # 287.81 [+0.39] TEST: Connection with incorrect parameters [ OK ] # 289.03 [+1.22] TEST: Connection with correct parameters - mangling [ OK ] # 290.23 [+1.20] TEST: Connection with correct parameters - no mangling [ OK ] # 290.36 [+0.13] TEST: Connection check - server side [ OK ] # 293.84 [+3.48] # 293.84 [+0.00] IPv4 broadcast neighbour tests # 298.19 [+4.36] TEST: Resolved neighbour for broadcast address [ OK ] # 298.37 [+0.18] TEST: Resolved neighbour for network broadcast address [ OK ] # 298.54 [+0.17] TEST: Unresolved neighbour for broadcast address [ OK ] # 298.72 [+0.18] TEST: Unresolved neighbour for network broadcast address [ OK ] # 302.48 [+3.75] # 302.48 [+0.00] Fib6 garbage collection test # 316.96 [+14.48] TEST: ipv6 route garbage collection [ OK ] # 331.72 [+14.77] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 346.51 [+14.78] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 361.45 [+14.94] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 376.78 [+15.33] TEST: ipv6 route garbage collection (RA message) [ OK ] # 378.17 [+1.38] # 378.17 [+0.00] IPv4 multipath list receive tests # 402.16 [+24.00] TEST: Multipath route hit ratio (1.00) [ OK ] # 405.14 [+2.98] # 405.14 [+0.00] IPv6 multipath list receive tests # 428.92 [+23.78] TEST: Multipath route hit ratio (1.00) [ OK ] # 431.97 [+3.05] # 431.97 [+0.00] Tests passed: 229 # 431.97 [+0.00] Tests failed: 0 ok 1 selftests: net: fib_tests.sh 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__->