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.57 [+0.57] # 0.57 [+0.00] Single path route test # 1.78 [+1.21] Start point # 1.89 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.01 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.16 [+0.15] Nexthop device deleted # 2.27 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.38 [+0.12] TEST: IPv6 fibmatch - no route [ OK ] # 3.09 [+0.70] # 3.09 [+0.00] Multipath route test # 5.29 [+2.20] Start point # 5.39 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.51 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.66 [+0.15] One nexthop device deleted # 5.78 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.89 [+0.12] TEST: IPv6 - multipath down to single path [ OK ] # 6.04 [+0.15] Second nexthop device deleted # 6.17 [+0.12] TEST: IPv6 - no route [ OK ] # 6.89 [+0.72] # 6.89 [+0.00] Single path, admin down # 8.44 [+1.56] Start point # 8.56 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.67 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.79 [+0.12] Route deleted on down # 8.90 [+0.11] TEST: IPv4 fibmatch [ OK ] # 9.01 [+0.10] TEST: IPv6 fibmatch [ OK ] # 9.60 [+0.59] # 9.60 [+0.00] Admin down multipath # 11.76 [+2.16] Verify start point # 11.88 [+0.12] TEST: IPv4 fibmatch [ OK ] # 11.99 [+0.12] TEST: IPv6 fibmatch [ OK ] # 12.10 [+0.11] One device down, one up # 12.21 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.32 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 12.42 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.53 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.66 [+0.13] TEST: IPv4 flags on down device [ OK ] # 12.78 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.91 [+0.13] TEST: IPv4 flags on up device [ OK ] # 13.04 [+0.12] TEST: IPv6 flags on up device [ OK ] # 13.26 [+0.23] Other device down and up # 13.37 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 13.47 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 13.59 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 13.71 [+0.12] TEST: IPv6 fibmatch on up device [ OK ] # 13.84 [+0.13] TEST: IPv4 flags on down device [ OK ] # 13.98 [+0.14] TEST: IPv6 flags on down device [ OK ] # 14.10 [+0.13] TEST: IPv4 flags on up device [ OK ] # 14.22 [+0.12] TEST: IPv6 flags on up device [ OK ] # 14.34 [+0.12] Both devices down # 14.44 [+0.10] TEST: IPv4 fibmatch [ OK ] # 14.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 15.27 [+0.72] # 15.27 [+0.00] Local carrier tests - single path # 16.88 [+1.60] Start point # 17.01 [+0.13] TEST: IPv4 fibmatch [ OK ] # 17.10 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.22 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 17.32 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 18.51 [+1.18] Carrier off on nexthop # 18.62 [+0.12] TEST: IPv4 fibmatch [ OK ] # 18.72 [+0.10] TEST: IPv6 fibmatch [ OK ] # 18.86 [+0.14] TEST: IPv4 - linkdown flag set [ OK ] # 18.97 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 19.19 [+0.22] Route to local address with carrier down # 19.30 [+0.11] TEST: IPv4 fibmatch [ OK ] # 19.40 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.50 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 19.63 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.22 [+0.59] # 20.22 [+0.00] Single path route carrier test # 21.84 [+1.62] Start point # 21.95 [+0.12] TEST: IPv4 fibmatch [ OK ] # 22.06 [+0.10] TEST: IPv6 fibmatch [ OK ] # 22.18 [+0.12] TEST: IPv4 no linkdown flag [ OK ] # 22.28 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 23.46 [+1.18] Carrier down # 23.58 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.68 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.80 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 23.90 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 24.13 [+0.22] Second address added with carrier down # 24.24 [+0.11] TEST: IPv4 fibmatch [ OK ] # 24.34 [+0.10] TEST: IPv6 fibmatch [ OK ] # 24.48 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 24.60 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 29.85 [+5.25] # 29.85 [+0.00] IPv4 nexthop tests # 29.85 [+0.00] <<< write me >>> # 30.14 [+0.29] # 30.14 [+0.00] IPv6 nexthop tests # 30.30 [+0.15] TEST: Directly connected nexthop, unicast address [ OK ] # 30.41 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 30.55 [+0.14] TEST: Gateway is linklocal address [ OK ] # 30.67 [+0.11] TEST: Gateway is linklocal address, no device [ OK ] # 30.80 [+0.13] TEST: Gateway can not be local unicast address [ OK ] # 30.91 [+0.11] TEST: Gateway can not be local unicast address, with device [ OK ] # 31.04 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 31.16 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 31.28 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 31.41 [+0.13] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.53 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 31.65 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.76 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 31.88 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 33.13 [+1.24] # 33.13 [+0.00] FIB rule with suppress_prefixlength # 35.47 [+2.35] TEST: FIB rule suppress test [ OK ] # 37.53 [+2.06] # 37.53 [+0.00] Fib6 info length calculation in route notify test # 42.15 [+4.62] TEST: ipv6 route add notify [ OK ] # 44.29 [+2.13] # 44.29 [+0.00] Fib4 info length calculation in route notify test # 48.94 [+4.65] TEST: ipv4 route add notify [ OK ] # 54.70 [+5.76] # 54.70 [+0.00] IPv6 route add / append tests # 55.20 [+0.50] TEST: Attempt to add duplicate route - gw [ OK ] # 55.67 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 56.15 [+0.47] TEST: Attempt to add duplicate route - reject route [ OK ] # 56.77 [+0.62] TEST: Append nexthop to existing route - gw [ OK ] # 57.28 [+0.52] TEST: Add multipath route [ OK ] # 57.74 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 58.35 [+0.60] TEST: Route add with different metrics [ OK ] # 58.61 [+0.26] TEST: Route delete with metric [ OK ] # 58.61 [+0.00] # 58.61 [+0.00] IPv6 route replace tests # 59.21 [+0.61] TEST: Single path with single path [ OK ] # 59.84 [+0.62] TEST: Single path with multipath [ OK ] # 60.44 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 61.07 [+0.63] TEST: Invalid nexthop [ OK ] # 61.54 [+0.47] TEST: Single path - replace of non-existent route [ OK ] # 62.16 [+0.62] TEST: Multipath with multipath [ OK ] # 62.80 [+0.63] TEST: Multipath with single path [ OK ] # 63.40 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 64.04 [+0.64] TEST: Multipath with dev-only [ OK ] # 64.66 [+0.63] TEST: Multipath - invalid first nexthop [ OK ] # 65.30 [+0.64] TEST: Multipath - invalid second nexthop [ OK ] # 65.79 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 65.79 [+0.00] # 65.79 [+0.00] IPv6 route with dsfield tests # 66.05 [+0.26] TEST: Reject route with dsfield [ OK ] # 74.03 [+7.98] # 74.03 [+0.00] IPv4 route add / append tests # 74.52 [+0.49] TEST: Attempt to add duplicate route - gw [ OK ] # 74.99 [+0.46] TEST: Attempt to add duplicate route - dev only [ OK ] # 75.43 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 76.02 [+0.59] TEST: Add new nexthop for existing prefix [ OK ] # 76.61 [+0.59] TEST: Append nexthop to existing route - gw [ OK ] # 77.19 [+0.58] TEST: Append nexthop to existing route - dev only [ OK ] # 77.79 [+0.59] TEST: Append nexthop to existing route - reject route [ OK ] # 78.28 [+0.49] TEST: Append nexthop to existing reject route - gw [ OK ] # 78.77 [+0.49] TEST: Append nexthop to existing reject route - dev only [ OK ] # 79.24 [+0.48] TEST: add multipath route [ OK ] # 79.73 [+0.49] TEST: Attempt to add duplicate multipath route [ OK ] # 80.34 [+0.60] TEST: Route add with different metrics [ OK ] # 80.57 [+0.24] TEST: Route delete with metric [ OK ] # 80.57 [+0.00] # 80.57 [+0.00] IPv4 route replace tests # 81.19 [+0.61] TEST: Single path with single path [ OK ] # 81.81 [+0.62] TEST: Single path with multipath [ OK ] # 82.42 [+0.61] TEST: Single path with reject route [ OK ] # 83.02 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 83.63 [+0.62] TEST: Invalid nexthop [ OK ] # 84.12 [+0.49] TEST: Single path - replace of non-existent route [ OK ] # 84.74 [+0.61] TEST: Multipath with multipath [ OK ] # 85.32 [+0.59] TEST: Multipath with single path [ OK ] # 85.93 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 86.54 [+0.62] TEST: Multipath with reject route [ OK ] # 87.14 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 87.74 [+0.60] TEST: Multipath - invalid second nexthop [ OK ] # 88.20 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 90.07 [+1.87] TEST: Cached route removed from VRF port device [ OK ] # 90.07 [+0.00] # 90.07 [+0.00] IPv4 route with dsfield tests # 90.30 [+0.23] TEST: Reject route with dsfield 0x01 [ OK ] # 90.42 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 90.54 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 90.88 [+0.33] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 90.99 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 91.12 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 91.22 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 91.34 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 91.44 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 91.55 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 91.70 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 91.82 [+0.13] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 91.93 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 92.05 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 92.15 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 94.32 [+2.17] # 94.32 [+0.00] IPv6 prefix route tests # 96.77 [+2.45] TEST: Default metric [ OK ] # 97.14 [+0.37] TEST: User specified metric on first device [ OK ] # 97.53 [+0.39] TEST: User specified metric on second device [ OK ] # 97.77 [+0.24] TEST: Delete of address on first device [ OK ] # 98.02 [+0.25] TEST: Modify metric of address [ OK ] # 98.44 [+0.42] TEST: Prefix route removed on link down [ OK ] # 98.71 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 99.09 [+0.39] TEST: Set metric with peer route on local side [ OK ] # 99.22 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 99.46 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 99.58 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 100.82 [+1.24] # 100.82 [+0.00] IPv4 prefix route tests # 103.23 [+2.41] TEST: Default metric [ OK ] # 103.61 [+0.38] TEST: User specified metric on first device [ OK ] # 103.99 [+0.38] TEST: User specified metric on second device [ OK ] # 104.23 [+0.24] TEST: Delete of address on first device [ OK ] # 104.47 [+0.24] TEST: Modify metric of address [ OK ] # 104.70 [+0.22] TEST: Prefix route removed on link down [ OK ] # 104.94 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 105.44 [+0.50] TEST: Modify metric of .0/24 address [ OK ] # 105.81 [+0.37] TEST: Set metric of address with peer route [ OK ] # 106.08 [+0.28] TEST: Modify metric and peer address for peer route [ OK ] # 107.30 [+1.21] # 107.30 [+0.00] IPv6 routes with metrics # 113.15 [+5.86] TEST: Single path route with mtu metric [ OK ] # 113.53 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 113.92 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 114.17 [+0.25] TEST: MTU of second leg [ OK ] # 114.43 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 114.73 [+0.29] TEST: Using route with mtu metric [ OK ] # 114.94 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 116.97 [+2.02] # 116.97 [+0.00] IPv4 route add / append tests # 123.00 [+6.04] TEST: Single path route with mtu metric [ OK ] # 123.24 [+0.23] TEST: Multipath route with mtu metric [ OK ] # 123.53 [+0.29] TEST: Using route with mtu metric [ OK ] # 123.73 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 125.68 [+1.95] # 125.68 [+0.00] IPv4 route with IPv6 gateway tests # 133.50 [+7.82] TEST: Single path route with IPv6 gateway [ OK ] # 133.80 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 133.92 [+0.12] TEST: Single path route delete [ OK ] # 134.13 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 134.38 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 134.49 [+0.12] TEST: Multipath route delete exact match [ OK ] # 134.63 [+0.14] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 134.86 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 134.98 [+0.12] TEST: Multipath route delete exact match [ OK ] # 136.97 [+1.99] # 136.97 [+0.00] IPv4 rp_filter tests # 144.76 [+7.80] TEST: rp_filter passes local packets [ OK ] # 144.96 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 145.98 [+1.03] # 145.98 [+0.00] IPv4 delete address route tests # 149.56 [+3.58] Regular FIB info # 149.77 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 149.88 [+0.11] TEST: Route in default VRF not removed [ OK ] # 150.33 [+0.45] TEST: Route removed in default VRF when source address deleted [ OK ] # 150.43 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 150.44 [+0.00] Identical FIB info with different table ID # 150.64 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 150.76 [+0.12] TEST: Route in default VRF not removed [ OK ] # 151.18 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 151.28 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 151.28 [+0.00] Table ID 0 # 151.51 [+0.23] TEST: Route removed in default VRF when source address deleted [ OK ] # 152.75 [+1.24] # 152.75 [+0.00] IPv6 delete address route tests # 158.88 [+6.13] Single device using src address # 159.08 [+0.20] TEST: Prefsrc removed when src address removed on other device [ OK ] # 159.08 [+0.00] Two devices with the same source address # 159.31 [+0.23] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 159.51 [+0.21] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 159.52 [+0.00] VRF with single device using src address # 159.74 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 159.74 [+0.00] VRF with two devices using src address # 159.94 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 160.19 [+0.25] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 160.20 [+0.00] src address and nexthop dev in same VRF # 160.41 [+0.21] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 160.54 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 160.97 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 161.08 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 161.08 [+0.00] src address and nexthop device in different VRF # 161.27 [+0.19] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 161.38 [+0.11] TEST: Prefsrc not removed in default VRF [ OK ] # 161.74 [+0.36] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 161.84 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 161.85 [+0.00] Table ID 0 # 162.05 [+0.21] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 162.06 [+0.00] Link local source route # 162.30 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 162.51 [+0.22] TEST: Prefsrc removed when delete ll addr [ OK ] # 162.63 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 162.97 [+0.34] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 164.88 [+1.91] # 164.88 [+0.00] IPv4 mangling tests # 174.06 [+9.19] TEST: Connection with correct parameters [ OK ] # 174.31 [+0.24] TEST: Connection with incorrect parameters [ OK ] # 175.43 [+1.12] TEST: Connection with correct parameters - mangling [ OK ] # 176.37 [+0.94] TEST: Connection with correct parameters - no mangling [ OK ] # 176.45 [+0.08] TEST: Connection check - server side [ OK ] # 178.95 [+2.50] # 178.95 [+0.00] IPv6 mangling tests # 187.99 [+9.04] TEST: Connection with correct parameters [ OK ] # 188.25 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 189.22 [+0.96] TEST: Connection with correct parameters - mangling [ OK ] # 190.19 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 190.26 [+0.08] TEST: Connection check - server side [ OK ] # 192.76 [+2.49] # 192.76 [+0.00] IPv4 broadcast neighbour tests # 195.56 [+2.80] TEST: Resolved neighbour for broadcast address [ OK ] # 195.69 [+0.13] TEST: Resolved neighbour for network broadcast address [ OK ] # 195.80 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 195.93 [+0.13] TEST: Unresolved neighbour for network broadcast address [ OK ] # 198.34 [+2.41] # 198.34 [+0.00] Fib6 garbage collection test # 211.89 [+13.55] TEST: ipv6 route garbage collection [ OK ] # 225.82 [+13.93] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 239.67 [+13.85] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 253.68 [+14.01] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 268.34 [+14.66] TEST: ipv6 route garbage collection (RA message) [ OK ] # 269.31 [+0.97] # 269.31 [+0.00] IPv4 multipath list receive tests # 288.89 [+19.58] TEST: Multipath route hit ratio (1.00) [ OK ] # 291.13 [+2.24] # 291.14 [+0.00] IPv6 multipath list receive tests # 310.31 [+19.17] TEST: Multipath route hit ratio (1.00) [ OK ] # 312.51 [+2.21] # 312.51 [+0.00] Tests passed: 229 # 312.51 [+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__->