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.38 [+0.38] # 0.38 [+0.00] Single path route test # 1.17 [+0.80] Start point # 1.25 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.32 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.44 [+0.12] Nexthop device deleted # 1.51 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.58 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.03 [+0.46] # 2.03 [+0.00] Multipath route test # 3.44 [+1.41] Start point # 3.51 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.58 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.69 [+0.11] One nexthop device deleted # 3.77 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.84 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.95 [+0.11] Second nexthop device deleted # 4.02 [+0.07] TEST: IPv6 - no route [ OK ] # 4.48 [+0.47] # 4.48 [+0.00] Single path, admin down # 5.48 [+1.00] Start point # 5.56 [+0.08] TEST: IPv4 fibmatch [ OK ] # 5.64 [+0.08] TEST: IPv6 fibmatch [ OK ] # 5.70 [+0.07] Route deleted on down # 5.78 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.84 [+0.06] TEST: IPv6 fibmatch [ OK ] # 6.21 [+0.38] # 6.21 [+0.00] Admin down multipath # 7.62 [+1.40] Verify start point # 7.69 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.76 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.83 [+0.07] One device down, one up # 7.90 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.97 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.03 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.11 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.18 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.27 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.34 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.41 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.57 [+0.16] Other device down and up # 8.63 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 8.70 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.78 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.85 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.93 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.01 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.10 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.17 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.24 [+0.07] Both devices down # 9.31 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.37 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.86 [+0.48] # 9.86 [+0.00] Local carrier tests - single path # 10.85 [+0.99] Start point # 10.92 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.99 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.07 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 11.18 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 12.28 [+1.11] Carrier off on nexthop # 12.37 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.44 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.51 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.59 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 12.73 [+0.14] Route to local address with carrier down # 12.80 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.88 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.95 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 13.02 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 13.41 [+0.39] # 13.42 [+0.00] Single path route carrier test # 14.52 [+1.11] Start point # 14.59 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.67 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.75 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 14.81 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.92 [+1.11] Carrier down # 16.01 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.09 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.15 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 16.22 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 16.36 [+0.14] Second address added with carrier down # 16.43 [+0.07] TEST: IPv4 fibmatch [ OK ] # 16.50 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.58 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.66 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 20.46 [+3.81] # 20.46 [+0.00] IPv4 nexthop tests # 20.46 [+0.00] <<< write me >>> # 20.68 [+0.21] # 20.68 [+0.00] IPv6 nexthop tests # 20.76 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 20.84 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.92 [+0.08] TEST: Gateway is linklocal address [ OK ] # 20.99 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 21.07 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 21.15 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 21.23 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 21.30 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 21.38 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 21.45 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 21.53 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 21.60 [+0.07] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.68 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 21.75 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.62 [+0.87] # 22.62 [+0.00] FIB rule with suppress_prefixlength # 24.07 [+1.45] TEST: FIB rule suppress test [ OK ] # 25.42 [+1.35] # 25.42 [+0.00] Fib6 info length calculation in route notify test # 29.06 [+3.65] TEST: ipv6 route add notify [ OK ] # 30.40 [+1.33] # 30.40 [+0.00] Fib4 info length calculation in route notify test # 34.02 [+3.62] TEST: ipv4 route add notify [ OK ] # 37.67 [+3.64] # 37.67 [+0.00] IPv6 route add / append tests # 37.95 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 38.26 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 38.56 [+0.31] TEST: Attempt to add duplicate route - reject route [ OK ] # 38.95 [+0.39] TEST: Append nexthop to existing route - gw [ OK ] # 39.26 [+0.31] TEST: Add multipath route [ OK ] # 39.56 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 39.95 [+0.39] TEST: Route add with different metrics [ OK ] # 40.10 [+0.15] TEST: Route delete with metric [ OK ] # 40.10 [+0.00] # 40.10 [+0.00] IPv6 route replace tests # 40.51 [+0.40] TEST: Single path with single path [ OK ] # 40.90 [+0.39] TEST: Single path with multipath [ OK ] # 41.28 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 41.64 [+0.36] TEST: Invalid nexthop [ OK ] # 41.94 [+0.30] TEST: Single path - replace of non-existent route [ OK ] # 42.33 [+0.40] TEST: Multipath with multipath [ OK ] # 42.72 [+0.38] TEST: Multipath with single path [ OK ] # 43.08 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 43.47 [+0.39] TEST: Multipath with dev-only [ OK ] # 43.86 [+0.39] TEST: Multipath - invalid first nexthop [ OK ] # 44.24 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 44.55 [+0.31] TEST: Multipath - replace of non-existent route [ OK ] # 44.55 [+0.00] # 44.55 [+0.00] IPv6 route with dsfield tests # 44.71 [+0.15] TEST: Reject route with dsfield [ OK ] # 49.82 [+5.11] # 49.82 [+0.00] IPv4 route add / append tests # 50.11 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 50.40 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.72 [+0.32] TEST: Attempt to add duplicate route - reject route [ OK ] # 51.09 [+0.36] TEST: Add new nexthop for existing prefix [ OK ] # 51.44 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 51.82 [+0.37] TEST: Append nexthop to existing route - dev only [ OK ] # 52.19 [+0.38] TEST: Append nexthop to existing route - reject route [ OK ] # 52.50 [+0.31] TEST: Append nexthop to existing reject route - gw [ OK ] # 52.79 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 53.10 [+0.31] TEST: add multipath route [ OK ] # 53.39 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 53.75 [+0.36] TEST: Route add with different metrics [ OK ] # 53.91 [+0.16] TEST: Route delete with metric [ OK ] # 53.91 [+0.00] # 53.91 [+0.00] IPv4 route replace tests # 54.30 [+0.39] TEST: Single path with single path [ OK ] # 54.68 [+0.38] TEST: Single path with multipath [ OK ] # 55.07 [+0.39] TEST: Single path with reject route [ OK ] # 55.45 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 55.85 [+0.40] TEST: Invalid nexthop [ OK ] # 56.14 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 56.54 [+0.39] TEST: Multipath with multipath [ OK ] # 56.91 [+0.37] TEST: Multipath with single path [ OK ] # 57.27 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 57.65 [+0.37] TEST: Multipath with reject route [ OK ] # 58.01 [+0.36] TEST: Multipath - invalid first nexthop [ OK ] # 58.38 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 58.68 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 59.89 [+1.21] TEST: Cached route removed from VRF port device [ OK ] # 59.89 [+0.00] # 59.89 [+0.00] IPv4 route with dsfield tests # 60.04 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 60.12 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 60.19 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 60.44 [+0.24] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 60.51 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 60.58 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 60.65 [+0.06] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 60.72 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 60.80 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 60.87 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 60.94 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 61.01 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 61.09 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 61.17 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 61.24 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 62.67 [+1.43] # 62.67 [+0.00] IPv6 prefix route tests # 64.25 [+1.58] TEST: Default metric [ OK ] # 64.50 [+0.25] TEST: User specified metric on first device [ OK ] # 64.73 [+0.23] TEST: User specified metric on second device [ OK ] # 64.88 [+0.15] TEST: Delete of address on first device [ OK ] # 65.04 [+0.16] TEST: Modify metric of address [ OK ] # 65.29 [+0.26] TEST: Prefix route removed on link down [ OK ] # 65.45 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 65.68 [+0.22] TEST: Set metric with peer route on local side [ OK ] # 65.76 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 65.90 [+0.14] TEST: Modify metric and peer address on local side [ OK ] # 65.99 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 66.75 [+0.77] # 66.76 [+0.00] IPv4 prefix route tests # 68.22 [+1.47] TEST: Default metric [ OK ] # 68.44 [+0.22] TEST: User specified metric on first device [ OK ] # 68.68 [+0.23] TEST: User specified metric on second device [ OK ] # 68.82 [+0.14] TEST: Delete of address on first device [ OK ] # 68.97 [+0.15] TEST: Modify metric of address [ OK ] # 69.11 [+0.14] TEST: Prefix route removed on link down [ OK ] # 69.26 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 69.57 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 69.79 [+0.22] TEST: Set metric of address with peer route [ OK ] # 69.94 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 70.74 [+0.80] # 70.74 [+0.00] IPv6 routes with metrics # 74.57 [+3.83] TEST: Single path route with mtu metric [ OK ] # 74.82 [+0.25] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 75.09 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 75.26 [+0.17] TEST: MTU of second leg [ OK ] # 75.41 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 75.60 [+0.18] TEST: Using route with mtu metric [ OK ] # 75.72 [+0.12] TEST: Invalid metric (fails metric_convert) [ OK ] # 77.14 [+1.42] # 77.14 [+0.00] IPv4 route add / append tests # 88.79 [+11.65] TEST: Single path route with mtu metric [ OK ] # 89.32 [+0.53] TEST: Multipath route with mtu metric [ OK ] # 90.06 [+0.74] TEST: Using route with mtu metric [ OK ] # 90.63 [+0.57] TEST: Invalid metric (fails metric_convert) [ OK ] # 95.78 [+5.15] # 95.78 [+0.00] IPv4 route with IPv6 gateway tests # 120.16 [+24.38] TEST: Single path route with IPv6 gateway [ OK ] # 120.90 [+0.74] TEST: Single path route with IPv6 gateway - ping [ OK ] # 121.23 [+0.33] TEST: Single path route delete [ OK ] # 121.80 [+0.56] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 122.39 [+0.60] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 122.62 [+0.22] TEST: Multipath route delete exact match [ OK ] # 122.93 [+0.31] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 123.75 [+0.82] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 124.15 [+0.40] TEST: Multipath route delete exact match [ OK ] # 129.82 [+5.66] # 129.82 [+0.00] IPv4 rp_filter tests # 137.43 [+7.62] TEST: rp_filter passes local packets [ OK ] # 137.54 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 138.14 [+0.60] # 138.15 [+0.00] IPv4 delete address route tests # 140.38 [+2.23] Regular FIB info # 140.51 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 140.57 [+0.06] TEST: Route in default VRF not removed [ OK ] # 140.84 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 140.91 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 140.91 [+0.00] Identical FIB info with different table ID # 141.04 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 141.11 [+0.07] TEST: Route in default VRF not removed [ OK ] # 141.40 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 141.46 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 141.46 [+0.00] Table ID 0 # 141.59 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 142.35 [+0.77] # 142.35 [+0.00] IPv6 delete address route tests # 146.10 [+3.74] Single device using src address # 146.24 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 146.24 [+0.00] Two devices with the same source address # 146.38 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 146.53 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 146.53 [+0.00] VRF with single device using src address # 146.65 [+0.12] TEST: Prefsrc removed when src address removed on other device [ OK ] # 146.65 [+0.00] VRF with two devices using src address # 146.78 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 146.91 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 146.92 [+0.00] src address and nexthop dev in same VRF # 147.06 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 147.12 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 147.38 [+0.26] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 147.45 [+0.06] TEST: Prefsrc in default VRF removed [ OK ] # 147.45 [+0.00] src address and nexthop device in different VRF # 147.60 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 147.66 [+0.06] TEST: Prefsrc not removed in default VRF [ OK ] # 147.85 [+0.19] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 147.91 [+0.06] TEST: Prefsrc removed in default VRF [ OK ] # 147.91 [+0.00] Table ID 0 # 148.04 [+0.13] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 148.04 [+0.00] Link local source route # 148.19 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 148.33 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 148.40 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 148.59 [+0.19] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 149.81 [+1.22] # 149.82 [+0.00] IPv4 mangling tests # 156.50 [+6.68] TEST: Connection with correct parameters [ OK ] # 156.64 [+0.14] TEST: Connection with incorrect parameters [ OK ] # 157.50 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 158.33 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 158.39 [+0.06] TEST: Connection check - server side [ OK ] # 160.04 [+1.65] # 160.04 [+0.00] IPv6 mangling tests # 166.59 [+6.55] TEST: Connection with correct parameters [ OK ] # 166.75 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 167.54 [+0.79] TEST: Connection with correct parameters - mangling [ OK ] # 168.33 [+0.78] TEST: Connection with correct parameters - no mangling [ OK ] # 168.38 [+0.05] TEST: Connection check - server side [ OK ] # 170.05 [+1.67] # 170.05 [+0.00] IPv4 broadcast neighbour tests # 171.89 [+1.84] TEST: Resolved neighbour for broadcast address [ OK ] # 171.97 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 172.04 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 172.11 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 173.61 [+1.49] # 173.61 [+0.00] Fib6 garbage collection test # 186.58 [+12.97] TEST: ipv6 route garbage collection [ OK ] # 199.72 [+13.14] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 212.90 [+13.19] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 226.20 [+13.30] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 240.24 [+14.04] TEST: ipv6 route garbage collection (RA message) [ OK ] # 240.86 [+0.62] # 240.86 [+0.00] IPv4 multipath list receive tests # 252.35 [+11.49] TEST: Multipath route hit ratio (.99) [ OK ] # 254.04 [+1.70] # 254.04 [+0.00] IPv6 multipath list receive tests # 265.71 [+11.67] TEST: Multipath route hit ratio (1.00) [ OK ] # 267.17 [+1.45] # 267.17 [+0.00] Tests passed: 229 # 267.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__->