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.45 [+0.45] # 0.45 [+0.00] Single path route test # 1.38 [+0.93] Start point # 1.47 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.57 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.72 [+0.15] Nexthop device deleted # 1.81 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.90 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.49 [+0.59] # 2.49 [+0.00] Multipath route test # 4.44 [+1.96] Start point # 4.55 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.64 [+0.10] TEST: IPv6 fibmatch [ OK ] # 4.82 [+0.17] One nexthop device deleted # 4.92 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.02 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.18 [+0.16] Second nexthop device deleted # 5.28 [+0.10] TEST: IPv6 - no route [ OK ] # 5.96 [+0.67] # 5.96 [+0.00] Single path, admin down # 7.39 [+1.43] Start point # 7.50 [+0.11] TEST: IPv4 fibmatch [ OK ] # 7.61 [+0.12] TEST: IPv6 fibmatch [ OK ] # 7.72 [+0.11] Route deleted on down # 7.82 [+0.10] TEST: IPv4 fibmatch [ OK ] # 7.95 [+0.13] TEST: IPv6 fibmatch [ OK ] # 8.51 [+0.55] # 8.51 [+0.00] Admin down multipath # 10.25 [+1.74] Verify start point # 10.33 [+0.09] TEST: IPv4 fibmatch [ OK ] # 10.41 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.49 [+0.08] One device down, one up # 10.57 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 10.65 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.74 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.81 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.89 [+0.08] TEST: IPv4 flags on down device [ OK ] # 10.98 [+0.09] TEST: IPv6 flags on down device [ OK ] # 11.07 [+0.09] TEST: IPv4 flags on up device [ OK ] # 11.15 [+0.08] TEST: IPv6 flags on up device [ OK ] # 11.31 [+0.16] Other device down and up # 11.39 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 11.46 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 11.55 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 11.63 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 11.74 [+0.11] TEST: IPv4 flags on down device [ OK ] # 11.82 [+0.08] TEST: IPv6 flags on down device [ OK ] # 11.91 [+0.09] TEST: IPv4 flags on up device [ OK ] # 12.03 [+0.12] TEST: IPv6 flags on up device [ OK ] # 12.10 [+0.08] Both devices down # 12.18 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.26 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.81 [+0.55] # 12.81 [+0.00] Local carrier tests - single path # 13.98 [+1.16] Start point # 14.05 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.15 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.22 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 14.30 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 15.42 [+1.12] Carrier off on nexthop # 15.52 [+0.10] TEST: IPv4 fibmatch [ OK ] # 15.61 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.70 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 15.78 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 15.96 [+0.17] Route to local address with carrier down # 16.04 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.14 [+0.10] TEST: IPv6 fibmatch [ OK ] # 16.22 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.30 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.75 [+0.45] # 16.76 [+0.00] Single path route carrier test # 18.15 [+1.39] Start point # 18.23 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.32 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.42 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 18.51 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 19.64 [+1.13] Carrier down # 19.72 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.80 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.88 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 19.97 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 20.12 [+0.15] Second address added with carrier down # 20.20 [+0.08] TEST: IPv4 fibmatch [ OK ] # 20.28 [+0.08] TEST: IPv6 fibmatch [ OK ] # 20.35 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 20.45 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 24.74 [+4.29] # 24.74 [+0.00] IPv4 nexthop tests # 24.74 [+0.00] <<< write me >>> # 24.96 [+0.22] # 24.96 [+0.00] IPv6 nexthop tests # 25.07 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 25.17 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.27 [+0.10] TEST: Gateway is linklocal address [ OK ] # 25.37 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 25.47 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 25.58 [+0.11] TEST: Gateway can not be local unicast address, with device [ OK ] # 25.69 [+0.11] TEST: Gateway can not be a local linklocal address [ OK ] # 25.79 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 25.91 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.02 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 26.13 [+0.11] TEST: Redirect to VRF lookup [ OK ] # 26.23 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 26.33 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 26.44 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 27.58 [+1.14] # 27.58 [+0.00] FIB rule with suppress_prefixlength # 29.61 [+2.03] TEST: FIB rule suppress test [ OK ] # 31.29 [+1.68] # 31.29 [+0.00] Fib6 info length calculation in route notify test # 35.25 [+3.96] TEST: ipv6 route add notify [ OK ] # 36.97 [+1.72] # 36.97 [+0.00] Fib4 info length calculation in route notify test # 40.91 [+3.93] TEST: ipv4 route add notify [ OK ] # 45.43 [+4.52] # 45.43 [+0.00] IPv6 route add / append tests # 45.88 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 46.32 [+0.43] TEST: Attempt to add duplicate route - dev only [ OK ] # 46.75 [+0.43] TEST: Attempt to add duplicate route - reject route [ OK ] # 47.31 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 47.76 [+0.46] TEST: Add multipath route [ OK ] # 48.19 [+0.43] TEST: Attempt to add duplicate multipath route [ OK ] # 48.68 [+0.49] TEST: Route add with different metrics [ OK ] # 48.87 [+0.19] TEST: Route delete with metric [ OK ] # 48.88 [+0.00] # 48.88 [+0.00] IPv6 route replace tests # 49.33 [+0.45] TEST: Single path with single path [ OK ] # 49.80 [+0.47] TEST: Single path with multipath [ OK ] # 50.22 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 50.67 [+0.45] TEST: Invalid nexthop [ OK ] # 51.02 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 51.56 [+0.54] TEST: Multipath with multipath [ OK ] # 52.08 [+0.51] TEST: Multipath with single path [ OK ] # 52.61 [+0.53] TEST: Multipath with single path via multipath attribute [ OK ] # 53.20 [+0.59] TEST: Multipath with dev-only [ OK ] # 53.76 [+0.56] TEST: Multipath - invalid first nexthop [ OK ] # 54.27 [+0.51] TEST: Multipath - invalid second nexthop [ OK ] # 54.64 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 54.64 [+0.00] # 54.64 [+0.00] IPv6 route with dsfield tests # 54.83 [+0.19] TEST: Reject route with dsfield [ OK ] # 60.99 [+6.15] # 60.99 [+0.00] IPv4 route add / append tests # 61.38 [+0.39] TEST: Attempt to add duplicate route - gw [ OK ] # 61.79 [+0.41] TEST: Attempt to add duplicate route - dev only [ OK ] # 62.17 [+0.38] TEST: Attempt to add duplicate route - reject route [ OK ] # 62.68 [+0.51] TEST: Add new nexthop for existing prefix [ OK ] # 63.20 [+0.52] TEST: Append nexthop to existing route - gw [ OK ] # 63.73 [+0.53] TEST: Append nexthop to existing route - dev only [ OK ] # 64.28 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 64.71 [+0.43] TEST: Append nexthop to existing reject route - gw [ OK ] # 65.15 [+0.44] TEST: Append nexthop to existing reject route - dev only [ OK ] # 65.57 [+0.42] TEST: add multipath route [ OK ] # 66.01 [+0.44] TEST: Attempt to add duplicate multipath route [ OK ] # 66.58 [+0.57] TEST: Route add with different metrics [ OK ] # 66.82 [+0.24] TEST: Route delete with metric [ OK ] # 66.82 [+0.00] # 66.82 [+0.00] IPv4 route replace tests # 67.38 [+0.56] TEST: Single path with single path [ OK ] # 67.93 [+0.54] TEST: Single path with multipath [ OK ] # 68.49 [+0.56] TEST: Single path with reject route [ OK ] # 69.04 [+0.55] TEST: Single path with single path via multipath attribute [ OK ] # 69.65 [+0.61] TEST: Invalid nexthop [ OK ] # 70.03 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 70.55 [+0.52] TEST: Multipath with multipath [ OK ] # 71.07 [+0.52] TEST: Multipath with single path [ OK ] # 71.59 [+0.53] TEST: Multipath with single path via multipath attribute [ OK ] # 72.06 [+0.47] TEST: Multipath with reject route [ OK ] # 72.55 [+0.49] TEST: Multipath - invalid first nexthop [ OK ] # 73.06 [+0.51] TEST: Multipath - invalid second nexthop [ OK ] # 73.45 [+0.40] TEST: Multipath - replace of non-existent route [ OK ] # 74.88 [+1.42] TEST: Cached route removed from VRF port device [ OK ] # 74.88 [+0.00] # 74.88 [+0.00] IPv4 route with dsfield tests # 75.09 [+0.21] TEST: Reject route with dsfield 0x01 [ OK ] # 75.19 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 75.28 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 75.59 [+0.31] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 75.67 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 75.75 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 75.90 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 75.99 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 76.08 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 76.20 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 76.29 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 76.40 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 76.51 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 76.61 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 76.71 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 78.45 [+1.74] # 78.45 [+0.00] IPv6 prefix route tests # 80.54 [+2.08] TEST: Default metric [ OK ] # 80.87 [+0.33] TEST: User specified metric on first device [ OK ] # 81.19 [+0.32] TEST: User specified metric on second device [ OK ] # 81.42 [+0.23] TEST: Delete of address on first device [ OK ] # 81.65 [+0.23] TEST: Modify metric of address [ OK ] # 82.03 [+0.38] TEST: Prefix route removed on link down [ OK ] # 82.28 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 82.63 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 82.75 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 83.02 [+0.26] TEST: Modify metric and peer address on local side [ OK ] # 83.16 [+0.14] TEST: Modify metric and peer address on peer side [ OK ] # 84.38 [+1.22] # 84.38 [+0.00] IPv4 prefix route tests # 86.26 [+1.88] TEST: Default metric [ OK ] # 86.53 [+0.28] TEST: User specified metric on first device [ OK ] # 86.80 [+0.26] TEST: User specified metric on second device [ OK ] # 86.98 [+0.18] TEST: Delete of address on first device [ OK ] # 87.16 [+0.18] TEST: Modify metric of address [ OK ] # 87.33 [+0.17] TEST: Prefix route removed on link down [ OK ] # 87.53 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 87.90 [+0.37] TEST: Modify metric of .0/24 address [ OK ] # 88.19 [+0.29] TEST: Set metric of address with peer route [ OK ] # 88.39 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 89.41 [+1.02] # 89.41 [+0.00] IPv6 routes with metrics # 94.03 [+4.61] TEST: Single path route with mtu metric [ OK ] # 94.35 [+0.32] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 94.67 [+0.33] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 94.89 [+0.22] TEST: MTU of second leg [ OK ] # 95.13 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 95.39 [+0.26] TEST: Using route with mtu metric [ OK ] # 95.58 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.57 [+1.99] # 97.57 [+0.00] IPv4 route add / append tests # 102.03 [+4.47] TEST: Single path route with mtu metric [ OK ] # 102.21 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 102.45 [+0.24] TEST: Using route with mtu metric [ OK ] # 102.62 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 104.35 [+1.73] # 104.35 [+0.00] IPv4 route with IPv6 gateway tests # 111.36 [+7.01] TEST: Single path route with IPv6 gateway [ OK ] # 111.62 [+0.26] TEST: Single path route with IPv6 gateway - ping [ OK ] # 111.73 [+0.10] TEST: Single path route delete [ OK ] # 111.97 [+0.24] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 112.20 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 112.30 [+0.10] TEST: Multipath route delete exact match [ OK ] # 112.41 [+0.11] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 112.63 [+0.21] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 112.74 [+0.11] TEST: Multipath route delete exact match [ OK ] # 114.58 [+1.84] # 114.58 [+0.00] IPv4 rp_filter tests # 121.03 [+6.45] TEST: rp_filter passes local packets [ OK ] # 121.22 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 122.16 [+0.94] # 122.16 [+0.00] IPv4 delete address route tests # 125.21 [+3.05] Regular FIB info # 125.37 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 125.45 [+0.09] TEST: Route in default VRF not removed [ OK ] # 125.78 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 125.86 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 125.87 [+0.01] Identical FIB info with different table ID # 126.03 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 126.11 [+0.08] TEST: Route in default VRF not removed [ OK ] # 126.45 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 126.54 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 126.54 [+0.00] Table ID 0 # 126.73 [+0.19] TEST: Route removed in default VRF when source address deleted [ OK ] # 127.76 [+1.03] # 127.76 [+0.00] IPv6 delete address route tests # 132.58 [+4.82] Single device using src address # 132.75 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 132.75 [+0.00] Two devices with the same source address # 132.92 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 133.09 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 133.09 [+0.00] VRF with single device using src address # 133.25 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 133.26 [+0.00] VRF with two devices using src address # 133.42 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 133.58 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 133.58 [+0.00] src address and nexthop dev in same VRF # 133.74 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 133.83 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 134.18 [+0.35] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 134.25 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 134.26 [+0.00] src address and nexthop device in different VRF # 134.42 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 134.51 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 134.79 [+0.28] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 134.89 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 134.90 [+0.00] Table ID 0 # 135.06 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 135.07 [+0.00] Link local source route # 135.23 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 135.42 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 135.52 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 135.80 [+0.28] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 137.55 [+1.75] # 137.55 [+0.00] IPv4 mangling tests # 145.98 [+8.43] TEST: Connection with correct parameters [ OK ] # 146.17 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 147.11 [+0.94] TEST: Connection with correct parameters - mangling [ OK ] # 147.95 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 148.01 [+0.06] TEST: Connection check - server side [ OK ] # 150.54 [+2.54] # 150.55 [+0.00] IPv6 mangling tests # 159.62 [+9.08] TEST: Connection with correct parameters [ OK ] # 159.84 [+0.22] TEST: Connection with incorrect parameters [ OK ] # 160.72 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 161.65 [+0.93] TEST: Connection with correct parameters - no mangling [ OK ] # 161.71 [+0.07] TEST: Connection check - server side [ OK ] # 163.88 [+2.17] # 163.88 [+0.00] IPv4 broadcast neighbour tests # 166.23 [+2.35] TEST: Resolved neighbour for broadcast address [ OK ] # 166.33 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 166.46 [+0.13] TEST: Unresolved neighbour for broadcast address [ OK ] # 166.55 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 168.49 [+1.94] # 168.49 [+0.00] Fib6 garbage collection test # 181.69 [+13.20] TEST: ipv6 route garbage collection [ OK ] # 195.10 [+13.41] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 208.52 [+13.42] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 222.03 [+13.51] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 236.36 [+14.33] TEST: ipv6 route garbage collection (RA message) [ OK ] # 237.14 [+0.78] # 237.14 [+0.00] IPv4 multipath list receive tests # 254.59 [+17.45] TEST: Multipath route hit ratio (1.00) [ OK ] # 256.38 [+1.79] # 256.38 [+0.00] IPv6 multipath list receive tests # 273.32 [+16.94] TEST: Multipath route hit ratio (1.00) [ OK ] # 275.06 [+1.73] # 275.06 [+0.00] Tests passed: 229 # 275.06 [+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__->