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.66 [+0.66] # 0.66 [+0.00] Single path route test # 1.57 [+0.91] Start point # 1.65 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.73 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.90 [+0.17] Nexthop device deleted # 1.99 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 2.08 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.88 [+0.80] # 2.88 [+0.00] Multipath route test # 4.87 [+1.99] Start point # 4.96 [+0.09] TEST: IPv4 fibmatch [ OK ] # 5.04 [+0.08] TEST: IPv6 fibmatch [ OK ] # 5.19 [+0.15] One nexthop device deleted # 5.27 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.37 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.49 [+0.12] Second nexthop device deleted # 5.59 [+0.10] TEST: IPv6 - no route [ OK ] # 6.13 [+0.54] # 6.13 [+0.00] Single path, admin down # 7.38 [+1.24] Start point # 7.51 [+0.14] TEST: IPv4 fibmatch [ OK ] # 7.63 [+0.12] TEST: IPv6 fibmatch [ OK ] # 7.73 [+0.10] Route deleted on down # 7.81 [+0.08] TEST: IPv4 fibmatch [ OK ] # 7.90 [+0.09] TEST: IPv6 fibmatch [ OK ] # 8.33 [+0.43] # 8.33 [+0.00] Admin down multipath # 10.04 [+1.71] Verify start point # 10.13 [+0.09] TEST: IPv4 fibmatch [ OK ] # 10.22 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.31 [+0.09] One device down, one up # 10.42 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 10.50 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.59 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.66 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.78 [+0.12] TEST: IPv4 flags on down device [ OK ] # 10.87 [+0.09] TEST: IPv6 flags on down device [ OK ] # 10.98 [+0.11] TEST: IPv4 flags on up device [ OK ] # 11.06 [+0.08] TEST: IPv6 flags on up device [ OK ] # 11.25 [+0.19] Other device down and up # 11.33 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 11.41 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 11.50 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 11.58 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 11.69 [+0.11] TEST: IPv4 flags on down device [ OK ] # 11.84 [+0.15] TEST: IPv6 flags on down device [ OK ] # 11.94 [+0.10] TEST: IPv4 flags on up device [ OK ] # 12.04 [+0.10] TEST: IPv6 flags on up device [ OK ] # 12.13 [+0.09] Both devices down # 12.22 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.30 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.86 [+0.56] # 12.86 [+0.00] Local carrier tests - single path # 14.15 [+1.29] Start point # 14.24 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.32 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.45 [+0.13] TEST: IPv4 - no linkdown flag [ OK ] # 14.55 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 15.71 [+1.16] Carrier off on nexthop # 15.82 [+0.11] TEST: IPv4 fibmatch [ OK ] # 15.91 [+0.10] TEST: IPv6 fibmatch [ OK ] # 16.01 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 16.12 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 16.37 [+0.25] Route to local address with carrier down # 16.48 [+0.11] TEST: IPv4 fibmatch [ OK ] # 16.58 [+0.10] TEST: IPv6 fibmatch [ OK ] # 16.70 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 16.79 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 17.25 [+0.46] # 17.25 [+0.00] Single path route carrier test # 18.53 [+1.27] Start point # 18.62 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.70 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.79 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 18.88 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 20.04 [+1.15] Carrier down # 20.13 [+0.09] TEST: IPv4 fibmatch [ OK ] # 20.22 [+0.09] TEST: IPv6 fibmatch [ OK ] # 20.33 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 20.44 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 20.62 [+0.17] Second address added with carrier down # 20.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 20.80 [+0.09] TEST: IPv6 fibmatch [ OK ] # 20.88 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 20.96 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 25.19 [+4.23] # 25.19 [+0.00] IPv4 nexthop tests # 25.19 [+0.00] <<< write me >>> # 25.43 [+0.24] # 25.43 [+0.00] IPv6 nexthop tests # 25.53 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 25.61 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.72 [+0.11] TEST: Gateway is linklocal address [ OK ] # 25.81 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 25.90 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 25.99 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 26.08 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 26.17 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 26.26 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.38 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 26.47 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 26.56 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 26.65 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 26.75 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 27.75 [+1.00] # 27.75 [+0.00] FIB rule with suppress_prefixlength # 29.49 [+1.75] TEST: FIB rule suppress test [ OK ] # 31.08 [+1.58] # 31.08 [+0.00] Fib6 info length calculation in route notify test # 35.01 [+3.94] TEST: ipv6 route add notify [ OK ] # 36.61 [+1.60] # 36.61 [+0.00] Fib4 info length calculation in route notify test # 40.61 [+3.99] TEST: ipv4 route add notify [ OK ] # 44.97 [+4.37] # 44.97 [+0.00] IPv6 route add / append tests # 45.33 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 45.68 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 46.04 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 46.52 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 46.89 [+0.38] TEST: Add multipath route [ OK ] # 47.25 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 47.70 [+0.45] TEST: Route add with different metrics [ OK ] # 47.90 [+0.20] TEST: Route delete with metric [ OK ] # 47.90 [+0.00] # 47.90 [+0.00] IPv6 route replace tests # 48.36 [+0.46] TEST: Single path with single path [ OK ] # 48.82 [+0.46] TEST: Single path with multipath [ OK ] # 49.27 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 49.74 [+0.46] TEST: Invalid nexthop [ OK ] # 50.10 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 50.56 [+0.46] TEST: Multipath with multipath [ OK ] # 51.03 [+0.47] TEST: Multipath with single path [ OK ] # 51.48 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 51.97 [+0.49] TEST: Multipath with dev-only [ OK ] # 52.43 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 52.91 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 53.26 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 53.26 [+0.00] # 53.26 [+0.00] IPv6 route with dsfield tests # 53.44 [+0.18] TEST: Reject route with dsfield [ OK ] # 59.56 [+6.12] # 59.56 [+0.00] IPv4 route add / append tests # 59.91 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 60.26 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 60.63 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 61.08 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 61.58 [+0.50] TEST: Append nexthop to existing route - gw [ OK ] # 62.08 [+0.50] TEST: Append nexthop to existing route - dev only [ OK ] # 62.55 [+0.48] TEST: Append nexthop to existing route - reject route [ OK ] # 62.93 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 63.30 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 63.71 [+0.41] TEST: add multipath route [ OK ] # 64.07 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 64.54 [+0.47] TEST: Route add with different metrics [ OK ] # 64.73 [+0.19] TEST: Route delete with metric [ OK ] # 64.74 [+0.00] # 64.74 [+0.00] IPv4 route replace tests # 65.19 [+0.45] TEST: Single path with single path [ OK ] # 65.65 [+0.46] TEST: Single path with multipath [ OK ] # 66.10 [+0.45] TEST: Single path with reject route [ OK ] # 66.55 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 67.02 [+0.47] TEST: Invalid nexthop [ OK ] # 67.39 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 67.84 [+0.45] TEST: Multipath with multipath [ OK ] # 68.30 [+0.45] TEST: Multipath with single path [ OK ] # 68.75 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 69.20 [+0.45] TEST: Multipath with reject route [ OK ] # 69.68 [+0.47] TEST: Multipath - invalid first nexthop [ OK ] # 70.14 [+0.46] TEST: Multipath - invalid second nexthop [ OK ] # 70.52 [+0.39] TEST: Multipath - replace of non-existent route [ OK ] # 71.99 [+1.47] TEST: Cached route removed from VRF port device [ OK ] # 71.99 [+0.00] # 72.00 [+0.00] IPv4 route with dsfield tests # 72.20 [+0.20] TEST: Reject route with dsfield 0x01 [ OK ] # 72.29 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 72.38 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 72.65 [+0.27] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 72.74 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 72.85 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 72.95 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 73.03 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 73.11 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 73.20 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 73.30 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 73.39 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 73.48 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 73.57 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 73.67 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 75.46 [+1.79] # 75.46 [+0.00] IPv6 prefix route tests # 77.47 [+2.00] TEST: Default metric [ OK ] # 77.80 [+0.33] TEST: User specified metric on first device [ OK ] # 78.11 [+0.31] TEST: User specified metric on second device [ OK ] # 78.31 [+0.20] TEST: Delete of address on first device [ OK ] # 78.49 [+0.18] TEST: Modify metric of address [ OK ] # 78.80 [+0.31] TEST: Prefix route removed on link down [ OK ] # 79.00 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 79.30 [+0.29] TEST: Set metric with peer route on local side [ OK ] # 79.40 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 79.58 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 79.67 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 80.73 [+1.06] # 80.73 [+0.00] IPv4 prefix route tests # 82.66 [+1.92] TEST: Default metric [ OK ] # 82.93 [+0.27] TEST: User specified metric on first device [ OK ] # 83.21 [+0.28] TEST: User specified metric on second device [ OK ] # 83.41 [+0.20] TEST: Delete of address on first device [ OK ] # 83.59 [+0.18] TEST: Modify metric of address [ OK ] # 83.76 [+0.17] TEST: Prefix route removed on link down [ OK ] # 83.94 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 84.32 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 84.61 [+0.29] TEST: Set metric of address with peer route [ OK ] # 84.79 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 85.75 [+0.96] # 85.75 [+0.00] IPv6 routes with metrics # 90.37 [+4.62] TEST: Single path route with mtu metric [ OK ] # 90.65 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 90.95 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.15 [+0.20] TEST: MTU of second leg [ OK ] # 91.35 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 91.58 [+0.23] TEST: Using route with mtu metric [ OK ] # 91.74 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 93.45 [+1.71] # 93.45 [+0.00] IPv4 route add / append tests # 98.05 [+4.59] TEST: Single path route with mtu metric [ OK ] # 98.23 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 98.46 [+0.23] TEST: Using route with mtu metric [ OK ] # 98.62 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.33 [+1.71] # 100.33 [+0.00] IPv4 route with IPv6 gateway tests # 106.98 [+6.64] TEST: Single path route with IPv6 gateway [ OK ] # 107.23 [+0.25] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.32 [+0.09] TEST: Single path route delete [ OK ] # 107.50 [+0.19] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.70 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.79 [+0.10] TEST: Multipath route delete exact match [ OK ] # 107.88 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 108.08 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.19 [+0.10] TEST: Multipath route delete exact match [ OK ] # 109.95 [+1.76] # 109.95 [+0.00] IPv4 rp_filter tests # 115.99 [+6.04] TEST: rp_filter passes local packets [ OK ] # 116.14 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 116.89 [+0.75] # 116.89 [+0.00] IPv4 delete address route tests # 119.77 [+2.89] Regular FIB info # 119.93 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 120.02 [+0.08] TEST: Route in default VRF not removed [ OK ] # 120.39 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.48 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 120.49 [+0.00] Identical FIB info with different table ID # 120.68 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 120.77 [+0.09] TEST: Route in default VRF not removed [ OK ] # 121.10 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.18 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 121.18 [+0.00] Table ID 0 # 121.35 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.34 [+0.99] # 122.34 [+0.00] IPv6 delete address route tests # 127.13 [+4.78] Single device using src address # 127.30 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.30 [+0.00] Two devices with the same source address # 127.48 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.64 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.64 [+0.00] VRF with single device using src address # 127.81 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.81 [+0.00] VRF with two devices using src address # 127.97 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 128.16 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 128.16 [+0.00] src address and nexthop dev in same VRF # 128.34 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 128.43 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 128.77 [+0.34] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.87 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 128.87 [+0.00] src address and nexthop device in different VRF # 129.05 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 129.15 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 129.41 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 129.52 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 129.52 [+0.00] Table ID 0 # 129.69 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.69 [+0.00] Link local source route # 129.86 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.04 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 130.12 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.37 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.91 [+1.54] # 131.91 [+0.00] IPv4 mangling tests # 139.36 [+7.45] TEST: Connection with correct parameters [ OK ] # 139.54 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 140.48 [+0.95] TEST: Connection with correct parameters - mangling [ OK ] # 141.33 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 141.39 [+0.07] TEST: Connection check - server side [ OK ] # 143.40 [+2.01] # 143.40 [+0.00] IPv6 mangling tests # 150.99 [+7.59] TEST: Connection with correct parameters [ OK ] # 151.18 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 152.05 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 152.93 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 152.99 [+0.06] TEST: Connection check - server side [ OK ] # 154.92 [+1.93] # 154.92 [+0.00] IPv4 broadcast neighbour tests # 157.18 [+2.26] TEST: Resolved neighbour for broadcast address [ OK ] # 157.27 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 157.37 [+0.10] TEST: Unresolved neighbour for broadcast address [ OK ] # 157.46 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 159.34 [+1.88] # 159.34 [+0.00] Fib6 garbage collection test # 172.56 [+13.22] TEST: ipv6 route garbage collection [ OK ] # 186.01 [+13.45] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 199.51 [+13.51] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 213.09 [+13.57] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 227.90 [+14.82] TEST: ipv6 route garbage collection (RA message) [ OK ] # 229.08 [+1.18] # 229.08 [+0.00] IPv4 multipath list receive tests # 250.13 [+21.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 252.17 [+2.04] # 252.17 [+0.00] IPv6 multipath list receive tests # 269.55 [+17.38] TEST: Multipath route hit ratio (1.00) [ OK ] # 271.55 [+2.00] # 271.55 [+0.00] Tests passed: 229 # 271.56 [+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__->