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.35 [+0.35] # 0.35 [+0.00] Single path route test # 1.11 [+0.76] Start point # 1.17 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.25 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.35 [+0.10] Nexthop device deleted # 1.41 [+0.06] TEST: IPv4 fibmatch - no route [ OK ] # 1.49 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.93 [+0.44] # 1.93 [+0.00] Multipath route test # 3.33 [+1.40] Start point # 3.41 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.47 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.56 [+0.09] One nexthop device deleted # 3.63 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.70 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.80 [+0.10] Second nexthop device deleted # 3.87 [+0.07] TEST: IPv6 - no route [ OK ] # 4.30 [+0.43] # 4.30 [+0.00] Single path, admin down # 5.25 [+0.95] Start point # 5.31 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.38 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.45 [+0.07] Route deleted on down # 5.52 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.59 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.96 [+0.38] # 5.96 [+0.00] Admin down multipath # 7.32 [+1.35] Verify start point # 7.39 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.45 [+0.06] TEST: IPv6 fibmatch [ OK ] # 7.52 [+0.07] One device down, one up # 7.59 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.65 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.73 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 7.80 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.88 [+0.08] TEST: IPv4 flags on down device [ OK ] # 7.95 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.03 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.10 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.25 [+0.15] Other device down and up # 8.31 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 8.39 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.47 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.54 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.61 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.69 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.78 [+0.09] TEST: IPv4 flags on up device [ OK ] # 8.84 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.92 [+0.07] Both devices down # 8.98 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.06 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.57 [+0.51] # 9.57 [+0.00] Local carrier tests - single path # 10.63 [+1.06] Start point # 10.69 [+0.06] TEST: IPv4 fibmatch [ OK ] # 10.77 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.85 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 10.92 [+0.07] TEST: IPv6 - no linkdown flag [ OK ] # 12.03 [+1.12] Carrier off on nexthop # 12.11 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.18 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.25 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.32 [+0.06] TEST: IPv6 - linkdown flag set [ OK ] # 12.45 [+0.14] Route to local address with carrier down # 12.52 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.59 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.66 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 12.75 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 13.13 [+0.38] # 13.13 [+0.00] Single path route carrier test # 14.15 [+1.02] Start point # 14.22 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.29 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.37 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 14.43 [+0.06] TEST: IPv6 no linkdown flag [ OK ] # 15.54 [+1.11] Carrier down # 15.61 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.69 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.75 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 15.82 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 15.96 [+0.14] Second address added with carrier down # 16.02 [+0.06] TEST: IPv4 fibmatch [ OK ] # 16.09 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.16 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.22 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 19.85 [+3.63] # 19.85 [+0.00] IPv4 nexthop tests # 19.85 [+0.00] <<< write me >>> # 20.05 [+0.20] # 20.05 [+0.00] IPv6 nexthop tests # 20.13 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 20.22 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.29 [+0.07] TEST: Gateway is linklocal address [ OK ] # 20.37 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 20.45 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.52 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.60 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 20.67 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 20.75 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.83 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.91 [+0.07] TEST: Redirect to VRF lookup [ OK ] # 20.99 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.06 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 21.15 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.01 [+0.86] # 22.01 [+0.00] FIB rule with suppress_prefixlength # 23.48 [+1.47] TEST: FIB rule suppress test [ OK ] # 24.79 [+1.31] # 24.79 [+0.00] Fib6 info length calculation in route notify test # 28.40 [+3.61] TEST: ipv6 route add notify [ OK ] # 29.74 [+1.34] # 29.74 [+0.00] Fib4 info length calculation in route notify test # 33.36 [+3.62] TEST: ipv4 route add notify [ OK ] # 36.85 [+3.48] # 36.85 [+0.00] IPv6 route add / append tests # 37.13 [+0.28] TEST: Attempt to add duplicate route - gw [ OK ] # 37.42 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 37.70 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 38.06 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 38.37 [+0.31] TEST: Add multipath route [ OK ] # 38.65 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 39.02 [+0.36] TEST: Route add with different metrics [ OK ] # 39.17 [+0.15] TEST: Route delete with metric [ OK ] # 39.17 [+0.00] # 39.17 [+0.00] IPv6 route replace tests # 39.54 [+0.37] TEST: Single path with single path [ OK ] # 39.89 [+0.36] TEST: Single path with multipath [ OK ] # 40.25 [+0.36] TEST: Single path with single path via multipath attribute [ OK ] # 40.63 [+0.38] TEST: Invalid nexthop [ OK ] # 40.91 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 41.28 [+0.37] TEST: Multipath with multipath [ OK ] # 41.65 [+0.37] TEST: Multipath with single path [ OK ] # 42.00 [+0.35] TEST: Multipath with single path via multipath attribute [ OK ] # 42.35 [+0.35] TEST: Multipath with dev-only [ OK ] # 42.73 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 43.10 [+0.36] TEST: Multipath - invalid second nexthop [ OK ] # 43.38 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 43.39 [+0.00] # 43.39 [+0.00] IPv6 route with dsfield tests # 43.53 [+0.15] TEST: Reject route with dsfield [ OK ] # 48.49 [+4.96] # 48.49 [+0.00] IPv4 route add / append tests # 48.79 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 49.08 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.36 [+0.28] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.71 [+0.35] TEST: Add new nexthop for existing prefix [ OK ] # 50.07 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 50.42 [+0.35] TEST: Append nexthop to existing route - dev only [ OK ] # 50.78 [+0.35] TEST: Append nexthop to existing route - reject route [ OK ] # 51.07 [+0.29] TEST: Append nexthop to existing reject route - gw [ OK ] # 51.36 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 51.64 [+0.28] TEST: add multipath route [ OK ] # 51.93 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 52.27 [+0.34] TEST: Route add with different metrics [ OK ] # 52.42 [+0.15] TEST: Route delete with metric [ OK ] # 52.43 [+0.00] # 52.43 [+0.00] IPv4 route replace tests # 52.79 [+0.36] TEST: Single path with single path [ OK ] # 53.18 [+0.38] TEST: Single path with multipath [ OK ] # 53.54 [+0.37] TEST: Single path with reject route [ OK ] # 53.92 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 54.35 [+0.43] TEST: Invalid nexthop [ OK ] # 54.70 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 55.15 [+0.45] TEST: Multipath with multipath [ OK ] # 55.62 [+0.47] TEST: Multipath with single path [ OK ] # 56.01 [+0.39] TEST: Multipath with single path via multipath attribute [ OK ] # 56.45 [+0.43] TEST: Multipath with reject route [ OK ] # 56.83 [+0.39] TEST: Multipath - invalid first nexthop [ OK ] # 57.25 [+0.42] TEST: Multipath - invalid second nexthop [ OK ] # 57.55 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 58.80 [+1.25] TEST: Cached route removed from VRF port device [ OK ] # 58.81 [+0.00] # 58.81 [+0.00] IPv4 route with dsfield tests # 58.96 [+0.16] TEST: Reject route with dsfield 0x01 [ OK ] # 59.05 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 59.13 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 59.35 [+0.22] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 59.43 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 59.50 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 59.58 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 59.66 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 59.73 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 59.79 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 59.85 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 59.92 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 60.01 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 60.07 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 60.14 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 61.65 [+1.50] # 61.65 [+0.00] IPv6 prefix route tests # 63.24 [+1.59] TEST: Default metric [ OK ] # 63.47 [+0.24] TEST: User specified metric on first device [ OK ] # 63.73 [+0.25] TEST: User specified metric on second device [ OK ] # 63.89 [+0.16] TEST: Delete of address on first device [ OK ] # 64.04 [+0.15] TEST: Modify metric of address [ OK ] # 64.29 [+0.25] TEST: Prefix route removed on link down [ OK ] # 64.45 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 64.70 [+0.24] TEST: Set metric with peer route on local side [ OK ] # 64.77 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 64.94 [+0.17] TEST: Modify metric and peer address on local side [ OK ] # 65.02 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 65.83 [+0.81] # 65.83 [+0.00] IPv4 prefix route tests # 67.37 [+1.54] TEST: Default metric [ OK ] # 67.61 [+0.23] TEST: User specified metric on first device [ OK ] # 67.86 [+0.25] TEST: User specified metric on second device [ OK ] # 68.01 [+0.15] TEST: Delete of address on first device [ OK ] # 68.16 [+0.15] TEST: Modify metric of address [ OK ] # 68.31 [+0.15] TEST: Prefix route removed on link down [ OK ] # 68.48 [+0.17] TEST: Prefix route with metric on link up [ OK ] # 68.80 [+0.32] TEST: Modify metric of .0/24 address [ OK ] # 69.03 [+0.24] TEST: Set metric of address with peer route [ OK ] # 69.20 [+0.16] TEST: Modify metric and peer address for peer route [ OK ] # 69.99 [+0.79] # 69.99 [+0.00] IPv6 routes with metrics # 73.80 [+3.81] TEST: Single path route with mtu metric [ OK ] # 74.04 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 74.28 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 74.44 [+0.17] TEST: MTU of second leg [ OK ] # 74.64 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 74.86 [+0.22] TEST: Using route with mtu metric [ OK ] # 75.00 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 76.50 [+1.50] # 76.50 [+0.00] IPv4 route add / append tests # 80.59 [+4.09] TEST: Single path route with mtu metric [ OK ] # 80.74 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 80.93 [+0.19] TEST: Using route with mtu metric [ OK ] # 81.08 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 82.48 [+1.40] # 82.48 [+0.00] IPv4 route with IPv6 gateway tests # 88.35 [+5.87] TEST: Single path route with IPv6 gateway [ OK ] # 88.56 [+0.21] TEST: Single path route with IPv6 gateway - ping [ OK ] # 88.63 [+0.08] TEST: Single path route delete [ OK ] # 88.79 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 88.96 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 89.03 [+0.07] TEST: Multipath route delete exact match [ OK ] # 89.12 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 89.27 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 89.35 [+0.08] TEST: Multipath route delete exact match [ OK ] # 90.91 [+1.56] # 90.91 [+0.00] IPv4 rp_filter tests # 95.85 [+4.94] TEST: rp_filter passes local packets [ OK ] # 95.96 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 96.60 [+0.64] # 96.60 [+0.00] IPv4 delete address route tests # 98.93 [+2.33] Regular FIB info # 99.06 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 99.13 [+0.07] TEST: Route in default VRF not removed [ OK ] # 99.44 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 99.50 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 99.50 [+0.00] Identical FIB info with different table ID # 99.63 [+0.12] TEST: Route removed from VRF when source address deleted [ OK ] # 99.69 [+0.07] TEST: Route in default VRF not removed [ OK ] # 99.96 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 100.04 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 100.04 [+0.00] Table ID 0 # 100.17 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 101.00 [+0.83] # 101.00 [+0.00] IPv6 delete address route tests # 104.85 [+3.84] Single device using src address # 104.99 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 105.00 [+0.00] Two devices with the same source address # 105.13 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 105.26 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 105.26 [+0.00] VRF with single device using src address # 105.40 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 105.40 [+0.00] VRF with two devices using src address # 105.55 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 105.69 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 105.69 [+0.00] src address and nexthop dev in same VRF # 105.82 [+0.13] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 105.88 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 106.18 [+0.30] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 106.26 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 106.26 [+0.00] src address and nexthop device in different VRF # 106.40 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 106.47 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 106.68 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 106.74 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 106.75 [+0.00] Table ID 0 # 106.89 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 106.90 [+0.00] Link local source route # 107.05 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 107.19 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 107.27 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 107.46 [+0.20] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 108.78 [+1.32] # 108.78 [+0.00] IPv4 mangling tests # 115.34 [+6.56] TEST: Connection with correct parameters [ OK ] # 115.49 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 116.36 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 117.15 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 117.21 [+0.05] TEST: Connection check - server side [ OK ] # 118.97 [+1.76] # 118.97 [+0.00] IPv6 mangling tests # 125.56 [+6.60] TEST: Connection with correct parameters [ OK ] # 125.73 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 126.53 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 127.36 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 127.41 [+0.05] TEST: Connection check - server side [ OK ] # 129.17 [+1.76] # 129.18 [+0.00] IPv4 broadcast neighbour tests # 131.06 [+1.88] TEST: Resolved neighbour for broadcast address [ OK ] # 131.14 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 131.21 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 131.29 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 132.83 [+1.54] # 132.83 [+0.00] Fib6 garbage collection test # 145.84 [+13.01] TEST: ipv6 route garbage collection [ OK ] # 159.04 [+13.19] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 172.25 [+13.21] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 185.56 [+13.31] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 199.66 [+14.10] TEST: ipv6 route garbage collection (RA message) [ OK ] # 200.30 [+0.64] # 200.30 [+0.00] IPv4 multipath list receive tests # 212.41 [+12.10] TEST: Multipath route hit ratio (1.00) [ OK ] # 213.93 [+1.52] # 213.93 [+0.00] IPv6 multipath list receive tests # 225.61 [+11.68] TEST: Multipath route hit ratio (1.00) [ OK ] # 227.15 [+1.55] # 227.15 [+0.00] Tests passed: 229 # 227.16 [+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__->