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.34 [+0.34] # 0.34 [+0.00] Single path route test # 1.16 [+0.82] Start point # 1.23 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.42 [+0.11] Nexthop device deleted # 1.50 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.58 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.04 [+0.47] # 2.04 [+0.00] Multipath route test # 3.52 [+1.48] Start point # 3.60 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.68 [+0.08] TEST: IPv6 fibmatch [ OK ] # 3.78 [+0.10] One nexthop device deleted # 3.85 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.93 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 4.03 [+0.10] Second nexthop device deleted # 4.10 [+0.07] TEST: IPv6 - no route [ OK ] # 4.59 [+0.49] # 4.59 [+0.00] Single path, admin down # 5.64 [+1.04] Start point # 5.71 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.78 [+0.08] TEST: IPv6 fibmatch [ OK ] # 5.86 [+0.07] Route deleted on down # 5.94 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.01 [+0.07] TEST: IPv6 fibmatch [ OK ] # 6.39 [+0.38] # 6.39 [+0.00] Admin down multipath # 7.86 [+1.47] Verify start point # 7.93 [+0.07] TEST: IPv4 fibmatch [ OK ] # 8.01 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.09 [+0.07] One device down, one up # 8.16 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 8.23 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.31 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.38 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.46 [+0.08] TEST: IPv4 flags on down device [ OK ] # 8.55 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.64 [+0.09] TEST: IPv4 flags on up device [ OK ] # 8.74 [+0.10] TEST: IPv6 flags on up device [ OK ] # 8.89 [+0.15] Other device down and up # 8.96 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 9.03 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 9.11 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.18 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.27 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.35 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.43 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.52 [+0.09] TEST: IPv6 flags on up device [ OK ] # 9.60 [+0.07] Both devices down # 9.67 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.75 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.26 [+0.51] # 10.26 [+0.00] Local carrier tests - single path # 11.37 [+1.11] Start point # 11.44 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.52 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.59 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 11.68 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 12.80 [+1.12] Carrier off on nexthop # 12.87 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.95 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.02 [+0.06] TEST: IPv4 - linkdown flag set [ OK ] # 13.10 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 13.25 [+0.14] Route to local address with carrier down # 13.32 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.41 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.49 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 13.56 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 13.94 [+0.38] # 13.94 [+0.00] Single path route carrier test # 15.10 [+1.15] Start point # 15.18 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.26 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.34 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 15.42 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 16.53 [+1.11] Carrier down # 16.61 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.68 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.75 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.84 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.99 [+0.15] Second address added with carrier down # 17.06 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.12 [+0.06] TEST: IPv6 fibmatch [ OK ] # 17.20 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.29 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 21.16 [+3.87] # 21.16 [+0.00] IPv4 nexthop tests # 21.16 [+0.00] <<< write me >>> # 21.36 [+0.20] # 21.36 [+0.00] IPv6 nexthop tests # 21.43 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 21.53 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 21.61 [+0.09] TEST: Gateway is linklocal address [ OK ] # 21.71 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 21.79 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 21.88 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 21.96 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 22.05 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 22.14 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 22.22 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 22.30 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 22.38 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 22.47 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 22.55 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 23.46 [+0.91] # 23.46 [+0.00] FIB rule with suppress_prefixlength # 25.08 [+1.62] TEST: FIB rule suppress test [ OK ] # 26.48 [+1.41] # 26.49 [+0.00] Fib6 info length calculation in route notify test # 30.20 [+3.72] TEST: ipv6 route add notify [ OK ] # 31.62 [+1.41] # 31.62 [+0.00] Fib4 info length calculation in route notify test # 35.37 [+3.75] TEST: ipv4 route add notify [ OK ] # 39.28 [+3.92] # 39.28 [+0.00] IPv6 route add / append tests # 39.62 [+0.33] TEST: Attempt to add duplicate route - gw [ OK ] # 39.94 [+0.32] TEST: Attempt to add duplicate route - dev only [ OK ] # 40.27 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 40.68 [+0.42] TEST: Append nexthop to existing route - gw [ OK ] # 41.02 [+0.33] TEST: Add multipath route [ OK ] # 41.34 [+0.33] TEST: Attempt to add duplicate multipath route [ OK ] # 41.75 [+0.41] TEST: Route add with different metrics [ OK ] # 41.95 [+0.20] TEST: Route delete with metric [ OK ] # 41.95 [+0.00] # 41.95 [+0.00] IPv6 route replace tests # 42.36 [+0.40] TEST: Single path with single path [ OK ] # 42.78 [+0.43] TEST: Single path with multipath [ OK ] # 43.20 [+0.42] TEST: Single path with single path via multipath attribute [ OK ] # 43.61 [+0.41] TEST: Invalid nexthop [ OK ] # 43.95 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 44.37 [+0.43] TEST: Multipath with multipath [ OK ] # 44.81 [+0.43] TEST: Multipath with single path [ OK ] # 45.21 [+0.40] TEST: Multipath with single path via multipath attribute [ OK ] # 45.62 [+0.42] TEST: Multipath with dev-only [ OK ] # 46.06 [+0.43] TEST: Multipath - invalid first nexthop [ OK ] # 46.48 [+0.42] TEST: Multipath - invalid second nexthop [ OK ] # 46.81 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 46.81 [+0.00] # 46.81 [+0.00] IPv6 route with dsfield tests # 46.99 [+0.17] TEST: Reject route with dsfield [ OK ] # 52.73 [+5.74] # 52.73 [+0.00] IPv4 route add / append tests # 53.05 [+0.32] TEST: Attempt to add duplicate route - gw [ OK ] # 53.37 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.71 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.16 [+0.46] TEST: Add new nexthop for existing prefix [ OK ] # 54.57 [+0.41] TEST: Append nexthop to existing route - gw [ OK ] # 54.99 [+0.42] TEST: Append nexthop to existing route - dev only [ OK ] # 55.39 [+0.40] TEST: Append nexthop to existing route - reject route [ OK ] # 55.72 [+0.33] TEST: Append nexthop to existing reject route - gw [ OK ] # 56.07 [+0.34] TEST: Append nexthop to existing reject route - dev only [ OK ] # 56.38 [+0.31] TEST: add multipath route [ OK ] # 56.71 [+0.33] TEST: Attempt to add duplicate multipath route [ OK ] # 57.11 [+0.40] TEST: Route add with different metrics [ OK ] # 57.27 [+0.16] TEST: Route delete with metric [ OK ] # 57.27 [+0.00] # 57.27 [+0.00] IPv4 route replace tests # 57.68 [+0.41] TEST: Single path with single path [ OK ] # 58.08 [+0.40] TEST: Single path with multipath [ OK ] # 58.49 [+0.42] TEST: Single path with reject route [ OK ] # 58.89 [+0.40] TEST: Single path with single path via multipath attribute [ OK ] # 59.30 [+0.40] TEST: Invalid nexthop [ OK ] # 59.63 [+0.33] TEST: Single path - replace of non-existent route [ OK ] # 60.02 [+0.39] TEST: Multipath with multipath [ OK ] # 60.43 [+0.41] TEST: Multipath with single path [ OK ] # 60.84 [+0.41] TEST: Multipath with single path via multipath attribute [ OK ] # 61.25 [+0.41] TEST: Multipath with reject route [ OK ] # 61.66 [+0.40] TEST: Multipath - invalid first nexthop [ OK ] # 62.06 [+0.41] TEST: Multipath - invalid second nexthop [ OK ] # 62.38 [+0.32] TEST: Multipath - replace of non-existent route [ OK ] # 63.69 [+1.31] TEST: Cached route removed from VRF port device [ OK ] # 63.69 [+0.00] # 63.69 [+0.00] IPv4 route with dsfield tests # 63.86 [+0.17] TEST: Reject route with dsfield 0x01 [ OK ] # 63.95 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 64.04 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 64.29 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 64.38 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 64.45 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 64.54 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 64.63 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 64.71 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 64.79 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 64.87 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 64.94 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 65.03 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 65.11 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 65.23 [+0.12] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 66.80 [+1.57] # 66.80 [+0.00] IPv6 prefix route tests # 68.50 [+1.70] TEST: Default metric [ OK ] # 68.77 [+0.27] TEST: User specified metric on first device [ OK ] # 69.04 [+0.27] TEST: User specified metric on second device [ OK ] # 69.21 [+0.17] TEST: Delete of address on first device [ OK ] # 69.38 [+0.17] TEST: Modify metric of address [ OK ] # 69.66 [+0.28] TEST: Prefix route removed on link down [ OK ] # 69.83 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 70.10 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 70.19 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 70.36 [+0.17] TEST: Modify metric and peer address on local side [ OK ] # 70.44 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 71.35 [+0.92] # 71.35 [+0.00] IPv4 prefix route tests # 73.00 [+1.65] TEST: Default metric [ OK ] # 73.25 [+0.25] TEST: User specified metric on first device [ OK ] # 73.52 [+0.27] TEST: User specified metric on second device [ OK ] # 73.70 [+0.18] TEST: Delete of address on first device [ OK ] # 73.88 [+0.18] TEST: Modify metric of address [ OK ] # 74.05 [+0.18] TEST: Prefix route removed on link down [ OK ] # 74.24 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 74.56 [+0.32] TEST: Modify metric of .0/24 address [ OK ] # 74.82 [+0.25] TEST: Set metric of address with peer route [ OK ] # 74.99 [+0.17] TEST: Modify metric and peer address for peer route [ OK ] # 75.88 [+0.89] # 75.88 [+0.00] IPv6 routes with metrics # 80.02 [+4.14] TEST: Single path route with mtu metric [ OK ] # 80.30 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 80.56 [+0.25] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 80.72 [+0.16] TEST: MTU of second leg [ OK ] # 80.89 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 81.10 [+0.21] TEST: Using route with mtu metric [ OK ] # 81.25 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 82.83 [+1.58] # 82.83 [+0.00] IPv4 route add / append tests # 86.94 [+4.11] TEST: Single path route with mtu metric [ OK ] # 87.11 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 87.31 [+0.20] TEST: Using route with mtu metric [ OK ] # 87.46 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 89.03 [+1.57] # 89.03 [+0.00] IPv4 route with IPv6 gateway tests # 95.12 [+6.09] TEST: Single path route with IPv6 gateway [ OK ] # 95.35 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 95.43 [+0.08] TEST: Single path route delete [ OK ] # 95.58 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 95.75 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 95.83 [+0.09] TEST: Multipath route delete exact match [ OK ] # 95.92 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 96.09 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 96.18 [+0.09] TEST: Multipath route delete exact match [ OK ] # 97.76 [+1.58] # 97.76 [+0.00] IPv4 rp_filter tests # 103.09 [+5.34] TEST: rp_filter passes local packets [ OK ] # 103.23 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 103.94 [+0.71] # 103.94 [+0.00] IPv4 delete address route tests # 106.43 [+2.49] Regular FIB info # 106.58 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 106.67 [+0.09] TEST: Route in default VRF not removed [ OK ] # 106.96 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 107.03 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 107.03 [+0.00] Identical FIB info with different table ID # 107.17 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 107.26 [+0.09] TEST: Route in default VRF not removed [ OK ] # 107.57 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 107.65 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 107.65 [+0.00] Table ID 0 # 107.80 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 108.69 [+0.89] # 108.69 [+0.00] IPv6 delete address route tests # 112.89 [+4.20] Single device using src address # 113.03 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 113.03 [+0.00] Two devices with the same source address # 113.19 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 113.34 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 113.34 [+0.00] VRF with single device using src address # 113.52 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 113.52 [+0.00] VRF with two devices using src address # 113.66 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 113.83 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 113.83 [+0.00] src address and nexthop dev in same VRF # 113.99 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 114.07 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 114.35 [+0.28] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 114.43 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 114.43 [+0.00] src address and nexthop device in different VRF # 114.59 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 114.66 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 114.88 [+0.22] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 114.98 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 114.98 [+0.00] Table ID 0 # 115.12 [+0.14] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 115.12 [+0.00] Link local source route # 115.27 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 115.42 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 115.50 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 115.74 [+0.24] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 117.12 [+1.39] # 117.12 [+0.00] IPv4 mangling tests # 124.14 [+7.02] TEST: Connection with correct parameters [ OK ] # 124.30 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 125.20 [+0.89] TEST: Connection with correct parameters - mangling [ OK ] # 126.01 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 126.07 [+0.05] TEST: Connection check - server side [ OK ] # 127.89 [+1.82] # 127.89 [+0.00] IPv6 mangling tests # 134.90 [+7.01] TEST: Connection with correct parameters [ OK ] # 135.07 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 135.90 [+0.83] TEST: Connection with correct parameters - mangling [ OK ] # 136.74 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 136.80 [+0.06] TEST: Connection check - server side [ OK ] # 138.57 [+1.78] # 138.57 [+0.00] IPv4 broadcast neighbour tests # 140.58 [+2.00] TEST: Resolved neighbour for broadcast address [ OK ] # 140.66 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 140.74 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 140.82 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 142.48 [+1.65] # 142.48 [+0.00] Fib6 garbage collection test # 155.57 [+13.09] TEST: ipv6 route garbage collection [ OK ] # 168.84 [+13.27] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 182.12 [+13.28] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 195.57 [+13.44] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 209.75 [+14.19] TEST: ipv6 route garbage collection (RA message) [ OK ] # 210.41 [+0.65] # 210.41 [+0.00] IPv4 multipath list receive tests # 226.20 [+15.79] TEST: Multipath route hit ratio (1.00) [ OK ] # 227.84 [+1.64] # 227.84 [+0.00] IPv6 multipath list receive tests # 243.43 [+15.59] TEST: Multipath route hit ratio (.99) [ OK ] # 245.13 [+1.70] # 245.13 [+0.00] Tests passed: 229 # 245.13 [+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__->