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 # 0.74 [+0.74] # 0.74 [+0.00] Single path route test # 2.44 [+1.70] Start point # 2.59 [+0.15] TEST: IPv4 fibmatch [ OK ] # 2.75 [+0.16] TEST: IPv6 fibmatch [ OK ] # 2.93 [+0.19] Nexthop device deleted # 3.09 [+0.15] TEST: IPv4 fibmatch - no route [ OK ] # 3.24 [+0.15] TEST: IPv6 fibmatch - no route [ OK ] # 4.14 [+0.90] # 4.14 [+0.00] Multipath route test # 7.14 [+3.00] Start point # 7.29 [+0.16] TEST: IPv4 fibmatch [ OK ] # 7.45 [+0.15] TEST: IPv6 fibmatch [ OK ] # 7.64 [+0.19] One nexthop device deleted # 7.79 [+0.15] TEST: IPv4 - multipath route removed on delete [ OK ] # 7.94 [+0.15] TEST: IPv6 - multipath down to single path [ OK ] # 8.13 [+0.20] Second nexthop device deleted # 8.28 [+0.15] TEST: IPv6 - no route [ OK ] # 9.16 [+0.88] # 9.16 [+0.00] Single path, admin down # 11.21 [+2.05] Start point # 11.35 [+0.13] TEST: IPv4 fibmatch [ OK ] # 11.50 [+0.15] TEST: IPv6 fibmatch [ OK ] # 11.64 [+0.15] Route deleted on down # 11.78 [+0.14] TEST: IPv4 fibmatch [ OK ] # 11.92 [+0.14] TEST: IPv6 fibmatch [ OK ] # 12.62 [+0.70] # 12.62 [+0.00] Admin down multipath # 15.52 [+2.90] Verify start point # 15.66 [+0.14] TEST: IPv4 fibmatch [ OK ] # 15.81 [+0.15] TEST: IPv6 fibmatch [ OK ] # 15.95 [+0.14] One device down, one up # 16.10 [+0.15] TEST: IPv4 fibmatch on down device [ OK ] # 16.23 [+0.14] TEST: IPv6 fibmatch on down device [ OK ] # 16.38 [+0.14] TEST: IPv4 fibmatch on up device [ OK ] # 16.52 [+0.15] TEST: IPv6 fibmatch on up device [ OK ] # 16.64 [+0.11] TEST: IPv4 flags on down device [ OK ] # 16.75 [+0.11] TEST: IPv6 flags on down device [ OK ] # 16.88 [+0.14] TEST: IPv4 flags on up device [ OK ] # 17.00 [+0.12] TEST: IPv6 flags on up device [ OK ] # 17.28 [+0.28] Other device down and up # 17.42 [+0.14] TEST: IPv4 fibmatch on down device [ OK ] # 17.57 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 17.71 [+0.14] TEST: IPv4 fibmatch on up device [ OK ] # 17.85 [+0.14] TEST: IPv6 fibmatch on up device [ OK ] # 17.97 [+0.12] TEST: IPv4 flags on down device [ OK ] # 18.08 [+0.11] TEST: IPv6 flags on down device [ OK ] # 18.19 [+0.11] TEST: IPv4 flags on up device [ OK ] # 18.30 [+0.11] TEST: IPv6 flags on up device [ OK ] # 18.44 [+0.15] Both devices down # 18.60 [+0.16] TEST: IPv4 fibmatch [ OK ] # 18.74 [+0.14] TEST: IPv6 fibmatch [ OK ] # 19.61 [+0.87] # 19.61 [+0.00] Local carrier tests - single path # 21.81 [+2.19] Start point # 21.95 [+0.14] TEST: IPv4 fibmatch [ OK ] # 22.10 [+0.15] TEST: IPv6 fibmatch [ OK ] # 22.22 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 22.34 [+0.12] TEST: IPv6 - no linkdown flag [ OK ] # 23.60 [+1.26] Carrier off on nexthop # 23.74 [+0.14] TEST: IPv4 fibmatch [ OK ] # 23.88 [+0.14] TEST: IPv6 fibmatch [ OK ] # 24.01 [+0.13] TEST: IPv4 - linkdown flag set [ OK ] # 24.12 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 24.41 [+0.29] Route to local address with carrier down # 24.54 [+0.14] TEST: IPv4 fibmatch [ OK ] # 24.70 [+0.15] TEST: IPv6 fibmatch [ OK ] # 24.82 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 24.95 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 25.65 [+0.70] # 25.65 [+0.00] Single path route carrier test # 27.83 [+2.18] Start point # 27.97 [+0.14] TEST: IPv4 fibmatch [ OK ] # 28.11 [+0.14] TEST: IPv6 fibmatch [ OK ] # 28.22 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 28.34 [+0.12] TEST: IPv6 no linkdown flag [ OK ] # 29.58 [+1.24] Carrier down # 29.71 [+0.13] TEST: IPv4 fibmatch [ OK ] # 29.85 [+0.14] TEST: IPv6 fibmatch [ OK ] # 29.96 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 30.08 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 30.37 [+0.30] Second address added with carrier down # 30.52 [+0.14] TEST: IPv4 fibmatch [ OK ] # 30.65 [+0.13] TEST: IPv6 fibmatch [ OK ] # 30.78 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 30.90 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 37.43 [+6.53] # 37.43 [+0.00] IPv4 nexthop tests # 37.43 [+0.00] <<< write me >>> # 37.72 [+0.28] # 37.72 [+0.00] IPv6 nexthop tests # 37.87 [+0.15] TEST: Directly connected nexthop, unicast address [ OK ] # 38.02 [+0.15] TEST: Directly connected nexthop, unicast address with device [ OK ] # 38.18 [+0.16] TEST: Gateway is linklocal address [ OK ] # 38.33 [+0.16] TEST: Gateway is linklocal address, no device [ OK ] # 38.50 [+0.16] TEST: Gateway can not be local unicast address [ OK ] # 38.64 [+0.14] TEST: Gateway can not be local unicast address, with device [ OK ] # 38.80 [+0.16] TEST: Gateway can not be a local linklocal address [ OK ] # 38.95 [+0.14] TEST: Gateway can be local address in a VRF [ OK ] # 39.10 [+0.15] TEST: Gateway can be local address in a VRF, with device [ OK ] # 39.26 [+0.16] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 39.42 [+0.16] TEST: Redirect to VRF lookup [ OK ] # 39.56 [+0.15] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 39.71 [+0.15] TEST: VRF route, gateway can not be a local address [ OK ] # 39.86 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 41.26 [+1.40] # 41.26 [+0.00] FIB rule with suppress_prefixlength # 44.27 [+3.01] TEST: FIB rule suppress test [ OK ] # 47.02 [+2.75] # 47.02 [+0.00] Fib6 info length calculation in route notify test # 52.31 [+5.29] TEST: ipv6 route add notify [ OK ] # 55.05 [+2.74] # 55.05 [+0.00] Fib4 info length calculation in route notify test # 60.36 [+5.31] TEST: ipv4 route add notify [ OK ] # 67.89 [+7.53] # 67.89 [+0.00] IPv6 route add / append tests # 68.47 [+0.58] TEST: Attempt to add duplicate route - gw [ OK ] # 69.05 [+0.58] TEST: Attempt to add duplicate route - dev only [ OK ] # 69.64 [+0.59] TEST: Attempt to add duplicate route - reject route [ OK ] # 70.35 [+0.72] TEST: Append nexthop to existing route - gw [ OK ] # 70.94 [+0.59] TEST: Add multipath route [ OK ] # 71.53 [+0.59] TEST: Attempt to add duplicate multipath route [ OK ] # 72.26 [+0.73] TEST: Route add with different metrics [ OK ] # 72.55 [+0.29] TEST: Route delete with metric [ OK ] # 72.55 [+0.00] # 72.55 [+0.00] IPv6 route replace tests # 73.26 [+0.71] TEST: Single path with single path [ OK ] # 73.99 [+0.73] TEST: Single path with multipath [ OK ] # 74.72 [+0.72] TEST: Single path with single path via multipath attribute [ OK ] # 75.44 [+0.72] TEST: Invalid nexthop [ OK ] # 76.01 [+0.57] TEST: Single path - replace of non-existent route [ OK ] # 76.73 [+0.72] TEST: Multipath with multipath [ OK ] # 77.43 [+0.70] TEST: Multipath with single path [ OK ] # 78.14 [+0.71] TEST: Multipath with single path via multipath attribute [ OK ] # 78.85 [+0.71] TEST: Multipath with dev-only [ OK ] # 79.57 [+0.72] TEST: Multipath - invalid first nexthop [ OK ] # 80.29 [+0.71] TEST: Multipath - invalid second nexthop [ OK ] # 80.87 [+0.58] TEST: Multipath - replace of non-existent route [ OK ] # 80.87 [+0.00] # 80.87 [+0.00] IPv6 route with dsfield tests # 81.17 [+0.30] TEST: Reject route with dsfield [ OK ] # 91.13 [+9.96] # 91.13 [+0.00] IPv4 route add / append tests # 91.71 [+0.58] TEST: Attempt to add duplicate route - gw [ OK ] # 92.28 [+0.57] TEST: Attempt to add duplicate route - dev only [ OK ] # 92.85 [+0.56] TEST: Attempt to add duplicate route - reject route [ OK ] # 93.57 [+0.72] TEST: Add new nexthop for existing prefix [ OK ] # 94.29 [+0.72] TEST: Append nexthop to existing route - gw [ OK ] # 95.02 [+0.73] TEST: Append nexthop to existing route - dev only [ OK ] # 95.75 [+0.72] TEST: Append nexthop to existing route - reject route [ OK ] # 96.35 [+0.60] TEST: Append nexthop to existing reject route - gw [ OK ] # 96.94 [+0.59] TEST: Append nexthop to existing reject route - dev only [ OK ] # 97.52 [+0.59] TEST: add multipath route [ OK ] # 98.10 [+0.58] TEST: Attempt to add duplicate multipath route [ OK ] # 98.83 [+0.72] TEST: Route add with different metrics [ OK ] # 99.12 [+0.29] TEST: Route delete with metric [ OK ] # 99.13 [+0.00] # 99.13 [+0.00] IPv4 route replace tests # 99.85 [+0.73] TEST: Single path with single path [ OK ] # 100.59 [+0.74] TEST: Single path with multipath [ OK ] # 101.32 [+0.73] TEST: Single path with reject route [ OK ] # 102.05 [+0.73] TEST: Single path with single path via multipath attribute [ OK ] # 102.78 [+0.73] TEST: Invalid nexthop [ OK ] # 103.38 [+0.59] TEST: Single path - replace of non-existent route [ OK ] # 104.09 [+0.71] TEST: Multipath with multipath [ OK ] # 104.83 [+0.74] TEST: Multipath with single path [ OK ] # 105.54 [+0.71] TEST: Multipath with single path via multipath attribute [ OK ] # 106.25 [+0.71] TEST: Multipath with reject route [ OK ] # 107.00 [+0.75] TEST: Multipath - invalid first nexthop [ OK ] # 107.74 [+0.74] TEST: Multipath - invalid second nexthop [ OK ] # 108.32 [+0.58] TEST: Multipath - replace of non-existent route [ OK ] # 110.44 [+2.12] TEST: Cached route removed from VRF port device [ OK ] # 110.44 [+0.00] # 110.44 [+0.00] IPv4 route with dsfield tests # 110.74 [+0.30] TEST: Reject route with dsfield 0x01 [ OK ] # 110.89 [+0.15] TEST: Reject route with dsfield 0x02 [ OK ] # 111.04 [+0.15] TEST: Reject route with dsfield 0x03 [ OK ] # 111.44 [+0.40] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 111.57 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 111.70 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 111.82 [+0.12] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 111.93 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 112.06 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 112.19 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 112.32 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 112.44 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 112.56 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 112.68 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 112.79 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 115.31 [+2.53] # 115.31 [+0.00] IPv6 prefix route tests # 118.43 [+3.12] TEST: Default metric [ OK ] # 118.88 [+0.45] TEST: User specified metric on first device [ OK ] # 119.34 [+0.45] TEST: User specified metric on second device [ OK ] # 119.61 [+0.28] TEST: Delete of address on first device [ OK ] # 119.89 [+0.28] TEST: Modify metric of address [ OK ] # 120.43 [+0.53] TEST: Prefix route removed on link down [ OK ] # 120.70 [+0.28] TEST: Prefix route with metric on link up [ OK ] # 121.12 [+0.41] TEST: Set metric with peer route on local side [ OK ] # 121.25 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 121.54 [+0.29] TEST: Modify metric and peer address on local side [ OK ] # 121.67 [+0.13] TEST: Modify metric and peer address on peer side [ OK ] # 123.21 [+1.54] # 123.21 [+0.00] IPv4 prefix route tests # 126.34 [+3.14] TEST: Default metric [ OK ] # 126.79 [+0.45] TEST: User specified metric on first device [ OK ] # 127.23 [+0.44] TEST: User specified metric on second device [ OK ] # 127.52 [+0.29] TEST: Delete of address on first device [ OK ] # 127.82 [+0.30] TEST: Modify metric of address [ OK ] # 128.11 [+0.29] TEST: Prefix route removed on link down [ OK ] # 128.40 [+0.29] TEST: Prefix route with metric on link up [ OK ] # 128.99 [+0.59] TEST: Modify metric of .0/24 address [ OK ] # 129.42 [+0.43] TEST: Set metric of address with peer route [ OK ] # 129.72 [+0.30] TEST: Modify metric and peer address for peer route [ OK ] # 131.25 [+1.54] # 131.25 [+0.00] IPv6 routes with metrics # 139.16 [+7.91] TEST: Single path route with mtu metric [ OK ] # 139.61 [+0.44] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 140.04 [+0.43] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 140.31 [+0.27] TEST: MTU of second leg [ OK ] # 140.58 [+0.27] TEST: Multipath route with mtu metric [ OK ] # 140.99 [+0.41] TEST: Using route with mtu metric [ OK ] # 141.24 [+0.25] TEST: Invalid metric (fails metric_convert) [ OK ] # 143.78 [+2.54] # 143.78 [+0.00] IPv4 route add / append tests # 151.69 [+7.92] TEST: Single path route with mtu metric [ OK ] # 152.00 [+0.31] TEST: Multipath route with mtu metric [ OK ] # 152.39 [+0.40] TEST: Using route with mtu metric [ OK ] # 152.66 [+0.26] TEST: Invalid metric (fails metric_convert) [ OK ] # 155.18 [+2.52] # 155.18 [+0.00] IPv4 route with IPv6 gateway tests # 165.03 [+9.85] TEST: Single path route with IPv6 gateway [ OK ] # 165.44 [+0.41] TEST: Single path route with IPv6 gateway - ping [ OK ] # 165.59 [+0.14] TEST: Single path route delete [ OK ] # 165.87 [+0.29] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 166.17 [+0.30] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 166.32 [+0.15] TEST: Multipath route delete exact match [ OK ] # 166.46 [+0.14] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 166.77 [+0.30] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 166.91 [+0.14] TEST: Multipath route delete exact match [ OK ] # 169.48 [+2.57] # 169.48 [+0.00] IPv4 rp_filter tests # 179.89 [+10.41] TEST: rp_filter passes local packets [ OK ] # 180.16 [+0.27] TEST: rp_filter passes loopback packets [ OK ] # 181.35 [+1.19] # 181.35 [+0.00] IPv4 delete address route tests # 186.30 [+4.96] Regular FIB info # 186.57 [+0.27] TEST: Route removed from VRF when source address deleted [ OK ] # 186.71 [+0.13] TEST: Route in default VRF not removed [ OK ] # 187.26 [+0.55] TEST: Route removed in default VRF when source address deleted [ OK ] # 187.37 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 187.37 [+0.00] Identical FIB info with different table ID # 187.64 [+0.27] TEST: Route removed from VRF when source address deleted [ OK ] # 187.76 [+0.12] TEST: Route in default VRF not removed [ OK ] # 188.29 [+0.53] TEST: Route removed in default VRF when source address deleted [ OK ] # 188.41 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 188.41 [+0.00] Table ID 0 # 188.65 [+0.24] TEST: Route removed in default VRF when source address deleted [ OK ] # 190.24 [+1.59] # 190.24 [+0.00] IPv6 delete address route tests # 198.43 [+8.19] Single device using src address # 198.70 [+0.27] TEST: Prefsrc removed when src address removed on other device [ OK ] # 198.70 [+0.00] Two devices with the same source address # 198.96 [+0.25] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 199.22 [+0.26] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 199.22 [+0.00] VRF with single device using src address # 199.50 [+0.27] TEST: Prefsrc removed when src address removed on other device [ OK ] # 199.50 [+0.00] VRF with two devices using src address # 199.75 [+0.25] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 200.01 [+0.26] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 200.01 [+0.00] src address and nexthop dev in same VRF # 200.28 [+0.26] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 200.40 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 200.94 [+0.54] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 201.05 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 201.06 [+0.00] src address and nexthop device in different VRF # 201.31 [+0.25] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 201.41 [+0.11] TEST: Prefsrc not removed in default VRF [ OK ] # 201.83 [+0.41] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 201.95 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 201.95 [+0.00] Table ID 0 # 202.20 [+0.25] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 202.20 [+0.00] Link local source route # 202.46 [+0.25] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 202.71 [+0.25] TEST: Prefsrc removed when delete ll addr [ OK ] # 202.84 [+0.13] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 203.23 [+0.39] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 205.63 [+2.40] # 205.63 [+0.00] IPv4 mangling tests # 216.77 [+11.15] TEST: Connection with correct parameters [ OK ] # 217.06 [+0.28] TEST: Connection with incorrect parameters [ OK ] # 218.26 [+1.20] TEST: Connection with correct parameters - mangling [ OK ] # 219.34 [+1.08] TEST: Connection with correct parameters - no mangling [ OK ] # 219.44 [+0.10] TEST: Connection check - server side [ OK ] # 222.49 [+3.05] # 222.49 [+0.00] IPv6 mangling tests # 233.71 [+11.21] TEST: Connection with correct parameters [ OK ] # 234.03 [+0.32] TEST: Connection with incorrect parameters [ OK ] # 235.12 [+1.10] TEST: Connection with correct parameters - mangling [ OK ] # 236.25 [+1.12] TEST: Connection with correct parameters - no mangling [ OK ] # 236.33 [+0.08] TEST: Connection check - server side [ OK ] # 239.39 [+3.06] # 239.39 [+0.00] IPv4 broadcast neighbour tests # 243.17 [+3.78] TEST: Resolved neighbour for broadcast address [ OK ] # 243.33 [+0.16] TEST: Resolved neighbour for network broadcast address [ OK ] # 243.48 [+0.16] TEST: Unresolved neighbour for broadcast address [ OK ] # 243.63 [+0.14] TEST: Unresolved neighbour for network broadcast address [ OK ] # 246.81 [+3.19] # 246.81 [+0.00] Fib6 garbage collection test # 260.96 [+14.15] TEST: ipv6 route garbage collection [ OK ] # 275.40 [+14.44] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 289.91 [+14.51] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 304.72 [+14.81] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 319.83 [+15.12] TEST: ipv6 route garbage collection (RA message) [ OK ] # 321.13 [+1.30] # 321.13 [+0.00] IPv4 multipath list receive tests # 343.85 [+22.72] TEST: Multipath route hit ratio (1.00) [ OK ] # 346.77 [+2.91] # 346.77 [+0.00] IPv6 multipath list receive tests # 367.99 [+21.22] TEST: Multipath route hit ratio (1.00) [ OK ] # 370.81 [+2.82] # 370.81 [+0.00] Tests passed: 229 # 370.81 [+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__->