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.55 [+0.55] # 0.55 [+0.00] Single path route test # 1.76 [+1.22] Start point # 1.88 [+0.11] TEST: IPv4 fibmatch [ OK ] # 1.98 [+0.10] TEST: IPv6 fibmatch [ OK ] # 2.15 [+0.17] Nexthop device deleted # 2.26 [+0.11] TEST: IPv4 fibmatch - no route [ OK ] # 2.39 [+0.13] TEST: IPv6 fibmatch - no route [ OK ] # 3.11 [+0.73] # 3.11 [+0.00] Multipath route test # 5.33 [+2.22] Start point # 5.46 [+0.12] TEST: IPv4 fibmatch [ OK ] # 5.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 5.74 [+0.17] One nexthop device deleted # 5.84 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.95 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 6.07 [+0.12] Second nexthop device deleted # 6.20 [+0.12] TEST: IPv6 - no route [ OK ] # 6.91 [+0.71] # 6.91 [+0.00] Single path, admin down # 8.48 [+1.57] Start point # 8.57 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.69 [+0.12] TEST: IPv6 fibmatch [ OK ] # 8.80 [+0.11] Route deleted on down # 8.91 [+0.11] TEST: IPv4 fibmatch [ OK ] # 9.03 [+0.12] TEST: IPv6 fibmatch [ OK ] # 9.60 [+0.57] # 9.60 [+0.00] Admin down multipath # 11.84 [+2.24] Verify start point # 11.95 [+0.11] TEST: IPv4 fibmatch [ OK ] # 12.07 [+0.12] TEST: IPv6 fibmatch [ OK ] # 12.19 [+0.12] One device down, one up # 12.30 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.40 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.51 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.63 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.74 [+0.12] TEST: IPv4 flags on down device [ OK ] # 12.85 [+0.10] TEST: IPv6 flags on down device [ OK ] # 13.00 [+0.15] TEST: IPv4 flags on up device [ OK ] # 13.12 [+0.12] TEST: IPv6 flags on up device [ OK ] # 13.33 [+0.22] Other device down and up # 13.44 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 13.55 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 13.67 [+0.13] TEST: IPv4 fibmatch on up device [ OK ] # 13.80 [+0.12] TEST: IPv6 fibmatch on up device [ OK ] # 13.92 [+0.12] TEST: IPv4 flags on down device [ OK ] # 14.02 [+0.11] TEST: IPv6 flags on down device [ OK ] # 14.15 [+0.13] TEST: IPv4 flags on up device [ OK ] # 14.26 [+0.11] TEST: IPv6 flags on up device [ OK ] # 14.39 [+0.13] Both devices down # 14.50 [+0.11] TEST: IPv4 fibmatch [ OK ] # 14.62 [+0.12] TEST: IPv6 fibmatch [ OK ] # 15.36 [+0.75] # 15.37 [+0.00] Local carrier tests - single path # 17.06 [+1.70] Start point # 17.18 [+0.11] TEST: IPv4 fibmatch [ OK ] # 17.29 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.41 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 17.51 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 18.69 [+1.18] Carrier off on nexthop # 18.82 [+0.13] TEST: IPv4 fibmatch [ OK ] # 18.94 [+0.12] TEST: IPv6 fibmatch [ OK ] # 19.04 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 19.18 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 19.39 [+0.22] Route to local address with carrier down # 19.50 [+0.11] TEST: IPv4 fibmatch [ OK ] # 19.61 [+0.11] TEST: IPv6 fibmatch [ OK ] # 19.72 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 19.85 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.39 [+0.54] # 20.39 [+0.00] Single path route carrier test # 22.00 [+1.61] Start point # 22.12 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.22 [+0.10] TEST: IPv6 fibmatch [ OK ] # 22.32 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 22.43 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 23.60 [+1.17] Carrier down # 23.72 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.83 [+0.11] TEST: IPv6 fibmatch [ OK ] # 23.94 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 24.04 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 24.27 [+0.23] Second address added with carrier down # 24.38 [+0.11] TEST: IPv4 fibmatch [ OK ] # 24.50 [+0.12] TEST: IPv6 fibmatch [ OK ] # 24.62 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 24.74 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 30.01 [+5.26] # 30.01 [+0.00] IPv4 nexthop tests # 30.01 [+0.00] <<< write me >>> # 30.32 [+0.31] # 30.32 [+0.00] IPv6 nexthop tests # 30.43 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 30.56 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 30.67 [+0.12] TEST: Gateway is linklocal address [ OK ] # 30.79 [+0.11] TEST: Gateway is linklocal address, no device [ OK ] # 30.92 [+0.13] TEST: Gateway can not be local unicast address [ OK ] # 31.05 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 31.18 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 31.30 [+0.11] TEST: Gateway can be local address in a VRF [ OK ] # 31.42 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 31.54 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.67 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 31.78 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.89 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 32.02 [+0.13] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 33.23 [+1.21] # 33.23 [+0.00] FIB rule with suppress_prefixlength # 35.49 [+2.25] TEST: FIB rule suppress test [ OK ] # 37.59 [+2.10] # 37.59 [+0.00] Fib6 info length calculation in route notify test # 42.19 [+4.59] TEST: ipv6 route add notify [ OK ] # 44.29 [+2.10] # 44.29 [+0.00] Fib4 info length calculation in route notify test # 48.90 [+4.61] TEST: ipv4 route add notify [ OK ] # 54.70 [+5.80] # 54.70 [+0.00] IPv6 route add / append tests # 55.18 [+0.48] TEST: Attempt to add duplicate route - gw [ OK ] # 55.63 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 56.11 [+0.47] TEST: Attempt to add duplicate route - reject route [ OK ] # 56.72 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 57.19 [+0.48] TEST: Add multipath route [ OK ] # 57.68 [+0.49] TEST: Attempt to add duplicate multipath route [ OK ] # 58.27 [+0.59] TEST: Route add with different metrics [ OK ] # 58.53 [+0.26] TEST: Route delete with metric [ OK ] # 58.53 [+0.00] # 58.53 [+0.00] IPv6 route replace tests # 59.13 [+0.60] TEST: Single path with single path [ OK ] # 59.74 [+0.60] TEST: Single path with multipath [ OK ] # 60.32 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 60.95 [+0.62] TEST: Invalid nexthop [ OK ] # 61.40 [+0.45] TEST: Single path - replace of non-existent route [ OK ] # 62.02 [+0.62] TEST: Multipath with multipath [ OK ] # 62.60 [+0.58] TEST: Multipath with single path [ OK ] # 63.19 [+0.59] TEST: Multipath with single path via multipath attribute [ OK ] # 63.81 [+0.62] TEST: Multipath with dev-only [ OK ] # 64.40 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 65.01 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 65.48 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 65.48 [+0.00] # 65.48 [+0.00] IPv6 route with dsfield tests # 65.73 [+0.25] TEST: Reject route with dsfield [ OK ] # 73.66 [+7.93] # 73.66 [+0.00] IPv4 route add / append tests # 74.11 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 74.61 [+0.50] TEST: Attempt to add duplicate route - dev only [ OK ] # 75.08 [+0.46] TEST: Attempt to add duplicate route - reject route [ OK ] # 75.67 [+0.59] TEST: Add new nexthop for existing prefix [ OK ] # 76.28 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 76.90 [+0.62] TEST: Append nexthop to existing route - dev only [ OK ] # 77.48 [+0.58] TEST: Append nexthop to existing route - reject route [ OK ] # 77.96 [+0.48] TEST: Append nexthop to existing reject route - gw [ OK ] # 78.43 [+0.47] TEST: Append nexthop to existing reject route - dev only [ OK ] # 78.91 [+0.48] TEST: add multipath route [ OK ] # 79.34 [+0.43] TEST: Attempt to add duplicate multipath route [ OK ] # 79.91 [+0.57] TEST: Route add with different metrics [ OK ] # 80.16 [+0.24] TEST: Route delete with metric [ OK ] # 80.16 [+0.00] # 80.16 [+0.00] IPv4 route replace tests # 80.74 [+0.59] TEST: Single path with single path [ OK ] # 81.36 [+0.61] TEST: Single path with multipath [ OK ] # 81.94 [+0.59] TEST: Single path with reject route [ OK ] # 82.54 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 83.13 [+0.59] TEST: Invalid nexthop [ OK ] # 83.59 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 84.21 [+0.62] TEST: Multipath with multipath [ OK ] # 84.80 [+0.59] TEST: Multipath with single path [ OK ] # 85.40 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 86.01 [+0.61] TEST: Multipath with reject route [ OK ] # 86.61 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 87.20 [+0.59] TEST: Multipath - invalid second nexthop [ OK ] # 87.69 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 89.56 [+1.88] TEST: Cached route removed from VRF port device [ OK ] # 89.57 [+0.00] # 89.57 [+0.00] IPv4 route with dsfield tests # 89.81 [+0.25] TEST: Reject route with dsfield 0x01 [ OK ] # 89.93 [+0.11] TEST: Reject route with dsfield 0x02 [ OK ] # 90.04 [+0.12] TEST: Reject route with dsfield 0x03 [ OK ] # 90.42 [+0.38] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 90.55 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 90.67 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 90.78 [+0.11] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 90.90 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 91.00 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 91.10 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 91.20 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 91.30 [+0.10] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 91.41 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 91.55 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 91.66 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 93.86 [+2.21] # 93.87 [+0.00] IPv6 prefix route tests # 96.26 [+2.39] TEST: Default metric [ OK ] # 96.63 [+0.37] TEST: User specified metric on first device [ OK ] # 97.00 [+0.37] TEST: User specified metric on second device [ OK ] # 97.25 [+0.25] TEST: Delete of address on first device [ OK ] # 97.49 [+0.24] TEST: Modify metric of address [ OK ] # 97.88 [+0.39] TEST: Prefix route removed on link down [ OK ] # 98.15 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 98.51 [+0.36] TEST: Set metric with peer route on local side [ OK ] # 98.66 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 98.89 [+0.23] TEST: Modify metric and peer address on local side [ OK ] # 99.03 [+0.14] TEST: Modify metric and peer address on peer side [ OK ] # 100.28 [+1.25] # 100.28 [+0.00] IPv4 prefix route tests # 102.70 [+2.42] TEST: Default metric [ OK ] # 103.09 [+0.38] TEST: User specified metric on first device [ OK ] # 103.44 [+0.36] TEST: User specified metric on second device [ OK ] # 103.69 [+0.25] TEST: Delete of address on first device [ OK ] # 103.94 [+0.25] TEST: Modify metric of address [ OK ] # 104.17 [+0.23] TEST: Prefix route removed on link down [ OK ] # 104.41 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 104.91 [+0.51] TEST: Modify metric of .0/24 address [ OK ] # 105.28 [+0.37] TEST: Set metric of address with peer route [ OK ] # 105.54 [+0.26] TEST: Modify metric and peer address for peer route [ OK ] # 106.80 [+1.26] # 106.80 [+0.00] IPv6 routes with metrics # 112.82 [+6.02] TEST: Single path route with mtu metric [ OK ] # 113.21 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 113.60 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 113.85 [+0.26] TEST: MTU of second leg [ OK ] # 114.10 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 114.41 [+0.30] TEST: Using route with mtu metric [ OK ] # 114.61 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 116.64 [+2.03] # 116.64 [+0.00] IPv4 route add / append tests # 122.67 [+6.03] TEST: Single path route with mtu metric [ OK ] # 122.92 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 123.23 [+0.31] TEST: Using route with mtu metric [ OK ] # 123.43 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 125.59 [+2.16] # 125.59 [+0.00] IPv4 route with IPv6 gateway tests # 133.49 [+7.90] TEST: Single path route with IPv6 gateway [ OK ] # 133.81 [+0.31] TEST: Single path route with IPv6 gateway - ping [ OK ] # 133.93 [+0.12] TEST: Single path route delete [ OK ] # 134.17 [+0.24] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 134.43 [+0.26] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 134.57 [+0.14] TEST: Multipath route delete exact match [ OK ] # 134.68 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 134.94 [+0.26] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 135.06 [+0.12] TEST: Multipath route delete exact match [ OK ] # 137.21 [+2.15] # 137.21 [+0.00] IPv4 rp_filter tests # 144.90 [+7.69] TEST: rp_filter passes local packets [ OK ] # 145.10 [+0.21] TEST: rp_filter passes loopback packets [ OK ] # 146.12 [+1.02] # 146.12 [+0.00] IPv4 delete address route tests # 149.78 [+3.66] Regular FIB info # 149.98 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 150.09 [+0.10] TEST: Route in default VRF not removed [ OK ] # 150.52 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 150.63 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 150.63 [+0.00] Identical FIB info with different table ID # 150.89 [+0.26] TEST: Route removed from VRF when source address deleted [ OK ] # 150.99 [+0.10] TEST: Route in default VRF not removed [ OK ] # 151.46 [+0.47] TEST: Route removed in default VRF when source address deleted [ OK ] # 151.56 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 151.56 [+0.00] Table ID 0 # 151.79 [+0.22] TEST: Route removed in default VRF when source address deleted [ OK ] # 153.03 [+1.24] # 153.03 [+0.00] IPv6 delete address route tests # 159.33 [+6.30] Single device using src address # 159.56 [+0.23] TEST: Prefsrc removed when src address removed on other device [ OK ] # 159.57 [+0.00] Two devices with the same source address # 159.77 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 159.98 [+0.21] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 159.98 [+0.00] VRF with single device using src address # 160.21 [+0.23] TEST: Prefsrc removed when src address removed on other device [ OK ] # 160.21 [+0.00] VRF with two devices using src address # 160.45 [+0.24] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 160.69 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 160.69 [+0.00] src address and nexthop dev in same VRF # 160.92 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 161.04 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 161.47 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 161.59 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 161.59 [+0.00] src address and nexthop device in different VRF # 161.80 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 161.91 [+0.11] TEST: Prefsrc not removed in default VRF [ OK ] # 162.24 [+0.34] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 162.35 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 162.36 [+0.00] Table ID 0 # 162.60 [+0.24] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 162.60 [+0.00] Link local source route # 162.83 [+0.23] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 163.04 [+0.20] TEST: Prefsrc removed when delete ll addr [ OK ] # 163.15 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 163.49 [+0.34] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 165.45 [+1.96] # 165.46 [+0.00] IPv4 mangling tests # 174.51 [+9.06] TEST: Connection with correct parameters [ OK ] # 174.75 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 175.77 [+1.02] TEST: Connection with correct parameters - mangling [ OK ] # 176.74 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 176.81 [+0.07] TEST: Connection check - server side [ OK ] # 179.36 [+2.55] # 179.36 [+0.00] IPv6 mangling tests # 188.50 [+9.14] TEST: Connection with correct parameters [ OK ] # 188.76 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 189.74 [+0.98] TEST: Connection with correct parameters - mangling [ OK ] # 190.72 [+0.98] TEST: Connection with correct parameters - no mangling [ OK ] # 190.81 [+0.09] TEST: Connection check - server side [ OK ] # 193.41 [+2.60] # 193.41 [+0.00] IPv4 broadcast neighbour tests # 196.39 [+2.98] TEST: Resolved neighbour for broadcast address [ OK ] # 196.51 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 196.65 [+0.14] TEST: Unresolved neighbour for broadcast address [ OK ] # 196.77 [+0.12] TEST: Unresolved neighbour for network broadcast address [ OK ] # 199.23 [+2.45] # 199.23 [+0.00] Fib6 garbage collection test # 212.78 [+13.56] TEST: ipv6 route garbage collection [ OK ] # 226.69 [+13.90] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 240.59 [+13.91] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 254.63 [+14.04] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 269.29 [+14.66] TEST: ipv6 route garbage collection (RA message) [ OK ] # 270.23 [+0.95] # 270.24 [+0.00] IPv4 multipath list receive tests # 289.75 [+19.52] TEST: Multipath route hit ratio (1.00) [ OK ] # 292.00 [+2.24] # 292.00 [+0.00] IPv6 multipath list receive tests # 310.96 [+18.97] TEST: Multipath route hit ratio (1.00) [ OK ] # 313.17 [+2.21] # 313.17 [+0.00] Tests passed: 229 # 313.17 [+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__->