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.42 [+0.42] # 0.42 [+0.00] Single path route test # 1.36 [+0.94] Start point # 1.45 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.52 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.66 [+0.13] Nexthop device deleted # 1.73 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.82 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.34 [+0.53] # 2.34 [+0.00] Multipath route test # 4.01 [+1.67] Start point # 4.09 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.18 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.29 [+0.12] One nexthop device deleted # 4.38 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.47 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.59 [+0.12] Second nexthop device deleted # 4.67 [+0.08] TEST: IPv6 - no route [ OK ] # 5.19 [+0.53] # 5.20 [+0.00] Single path, admin down # 6.34 [+1.14] Start point # 6.41 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.51 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.59 [+0.09] Route deleted on down # 6.68 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.76 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.21 [+0.46] # 7.21 [+0.00] Admin down multipath # 8.85 [+1.64] Verify start point # 8.94 [+0.08] TEST: IPv4 fibmatch [ OK ] # 9.02 [+0.09] TEST: IPv6 fibmatch [ OK ] # 9.12 [+0.09] One device down, one up # 9.20 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.29 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.38 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.47 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 9.56 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.66 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.75 [+0.10] TEST: IPv4 flags on up device [ OK ] # 9.85 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.05 [+0.19] Other device down and up # 10.13 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 10.22 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.30 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.39 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.49 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.60 [+0.11] TEST: IPv6 flags on down device [ OK ] # 10.68 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.77 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.84 [+0.07] Both devices down # 10.93 [+0.09] TEST: IPv4 fibmatch [ OK ] # 11.01 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.56 [+0.55] # 11.56 [+0.00] Local carrier tests - single path # 12.77 [+1.21] Start point # 12.86 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.95 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.03 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 13.12 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 14.26 [+1.14] Carrier off on nexthop # 14.35 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.44 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.52 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 14.61 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 14.77 [+0.16] Route to local address with carrier down # 14.86 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.94 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.01 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.09 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.52 [+0.44] # 15.52 [+0.00] Single path route carrier test # 16.77 [+1.25] Start point # 16.85 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.95 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.03 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 17.12 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.26 [+1.14] Carrier down # 18.34 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.43 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.53 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 18.60 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.80 [+0.20] Second address added with carrier down # 18.91 [+0.11] TEST: IPv4 fibmatch [ OK ] # 18.98 [+0.07] TEST: IPv6 fibmatch [ OK ] # 19.07 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.15 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 23.30 [+4.16] # 23.30 [+0.00] IPv4 nexthop tests # 23.31 [+0.00] <<< write me >>> # 23.58 [+0.28] # 23.58 [+0.00] IPv6 nexthop tests # 23.68 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 23.78 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.87 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.96 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 24.05 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 24.15 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.24 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 24.34 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 24.42 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.52 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.62 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 24.71 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.80 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 24.90 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.92 [+1.02] # 25.92 [+0.00] FIB rule with suppress_prefixlength # 27.69 [+1.77] TEST: FIB rule suppress test [ OK ] # 29.30 [+1.61] # 29.30 [+0.00] Fib6 info length calculation in route notify test # 33.33 [+4.03] TEST: ipv6 route add notify [ OK ] # 34.97 [+1.64] # 34.97 [+0.00] Fib4 info length calculation in route notify test # 38.95 [+3.98] TEST: ipv4 route add notify [ OK ] # 43.35 [+4.40] # 43.35 [+0.00] IPv6 route add / append tests # 43.71 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 44.07 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 44.43 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.91 [+0.48] TEST: Append nexthop to existing route - gw [ OK ] # 45.30 [+0.38] TEST: Add multipath route [ OK ] # 45.66 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 46.13 [+0.47] TEST: Route add with different metrics [ OK ] # 46.34 [+0.21] TEST: Route delete with metric [ OK ] # 46.34 [+0.00] # 46.34 [+0.00] IPv6 route replace tests # 46.78 [+0.44] TEST: Single path with single path [ OK ] # 47.24 [+0.46] TEST: Single path with multipath [ OK ] # 47.69 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 48.15 [+0.47] TEST: Invalid nexthop [ OK ] # 48.55 [+0.40] TEST: Single path - replace of non-existent route [ OK ] # 49.04 [+0.49] TEST: Multipath with multipath [ OK ] # 49.55 [+0.51] TEST: Multipath with single path [ OK ] # 50.04 [+0.49] TEST: Multipath with single path via multipath attribute [ OK ] # 50.57 [+0.53] TEST: Multipath with dev-only [ OK ] # 51.11 [+0.54] TEST: Multipath - invalid first nexthop [ OK ] # 51.64 [+0.53] TEST: Multipath - invalid second nexthop [ OK ] # 52.01 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 52.01 [+0.00] # 52.01 [+0.00] IPv6 route with dsfield tests # 52.21 [+0.20] TEST: Reject route with dsfield [ OK ] # 58.35 [+6.14] # 58.35 [+0.00] IPv4 route add / append tests # 58.70 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 59.07 [+0.37] TEST: Attempt to add duplicate route - dev only [ OK ] # 59.43 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 59.94 [+0.51] TEST: Add new nexthop for existing prefix [ OK ] # 60.40 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 60.88 [+0.48] TEST: Append nexthop to existing route - dev only [ OK ] # 61.36 [+0.48] TEST: Append nexthop to existing route - reject route [ OK ] # 61.72 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.08 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 62.45 [+0.36] TEST: add multipath route [ OK ] # 62.80 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 63.25 [+0.45] TEST: Route add with different metrics [ OK ] # 63.45 [+0.20] TEST: Route delete with metric [ OK ] # 63.45 [+0.00] # 63.45 [+0.00] IPv4 route replace tests # 63.89 [+0.44] TEST: Single path with single path [ OK ] # 64.33 [+0.44] TEST: Single path with multipath [ OK ] # 64.78 [+0.45] TEST: Single path with reject route [ OK ] # 65.24 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 65.70 [+0.46] TEST: Invalid nexthop [ OK ] # 66.08 [+0.38] TEST: Single path - replace of non-existent route [ OK ] # 66.56 [+0.48] TEST: Multipath with multipath [ OK ] # 67.01 [+0.45] TEST: Multipath with single path [ OK ] # 67.45 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 67.89 [+0.44] TEST: Multipath with reject route [ OK ] # 68.35 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 68.80 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 69.16 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 70.57 [+1.41] TEST: Cached route removed from VRF port device [ OK ] # 70.57 [+0.00] # 70.57 [+0.00] IPv4 route with dsfield tests # 70.75 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 70.85 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 70.95 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 71.20 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 71.27 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 71.36 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 71.43 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 71.52 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 71.63 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.70 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.79 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.88 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.97 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 72.07 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 72.16 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.88 [+1.72] # 73.88 [+0.00] IPv6 prefix route tests # 75.78 [+1.90] TEST: Default metric [ OK ] # 76.08 [+0.30] TEST: User specified metric on first device [ OK ] # 76.37 [+0.29] TEST: User specified metric on second device [ OK ] # 76.55 [+0.19] TEST: Delete of address on first device [ OK ] # 76.77 [+0.21] TEST: Modify metric of address [ OK ] # 77.06 [+0.29] TEST: Prefix route removed on link down [ OK ] # 77.26 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 77.52 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 77.62 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 77.81 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 77.92 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 78.93 [+1.01] # 78.94 [+0.00] IPv4 prefix route tests # 80.92 [+1.98] TEST: Default metric [ OK ] # 81.21 [+0.29] TEST: User specified metric on first device [ OK ] # 81.50 [+0.29] TEST: User specified metric on second device [ OK ] # 81.70 [+0.21] TEST: Delete of address on first device [ OK ] # 81.89 [+0.19] TEST: Modify metric of address [ OK ] # 82.07 [+0.18] TEST: Prefix route removed on link down [ OK ] # 82.27 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 82.64 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 82.94 [+0.30] TEST: Set metric of address with peer route [ OK ] # 83.12 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 84.09 [+0.97] # 84.09 [+0.00] IPv6 routes with metrics # 88.64 [+4.56] TEST: Single path route with mtu metric [ OK ] # 88.93 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 89.20 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 89.39 [+0.19] TEST: MTU of second leg [ OK ] # 89.59 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 89.82 [+0.23] TEST: Using route with mtu metric [ OK ] # 89.97 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 91.68 [+1.71] # 91.68 [+0.00] IPv4 route add / append tests # 96.21 [+4.53] TEST: Single path route with mtu metric [ OK ] # 96.39 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 96.65 [+0.26] TEST: Using route with mtu metric [ OK ] # 96.83 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 98.59 [+1.76] # 98.59 [+0.00] IPv4 route with IPv6 gateway tests # 105.05 [+6.46] TEST: Single path route with IPv6 gateway [ OK ] # 105.29 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 105.39 [+0.09] TEST: Single path route delete [ OK ] # 105.57 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 105.76 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 105.86 [+0.09] TEST: Multipath route delete exact match [ OK ] # 105.96 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 106.16 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.24 [+0.09] TEST: Multipath route delete exact match [ OK ] # 107.99 [+1.74] # 107.99 [+0.00] IPv4 rp_filter tests # 113.90 [+5.91] TEST: rp_filter passes local packets [ OK ] # 114.04 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 114.86 [+0.82] # 114.87 [+0.00] IPv4 delete address route tests # 117.69 [+2.82] Regular FIB info # 117.87 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 117.98 [+0.10] TEST: Route in default VRF not removed [ OK ] # 118.33 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.43 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 118.43 [+0.00] Identical FIB info with different table ID # 118.63 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 118.72 [+0.09] TEST: Route in default VRF not removed [ OK ] # 119.09 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.18 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 119.18 [+0.00] Table ID 0 # 119.37 [+0.19] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.36 [+0.99] # 120.37 [+0.00] IPv6 delete address route tests # 125.19 [+4.82] Single device using src address # 125.37 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.37 [+0.00] Two devices with the same source address # 125.56 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.74 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.75 [+0.00] VRF with single device using src address # 125.93 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.93 [+0.00] VRF with two devices using src address # 126.14 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.32 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.33 [+0.00] src address and nexthop dev in same VRF # 126.52 [+0.19] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 126.61 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 126.94 [+0.34] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 127.04 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 127.04 [+0.00] src address and nexthop device in different VRF # 127.24 [+0.20] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 127.33 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 127.60 [+0.27] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 127.72 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 127.73 [+0.00] Table ID 0 # 127.89 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 127.89 [+0.00] Link local source route # 128.06 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.29 [+0.23] TEST: Prefsrc removed when delete ll addr [ OK ] # 128.37 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.61 [+0.24] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 130.12 [+1.51] # 130.12 [+0.00] IPv4 mangling tests # 137.83 [+7.71] TEST: Connection with correct parameters [ OK ] # 138.00 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 138.99 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 139.84 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 139.89 [+0.06] TEST: Connection check - server side [ OK ] # 141.90 [+2.01] # 141.90 [+0.00] IPv6 mangling tests # 149.33 [+7.43] TEST: Connection with correct parameters [ OK ] # 149.53 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 150.38 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 151.25 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 151.32 [+0.08] TEST: Connection check - server side [ OK ] # 153.49 [+2.17] # 153.49 [+0.00] IPv4 broadcast neighbour tests # 155.70 [+2.21] TEST: Resolved neighbour for broadcast address [ OK ] # 155.80 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 155.89 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 155.98 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 158.47 [+2.50] # 158.47 [+0.00] Fib6 garbage collection test # 172.01 [+13.53] TEST: ipv6 route garbage collection [ OK ] # 186.02 [+14.01] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 199.99 [+13.97] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 213.73 [+13.74] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 228.08 [+14.35] TEST: ipv6 route garbage collection (RA message) [ OK ] # 228.81 [+0.72] # 228.81 [+0.00] IPv4 multipath list receive tests # 244.71 [+15.90] TEST: Multipath route hit ratio (1.00) [ OK ] # 246.46 [+1.75] # 246.46 [+0.00] IPv6 multipath list receive tests # 262.03 [+15.57] TEST: Multipath route hit ratio (.99) [ OK ] # 263.61 [+1.58] # 263.61 [+0.00] Tests passed: 229 # 263.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__->