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.95 [+1.91] Start point # 3.12 [+0.17] TEST: IPv4 fibmatch [ OK ] # 3.28 [+0.16] TEST: IPv6 fibmatch [ OK ] # 3.48 [+0.21] Nexthop device deleted # 3.64 [+0.16] TEST: IPv4 fibmatch - no route [ OK ] # 3.81 [+0.17] TEST: IPv6 fibmatch - no route [ OK ] # 4.82 [+1.02] # 4.82 [+0.00] Multipath route test # 8.28 [+3.46] Start point # 8.43 [+0.16] TEST: IPv4 fibmatch [ OK ] # 8.59 [+0.16] TEST: IPv6 fibmatch [ OK ] # 8.80 [+0.21] One nexthop device deleted # 8.96 [+0.16] TEST: IPv4 - multipath route removed on delete [ OK ] # 9.11 [+0.15] TEST: IPv6 - multipath down to single path [ OK ] # 9.33 [+0.22] Second nexthop device deleted # 9.48 [+0.16] TEST: IPv6 - no route [ OK ] # 10.47 [+0.99] # 10.47 [+0.00] Single path, admin down # 12.82 [+2.35] Start point # 12.99 [+0.17] TEST: IPv4 fibmatch [ OK ] # 13.15 [+0.16] TEST: IPv6 fibmatch [ OK ] # 13.33 [+0.18] Route deleted on down # 13.49 [+0.17] TEST: IPv4 fibmatch [ OK ] # 13.65 [+0.15] TEST: IPv6 fibmatch [ OK ] # 14.48 [+0.83] # 14.48 [+0.00] Admin down multipath # 17.82 [+3.34] Verify start point # 17.97 [+0.16] TEST: IPv4 fibmatch [ OK ] # 18.13 [+0.16] TEST: IPv6 fibmatch [ OK ] # 18.29 [+0.16] One device down, one up # 18.45 [+0.16] TEST: IPv4 fibmatch on down device [ OK ] # 18.63 [+0.17] TEST: IPv6 fibmatch on down device [ OK ] # 18.79 [+0.16] TEST: IPv4 fibmatch on up device [ OK ] # 18.95 [+0.16] TEST: IPv6 fibmatch on up device [ OK ] # 19.09 [+0.14] TEST: IPv4 flags on down device [ OK ] # 19.26 [+0.16] TEST: IPv6 flags on down device [ OK ] # 19.38 [+0.13] TEST: IPv4 flags on up device [ OK ] # 19.56 [+0.18] TEST: IPv6 flags on up device [ OK ] # 19.87 [+0.30] Other device down and up # 20.03 [+0.16] TEST: IPv4 fibmatch on down device [ OK ] # 20.18 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 20.34 [+0.16] TEST: IPv4 fibmatch on up device [ OK ] # 20.49 [+0.15] TEST: IPv6 fibmatch on up device [ OK ] # 20.63 [+0.13] TEST: IPv4 flags on down device [ OK ] # 20.76 [+0.13] TEST: IPv6 flags on down device [ OK ] # 20.88 [+0.12] TEST: IPv4 flags on up device [ OK ] # 21.02 [+0.15] TEST: IPv6 flags on up device [ OK ] # 21.19 [+0.16] Both devices down # 21.34 [+0.15] TEST: IPv4 fibmatch [ OK ] # 21.49 [+0.15] TEST: IPv6 fibmatch [ OK ] # 22.45 [+0.96] # 22.45 [+0.00] Local carrier tests - single path # 24.87 [+2.43] Start point # 25.03 [+0.15] TEST: IPv4 fibmatch [ OK ] # 25.19 [+0.17] TEST: IPv6 fibmatch [ OK ] # 25.31 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 25.46 [+0.15] TEST: IPv6 - no linkdown flag [ OK ] # 26.73 [+1.28] Carrier off on nexthop # 26.91 [+0.18] TEST: IPv4 fibmatch [ OK ] # 27.09 [+0.18] TEST: IPv6 fibmatch [ OK ] # 27.24 [+0.15] TEST: IPv4 - linkdown flag set [ OK ] # 27.37 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 27.70 [+0.33] Route to local address with carrier down # 27.86 [+0.17] TEST: IPv4 fibmatch [ OK ] # 28.02 [+0.16] TEST: IPv6 fibmatch [ OK ] # 28.16 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 28.28 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 29.08 [+0.79] # 29.08 [+0.00] Single path route carrier test # 31.67 [+2.59] Start point # 31.82 [+0.16] TEST: IPv4 fibmatch [ OK ] # 31.99 [+0.16] TEST: IPv6 fibmatch [ OK ] # 32.14 [+0.15] TEST: IPv4 no linkdown flag [ OK ] # 32.34 [+0.20] TEST: IPv6 no linkdown flag [ OK ] # 33.72 [+1.38] Carrier down # 33.89 [+0.17] TEST: IPv4 fibmatch [ OK ] # 34.08 [+0.19] TEST: IPv6 fibmatch [ OK ] # 34.24 [+0.16] TEST: IPv4 linkdown flag set [ OK ] # 34.39 [+0.15] TEST: IPv6 linkdown flag set [ OK ] # 34.75 [+0.36] Second address added with carrier down # 34.92 [+0.17] TEST: IPv4 fibmatch [ OK ] # 35.08 [+0.16] TEST: IPv6 fibmatch [ OK ] # 35.23 [+0.15] TEST: IPv4 linkdown flag set [ OK ] # 35.36 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 42.75 [+7.39] # 42.75 [+0.00] IPv4 nexthop tests # 42.75 [+0.00] <<< write me >>> # 43.12 [+0.37] # 43.12 [+0.00] IPv6 nexthop tests # 43.30 [+0.17] TEST: Directly connected nexthop, unicast address [ OK ] # 43.47 [+0.17] TEST: Directly connected nexthop, unicast address with device [ OK ] # 43.71 [+0.24] TEST: Gateway is linklocal address [ OK ] # 43.87 [+0.16] TEST: Gateway is linklocal address, no device [ OK ] # 44.04 [+0.17] TEST: Gateway can not be local unicast address [ OK ] # 44.27 [+0.22] TEST: Gateway can not be local unicast address, with device [ OK ] # 44.43 [+0.17] TEST: Gateway can not be a local linklocal address [ OK ] # 44.61 [+0.17] TEST: Gateway can be local address in a VRF [ OK ] # 44.76 [+0.16] TEST: Gateway can be local address in a VRF, with device [ OK ] # 44.93 [+0.17] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 45.10 [+0.17] TEST: Redirect to VRF lookup [ OK ] # 45.27 [+0.17] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 45.44 [+0.17] TEST: VRF route, gateway can not be a local address [ OK ] # 45.60 [+0.16] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 47.17 [+1.56] # 47.17 [+0.00] FIB rule with suppress_prefixlength # 50.64 [+3.48] TEST: FIB rule suppress test [ OK ] # 53.71 [+3.07] # 53.71 [+0.00] Fib6 info length calculation in route notify test # 59.60 [+5.89] TEST: ipv6 route add notify [ OK ] # 62.78 [+3.17] # 62.78 [+0.00] Fib4 info length calculation in route notify test # 68.46 [+5.68] TEST: ipv4 route add notify [ OK ] # 77.18 [+8.73] # 77.18 [+0.00] IPv6 route add / append tests # 77.90 [+0.71] TEST: Attempt to add duplicate route - gw [ OK ] # 78.60 [+0.70] TEST: Attempt to add duplicate route - dev only [ OK ] # 79.27 [+0.67] TEST: Attempt to add duplicate route - reject route [ OK ] # 80.09 [+0.82] TEST: Append nexthop to existing route - gw [ OK ] # 80.73 [+0.64] TEST: Add multipath route [ OK ] # 81.37 [+0.64] TEST: Attempt to add duplicate multipath route [ OK ] # 82.28 [+0.90] TEST: Route add with different metrics [ OK ] # 82.60 [+0.32] TEST: Route delete with metric [ OK ] # 82.60 [+0.00] # 82.60 [+0.00] IPv6 route replace tests # 83.42 [+0.81] TEST: Single path with single path [ OK ] # 84.28 [+0.86] TEST: Single path with multipath [ OK ] # 85.14 [+0.87] TEST: Single path with single path via multipath attribute [ OK ] # 86.00 [+0.86] TEST: Invalid nexthop [ OK ] # 86.69 [+0.68] TEST: Single path - replace of non-existent route [ OK ] # 87.59 [+0.90] TEST: Multipath with multipath [ OK ] # 88.42 [+0.84] TEST: Multipath with single path [ OK ] # 89.32 [+0.89] TEST: Multipath with single path via multipath attribute [ OK ] # 90.12 [+0.80] TEST: Multipath with dev-only [ OK ] # 91.00 [+0.88] TEST: Multipath - invalid first nexthop [ OK ] # 91.81 [+0.81] TEST: Multipath - invalid second nexthop [ OK ] # 92.51 [+0.71] TEST: Multipath - replace of non-existent route [ OK ] # 92.52 [+0.00] # 92.52 [+0.00] IPv6 route with dsfield tests # 92.87 [+0.36] TEST: Reject route with dsfield [ OK ] # 104.97 [+12.09] # 104.97 [+0.00] IPv4 route add / append tests # 105.67 [+0.70] TEST: Attempt to add duplicate route - gw [ OK ] # 106.39 [+0.72] TEST: Attempt to add duplicate route - dev only [ OK ] # 107.11 [+0.72] TEST: Attempt to add duplicate route - reject route [ OK ] # 107.96 [+0.85] TEST: Add new nexthop for existing prefix [ OK ] # 108.81 [+0.85] TEST: Append nexthop to existing route - gw [ OK ] # 109.70 [+0.89] TEST: Append nexthop to existing route - dev only [ OK ] # 110.61 [+0.92] TEST: Append nexthop to existing route - reject route [ OK ] # 111.31 [+0.70] TEST: Append nexthop to existing reject route - gw [ OK ] # 111.98 [+0.67] TEST: Append nexthop to existing reject route - dev only [ OK ] # 112.65 [+0.67] TEST: add multipath route [ OK ] # 113.39 [+0.73] TEST: Attempt to add duplicate multipath route [ OK ] # 114.29 [+0.90] TEST: Route add with different metrics [ OK ] # 114.64 [+0.35] TEST: Route delete with metric [ OK ] # 114.65 [+0.00] # 114.65 [+0.00] IPv4 route replace tests # 115.55 [+0.90] TEST: Single path with single path [ OK ] # 116.47 [+0.92] TEST: Single path with multipath [ OK ] # 117.42 [+0.95] TEST: Single path with reject route [ OK ] # 118.47 [+1.04] TEST: Single path with single path via multipath attribute [ OK ] # 119.39 [+0.92] TEST: Invalid nexthop [ OK ] # 120.09 [+0.70] TEST: Single path - replace of non-existent route [ OK ] # 121.02 [+0.93] TEST: Multipath with multipath [ OK ] # 121.99 [+0.97] TEST: Multipath with single path [ OK ] # 122.86 [+0.87] TEST: Multipath with single path via multipath attribute [ OK ] # 123.69 [+0.83] TEST: Multipath with reject route [ OK ] # 124.55 [+0.85] TEST: Multipath - invalid first nexthop [ OK ] # 125.39 [+0.85] TEST: Multipath - invalid second nexthop [ OK ] # 126.10 [+0.71] TEST: Multipath - replace of non-existent route [ OK ] # 128.63 [+2.54] TEST: Cached route removed from VRF port device [ OK ] # 128.64 [+0.00] # 128.64 [+0.00] IPv4 route with dsfield tests # 128.96 [+0.32] TEST: Reject route with dsfield 0x01 [ OK ] # 129.13 [+0.17] TEST: Reject route with dsfield 0x02 [ OK ] # 129.30 [+0.17] TEST: Reject route with dsfield 0x03 [ OK ] # 129.84 [+0.54] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 129.99 [+0.15] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 130.15 [+0.16] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 130.29 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 130.42 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 130.58 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 130.72 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 130.90 [+0.17] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 131.04 [+0.14] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 131.20 [+0.16] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 131.36 [+0.16] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 131.51 [+0.15] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 134.54 [+3.03] # 134.54 [+0.00] IPv6 prefix route tests # 138.14 [+3.60] TEST: Default metric [ OK ] # 138.64 [+0.50] TEST: User specified metric on first device [ OK ] # 139.13 [+0.49] TEST: User specified metric on second device [ OK ] # 139.42 [+0.29] TEST: Delete of address on first device [ OK ] # 139.75 [+0.33] TEST: Modify metric of address [ OK ] # 140.33 [+0.58] TEST: Prefix route removed on link down [ OK ] # 140.66 [+0.33] TEST: Prefix route with metric on link up [ OK ] # 141.12 [+0.46] TEST: Set metric with peer route on local side [ OK ] # 141.26 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 141.58 [+0.32] TEST: Modify metric and peer address on local side [ OK ] # 141.73 [+0.15] TEST: Modify metric and peer address on peer side [ OK ] # 143.45 [+1.72] # 143.45 [+0.00] IPv4 prefix route tests # 147.10 [+3.66] TEST: Default metric [ OK ] # 147.62 [+0.52] TEST: User specified metric on first device [ OK ] # 148.20 [+0.57] TEST: User specified metric on second device [ OK ] # 148.55 [+0.35] TEST: Delete of address on first device [ OK ] # 148.95 [+0.40] TEST: Modify metric of address [ OK ] # 149.28 [+0.33] TEST: Prefix route removed on link down [ OK ] # 149.65 [+0.37] TEST: Prefix route with metric on link up [ OK ] # 150.36 [+0.70] TEST: Modify metric of .0/24 address [ OK ] # 150.88 [+0.52] TEST: Set metric of address with peer route [ OK ] # 151.23 [+0.36] TEST: Modify metric and peer address for peer route [ OK ] # 153.15 [+1.92] # 153.15 [+0.00] IPv6 routes with metrics # 163.07 [+9.92] TEST: Single path route with mtu metric [ OK ] # 163.57 [+0.50] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 164.10 [+0.53] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 164.44 [+0.34] TEST: MTU of second leg [ OK ] # 164.76 [+0.32] TEST: Multipath route with mtu metric [ OK ] # 165.25 [+0.50] TEST: Using route with mtu metric [ OK ] # 165.54 [+0.29] TEST: Invalid metric (fails metric_convert) [ OK ] # 168.44 [+2.90] # 168.44 [+0.00] IPv4 route add / append tests # 177.92 [+9.48] TEST: Single path route with mtu metric [ OK ] # 178.27 [+0.35] TEST: Multipath route with mtu metric [ OK ] # 178.75 [+0.48] TEST: Using route with mtu metric [ OK ] # 179.07 [+0.31] TEST: Invalid metric (fails metric_convert) [ OK ] # 182.03 [+2.97] # 182.03 [+0.00] IPv4 route with IPv6 gateway tests # 193.57 [+11.53] TEST: Single path route with IPv6 gateway [ OK ] # 194.05 [+0.48] TEST: Single path route with IPv6 gateway - ping [ OK ] # 194.23 [+0.18] TEST: Single path route delete [ OK ] # 194.56 [+0.33] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 194.89 [+0.33] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 195.06 [+0.17] TEST: Multipath route delete exact match [ OK ] # 195.22 [+0.16] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 195.55 [+0.33] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 195.73 [+0.18] TEST: Multipath route delete exact match [ OK ] # 198.55 [+2.82] # 198.55 [+0.00] IPv4 rp_filter tests # 210.46 [+11.91] TEST: rp_filter passes local packets [ OK ] # 210.74 [+0.28] TEST: rp_filter passes loopback packets [ OK ] # 212.17 [+1.43] # 212.17 [+0.00] IPv4 delete address route tests # 217.77 [+5.60] Regular FIB info # 218.07 [+0.30] TEST: Route removed from VRF when source address deleted [ OK ] # 218.22 [+0.15] TEST: Route in default VRF not removed [ OK ] # 218.84 [+0.63] TEST: Route removed in default VRF when source address deleted [ OK ] # 219.00 [+0.16] TEST: Route in VRF is not removed by address delete [ OK ] # 219.00 [+0.00] Identical FIB info with different table ID # 219.31 [+0.30] TEST: Route removed from VRF when source address deleted [ OK ] # 219.48 [+0.17] TEST: Route in default VRF not removed [ OK ] # 220.13 [+0.66] TEST: Route removed in default VRF when source address deleted [ OK ] # 220.29 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 220.29 [+0.00] Table ID 0 # 220.58 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 222.40 [+1.83] # 222.40 [+0.00] IPv6 delete address route tests # 231.84 [+9.44] Single device using src address # 232.16 [+0.32] TEST: Prefsrc removed when src address removed on other device [ OK ] # 232.16 [+0.00] Two devices with the same source address # 232.44 [+0.28] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 232.74 [+0.29] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 232.74 [+0.00] VRF with single device using src address # 233.04 [+0.30] TEST: Prefsrc removed when src address removed on other device [ OK ] # 233.04 [+0.00] VRF with two devices using src address # 233.37 [+0.32] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 233.68 [+0.32] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 233.69 [+0.00] src address and nexthop dev in same VRF # 234.01 [+0.33] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 234.15 [+0.13] TEST: Prefsrc in default VRF not removed [ OK ] # 234.79 [+0.64] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 234.93 [+0.14] TEST: Prefsrc in default VRF removed [ OK ] # 234.93 [+0.00] src address and nexthop device in different VRF # 235.22 [+0.29] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 235.35 [+0.13] TEST: Prefsrc not removed in default VRF [ OK ] # 235.81 [+0.46] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 235.98 [+0.17] TEST: Prefsrc removed in default VRF [ OK ] # 235.98 [+0.00] Table ID 0 # 236.28 [+0.30] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 236.29 [+0.00] Link local source route # 236.59 [+0.30] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 236.88 [+0.30] TEST: Prefsrc removed when delete ll addr [ OK ] # 237.02 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 237.47 [+0.45] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 240.20 [+2.73] # 240.20 [+0.00] IPv4 mangling tests # 252.60 [+12.40] TEST: Connection with correct parameters [ OK ] # 252.92 [+0.32] TEST: Connection with incorrect parameters [ OK ] # 254.20 [+1.27] TEST: Connection with correct parameters - mangling [ OK ] # 255.39 [+1.19] TEST: Connection with correct parameters - no mangling [ OK ] # 255.52 [+0.13] TEST: Connection check - server side [ OK ] # 258.99 [+3.47] # 258.99 [+0.00] IPv6 mangling tests # 271.50 [+12.51] TEST: Connection with correct parameters [ OK ] # 271.86 [+0.36] TEST: Connection with incorrect parameters [ OK ] # 273.04 [+1.18] TEST: Connection with correct parameters - mangling [ OK ] # 274.23 [+1.20] TEST: Connection with correct parameters - no mangling [ OK ] # 274.37 [+0.13] TEST: Connection check - server side [ OK ] # 277.80 [+3.43] # 277.80 [+0.00] IPv4 broadcast neighbour tests # 282.15 [+4.35] TEST: Resolved neighbour for broadcast address [ OK ] # 282.32 [+0.18] TEST: Resolved neighbour for network broadcast address [ OK ] # 282.48 [+0.16] TEST: Unresolved neighbour for broadcast address [ OK ] # 282.65 [+0.17] TEST: Unresolved neighbour for network broadcast address [ OK ] # 286.37 [+3.71] # 286.37 [+0.00] Fib6 garbage collection test # 300.79 [+14.43] TEST: ipv6 route garbage collection [ OK ] # 315.62 [+14.82] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 330.43 [+14.81] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 345.39 [+14.96] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 360.76 [+15.37] TEST: ipv6 route garbage collection (RA message) [ OK ] # 362.23 [+1.47] # 362.23 [+0.00] IPv4 multipath list receive tests # 386.93 [+24.70] TEST: Multipath route hit ratio (1.00) [ OK ] # 390.30 [+3.37] # 390.30 [+0.00] IPv6 multipath list receive tests # 417.74 [+27.44] TEST: Multipath route hit ratio (1.00) [ OK ] # 420.97 [+3.23] # 420.97 [+0.00] Tests passed: 229 # 420.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__->