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.39 [+0.39] # 0.39 [+0.00] Single path route test # 1.51 [+1.12] Start point # 1.62 [+0.11] TEST: IPv4 fibmatch [ OK ] # 1.72 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.87 [+0.15] Nexthop device deleted # 1.97 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.10 [+0.13] TEST: IPv6 fibmatch - no route [ OK ] # 2.77 [+0.68] # 2.78 [+0.00] Multipath route test # 4.80 [+2.02] Start point # 4.91 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.00 [+0.10] TEST: IPv6 fibmatch [ OK ] # 5.15 [+0.15] One nexthop device deleted # 5.24 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.35 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 5.50 [+0.15] Second nexthop device deleted # 5.60 [+0.10] TEST: IPv6 - no route [ OK ] # 6.24 [+0.65] # 6.24 [+0.00] Single path, admin down # 7.64 [+1.39] Start point # 7.75 [+0.11] TEST: IPv4 fibmatch [ OK ] # 7.84 [+0.10] TEST: IPv6 fibmatch [ OK ] # 7.96 [+0.11] Route deleted on down # 8.05 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.15 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.66 [+0.51] # 8.66 [+0.00] Admin down multipath # 10.71 [+2.04] Verify start point # 10.81 [+0.10] TEST: IPv4 fibmatch [ OK ] # 10.91 [+0.11] TEST: IPv6 fibmatch [ OK ] # 11.02 [+0.11] One device down, one up # 11.12 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 11.23 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 11.32 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 11.44 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 11.55 [+0.12] TEST: IPv4 flags on down device [ OK ] # 11.66 [+0.11] TEST: IPv6 flags on down device [ OK ] # 11.79 [+0.13] TEST: IPv4 flags on up device [ OK ] # 11.90 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.11 [+0.21] Other device down and up # 12.22 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.32 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.42 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 12.52 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.64 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.76 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.86 [+0.10] TEST: IPv4 flags on up device [ OK ] # 12.99 [+0.13] TEST: IPv6 flags on up device [ OK ] # 13.10 [+0.11] Both devices down # 13.21 [+0.10] TEST: IPv4 fibmatch [ OK ] # 13.30 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.01 [+0.71] # 14.01 [+0.00] Local carrier tests - single path # 15.51 [+1.50] Start point # 15.60 [+0.10] TEST: IPv4 fibmatch [ OK ] # 15.70 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.81 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 15.92 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 17.08 [+1.17] Carrier off on nexthop # 17.20 [+0.12] TEST: IPv4 fibmatch [ OK ] # 17.30 [+0.10] TEST: IPv6 fibmatch [ OK ] # 17.42 [+0.12] TEST: IPv4 - linkdown flag set [ OK ] # 17.54 [+0.12] TEST: IPv6 - linkdown flag set [ OK ] # 17.76 [+0.21] Route to local address with carrier down # 17.86 [+0.11] TEST: IPv4 fibmatch [ OK ] # 17.96 [+0.10] TEST: IPv6 fibmatch [ OK ] # 18.06 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 18.18 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 18.72 [+0.54] # 18.72 [+0.00] Single path route carrier test # 20.22 [+1.50] Start point # 20.32 [+0.10] TEST: IPv4 fibmatch [ OK ] # 20.43 [+0.11] TEST: IPv6 fibmatch [ OK ] # 20.54 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 20.63 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 21.80 [+1.17] Carrier down # 21.91 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.01 [+0.10] TEST: IPv6 fibmatch [ OK ] # 22.11 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 22.22 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 22.42 [+0.20] Second address added with carrier down # 22.52 [+0.09] TEST: IPv4 fibmatch [ OK ] # 22.63 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.74 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 22.83 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 27.89 [+5.05] # 27.89 [+0.00] IPv4 nexthop tests # 27.89 [+0.00] <<< write me >>> # 28.20 [+0.31] # 28.20 [+0.00] IPv6 nexthop tests # 28.31 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 28.46 [+0.15] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.58 [+0.13] TEST: Gateway is linklocal address [ OK ] # 28.71 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 28.83 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 28.94 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.06 [+0.12] TEST: Gateway can not be a local linklocal address [ OK ] # 29.19 [+0.13] TEST: Gateway can be local address in a VRF [ OK ] # 29.31 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.42 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.56 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 29.68 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.79 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 29.92 [+0.13] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.16 [+1.23] # 31.16 [+0.00] FIB rule with suppress_prefixlength # 33.36 [+2.21] TEST: FIB rule suppress test [ OK ] # 35.34 [+1.97] # 35.34 [+0.00] Fib6 info length calculation in route notify test # 39.80 [+4.46] TEST: ipv6 route add notify [ OK ] # 41.86 [+2.06] # 41.86 [+0.00] Fib4 info length calculation in route notify test # 46.38 [+4.53] TEST: ipv4 route add notify [ OK ] # 52.19 [+5.81] # 52.19 [+0.00] IPv6 route add / append tests # 52.66 [+0.47] TEST: Attempt to add duplicate route - gw [ OK ] # 53.12 [+0.46] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.57 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.16 [+0.59] TEST: Append nexthop to existing route - gw [ OK ] # 54.64 [+0.48] TEST: Add multipath route [ OK ] # 55.10 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 55.68 [+0.58] TEST: Route add with different metrics [ OK ] # 55.94 [+0.25] TEST: Route delete with metric [ OK ] # 55.94 [+0.00] # 55.94 [+0.00] IPv6 route replace tests # 56.53 [+0.59] TEST: Single path with single path [ OK ] # 57.11 [+0.59] TEST: Single path with multipath [ OK ] # 57.73 [+0.61] TEST: Single path with single path via multipath attribute [ OK ] # 58.30 [+0.57] TEST: Invalid nexthop [ OK ] # 58.76 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 59.36 [+0.60] TEST: Multipath with multipath [ OK ] # 59.96 [+0.59] TEST: Multipath with single path [ OK ] # 60.54 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 61.13 [+0.59] TEST: Multipath with dev-only [ OK ] # 61.71 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 62.32 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 62.78 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 62.79 [+0.00] # 62.79 [+0.00] IPv6 route with dsfield tests # 63.02 [+0.23] TEST: Reject route with dsfield [ OK ] # 70.74 [+7.72] # 70.74 [+0.00] IPv4 route add / append tests # 71.25 [+0.52] TEST: Attempt to add duplicate route - gw [ OK ] # 71.73 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 72.20 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 72.77 [+0.57] TEST: Add new nexthop for existing prefix [ OK ] # 73.35 [+0.58] TEST: Append nexthop to existing route - gw [ OK ] # 73.93 [+0.58] TEST: Append nexthop to existing route - dev only [ OK ] # 74.51 [+0.58] TEST: Append nexthop to existing route - reject route [ OK ] # 74.99 [+0.48] TEST: Append nexthop to existing reject route - gw [ OK ] # 75.45 [+0.46] TEST: Append nexthop to existing reject route - dev only [ OK ] # 75.91 [+0.46] TEST: add multipath route [ OK ] # 76.37 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 76.97 [+0.60] TEST: Route add with different metrics [ OK ] # 77.20 [+0.23] TEST: Route delete with metric [ OK ] # 77.20 [+0.00] # 77.20 [+0.00] IPv4 route replace tests # 77.79 [+0.59] TEST: Single path with single path [ OK ] # 78.38 [+0.59] TEST: Single path with multipath [ OK ] # 78.95 [+0.57] TEST: Single path with reject route [ OK ] # 79.55 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 80.13 [+0.58] TEST: Invalid nexthop [ OK ] # 80.59 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 81.17 [+0.57] TEST: Multipath with multipath [ OK ] # 81.77 [+0.60] TEST: Multipath with single path [ OK ] # 82.35 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 82.94 [+0.59] TEST: Multipath with reject route [ OK ] # 83.53 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 84.11 [+0.58] TEST: Multipath - invalid second nexthop [ OK ] # 84.57 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 86.41 [+1.84] TEST: Cached route removed from VRF port device [ OK ] # 86.41 [+0.00] # 86.41 [+0.00] IPv4 route with dsfield tests # 86.67 [+0.26] TEST: Reject route with dsfield 0x01 [ OK ] # 86.79 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 86.92 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 87.28 [+0.36] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 87.40 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 87.52 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 87.66 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 87.77 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 87.89 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 87.99 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 88.11 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 88.22 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 88.37 [+0.15] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 88.50 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 88.61 [+0.12] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 90.72 [+2.10] # 90.72 [+0.00] IPv6 prefix route tests # 93.12 [+2.41] TEST: Default metric [ OK ] # 93.50 [+0.37] TEST: User specified metric on first device [ OK ] # 93.89 [+0.39] TEST: User specified metric on second device [ OK ] # 94.12 [+0.23] TEST: Delete of address on first device [ OK ] # 94.36 [+0.24] TEST: Modify metric of address [ OK ] # 94.75 [+0.39] TEST: Prefix route removed on link down [ OK ] # 95.01 [+0.26] TEST: Prefix route with metric on link up [ OK ] # 95.36 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 95.49 [+0.13] TEST: Set metric with peer route on peer side [ OK ] # 95.72 [+0.23] TEST: Modify metric and peer address on local side [ OK ] # 95.85 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 97.07 [+1.23] # 97.07 [+0.00] IPv4 prefix route tests # 99.52 [+2.45] TEST: Default metric [ OK ] # 99.89 [+0.37] TEST: User specified metric on first device [ OK ] # 100.27 [+0.38] TEST: User specified metric on second device [ OK ] # 100.53 [+0.27] TEST: Delete of address on first device [ OK ] # 100.77 [+0.24] TEST: Modify metric of address [ OK ] # 100.98 [+0.21] TEST: Prefix route removed on link down [ OK ] # 101.26 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 101.76 [+0.50] TEST: Modify metric of .0/24 address [ OK ] # 102.12 [+0.36] TEST: Set metric of address with peer route [ OK ] # 102.37 [+0.24] TEST: Modify metric and peer address for peer route [ OK ] # 103.60 [+1.24] # 103.60 [+0.00] IPv6 routes with metrics # 109.50 [+5.90] TEST: Single path route with mtu metric [ OK ] # 109.89 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 110.24 [+0.36] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 110.50 [+0.26] TEST: MTU of second leg [ OK ] # 110.76 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 111.06 [+0.30] TEST: Using route with mtu metric [ OK ] # 111.25 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 113.32 [+2.06] # 113.32 [+0.00] IPv4 route add / append tests # 119.20 [+5.89] TEST: Single path route with mtu metric [ OK ] # 119.44 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 119.74 [+0.30] TEST: Using route with mtu metric [ OK ] # 119.96 [+0.22] TEST: Invalid metric (fails metric_convert) [ OK ] # 122.05 [+2.09] # 122.05 [+0.00] IPv4 route with IPv6 gateway tests # 129.91 [+7.86] TEST: Single path route with IPv6 gateway [ OK ] # 130.21 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 130.33 [+0.12] TEST: Single path route delete [ OK ] # 130.56 [+0.23] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 130.79 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 130.91 [+0.12] TEST: Multipath route delete exact match [ OK ] # 131.03 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 131.27 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 131.38 [+0.12] TEST: Multipath route delete exact match [ OK ] # 133.54 [+2.15] # 133.54 [+0.00] IPv4 rp_filter tests # 141.18 [+7.64] TEST: rp_filter passes local packets [ OK ] # 141.37 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 142.35 [+0.98] # 142.35 [+0.00] IPv4 delete address route tests # 146.10 [+3.75] Regular FIB info # 146.33 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 146.44 [+0.11] TEST: Route in default VRF not removed [ OK ] # 146.87 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 146.99 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 146.99 [+0.00] Identical FIB info with different table ID # 147.19 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 147.31 [+0.12] TEST: Route in default VRF not removed [ OK ] # 147.74 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 147.84 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 147.84 [+0.00] Table ID 0 # 148.06 [+0.22] TEST: Route removed in default VRF when source address deleted [ OK ] # 149.28 [+1.22] # 149.28 [+0.00] IPv6 delete address route tests # 155.46 [+6.18] Single device using src address # 155.68 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 155.68 [+0.00] Two devices with the same source address # 155.92 [+0.24] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 156.15 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 156.16 [+0.00] VRF with single device using src address # 156.38 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 156.38 [+0.00] VRF with two devices using src address # 156.59 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 156.83 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 156.83 [+0.00] src address and nexthop dev in same VRF # 157.06 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 157.16 [+0.10] TEST: Prefsrc in default VRF not removed [ OK ] # 157.58 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 157.73 [+0.14] TEST: Prefsrc in default VRF removed [ OK ] # 157.73 [+0.00] src address and nexthop device in different VRF # 157.96 [+0.23] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 158.07 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 158.42 [+0.35] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 158.54 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 158.54 [+0.00] Table ID 0 # 158.77 [+0.23] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 158.77 [+0.00] Link local source route # 158.98 [+0.21] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 159.20 [+0.22] TEST: Prefsrc removed when delete ll addr [ OK ] # 159.30 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 159.63 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 161.46 [+1.83] # 161.46 [+0.00] IPv4 mangling tests # 170.71 [+9.25] TEST: Connection with correct parameters [ OK ] # 170.94 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 172.08 [+1.13] TEST: Connection with correct parameters - mangling [ OK ] # 173.03 [+0.95] TEST: Connection with correct parameters - no mangling [ OK ] # 173.11 [+0.08] TEST: Connection check - server side [ OK ] # 175.64 [+2.53] # 175.64 [+0.00] IPv6 mangling tests # 184.71 [+9.07] TEST: Connection with correct parameters [ OK ] # 184.97 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 185.93 [+0.96] TEST: Connection with correct parameters - mangling [ OK ] # 186.90 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 186.99 [+0.08] TEST: Connection check - server side [ OK ] # 189.53 [+2.55] # 189.53 [+0.00] IPv4 broadcast neighbour tests # 192.48 [+2.95] TEST: Resolved neighbour for broadcast address [ OK ] # 192.61 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 192.74 [+0.13] TEST: Unresolved neighbour for broadcast address [ OK ] # 192.85 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 195.32 [+2.47] # 195.32 [+0.00] Fib6 garbage collection test # 208.92 [+13.60] TEST: ipv6 route garbage collection [ OK ] # 222.76 [+13.84] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 236.59 [+13.83] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 250.61 [+14.02] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 265.30 [+14.69] TEST: ipv6 route garbage collection (RA message) [ OK ] # 266.22 [+0.92] # 266.22 [+0.00] IPv4 multipath list receive tests # 285.48 [+19.26] TEST: Multipath route hit ratio (1.00) [ OK ] # 287.68 [+2.21] # 287.68 [+0.00] IPv6 multipath list receive tests # 306.39 [+18.71] TEST: Multipath route hit ratio (1.00) [ OK ] # 308.61 [+2.21] # 308.61 [+0.00] Tests passed: 229 # 308.61 [+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__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->