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.33 [+0.33] # 0.33 [+0.00] Single path route test # 1.08 [+0.75] Start point # 1.15 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.21 [+0.06] TEST: IPv6 fibmatch [ OK ] # 1.34 [+0.13] Nexthop device deleted # 1.40 [+0.06] TEST: IPv4 fibmatch - no route [ OK ] # 1.47 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.92 [+0.45] # 1.92 [+0.00] Multipath route test # 3.27 [+1.34] Start point # 3.34 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.40 [+0.06] TEST: IPv6 fibmatch [ OK ] # 3.51 [+0.11] One nexthop device deleted # 3.59 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.65 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.77 [+0.12] Second nexthop device deleted # 3.84 [+0.07] TEST: IPv6 - no route [ OK ] # 4.28 [+0.44] # 4.28 [+0.00] Single path, admin down # 5.22 [+0.94] Start point # 5.29 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.37 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.43 [+0.07] Route deleted on down # 5.50 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.57 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.95 [+0.38] # 5.95 [+0.00] Admin down multipath # 7.31 [+1.36] Verify start point # 7.37 [+0.06] TEST: IPv4 fibmatch [ OK ] # 7.45 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.54 [+0.08] One device down, one up # 7.62 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 7.69 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.76 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 7.84 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 7.92 [+0.09] TEST: IPv4 flags on down device [ OK ] # 8.01 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.10 [+0.09] TEST: IPv4 flags on up device [ OK ] # 8.19 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.33 [+0.15] Other device down and up # 8.40 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.48 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.55 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.64 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 8.71 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.80 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.88 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.97 [+0.09] TEST: IPv6 flags on up device [ OK ] # 9.04 [+0.07] Both devices down # 9.11 [+0.08] TEST: IPv4 fibmatch [ OK ] # 9.17 [+0.06] TEST: IPv6 fibmatch [ OK ] # 9.68 [+0.51] # 9.68 [+0.00] Local carrier tests - single path # 10.68 [+1.00] Start point # 10.75 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.83 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.95 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 11.03 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 12.15 [+1.12] Carrier off on nexthop # 12.24 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.41 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 12.48 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.63 [+0.14] Route to local address with carrier down # 12.70 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.78 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.86 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 12.94 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 13.35 [+0.41] # 13.35 [+0.00] Single path route carrier test # 14.41 [+1.06] Start point # 14.49 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.58 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.65 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 14.72 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.84 [+1.12] Carrier down # 15.91 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.99 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.05 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.15 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 16.29 [+0.15] Second address added with carrier down # 16.36 [+0.07] TEST: IPv4 fibmatch [ OK ] # 16.43 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.50 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.57 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 20.35 [+3.78] # 20.35 [+0.00] IPv4 nexthop tests # 20.36 [+0.00] <<< write me >>> # 20.56 [+0.20] # 20.56 [+0.00] IPv6 nexthop tests # 20.64 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 20.71 [+0.07] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.79 [+0.08] TEST: Gateway is linklocal address [ OK ] # 20.86 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 20.95 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 21.03 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 21.12 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 21.19 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 21.27 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 21.35 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 21.43 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 21.51 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.59 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 21.67 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.54 [+0.87] # 22.54 [+0.00] FIB rule with suppress_prefixlength # 23.98 [+1.45] TEST: FIB rule suppress test [ OK ] # 25.42 [+1.44] # 25.42 [+0.00] Fib6 info length calculation in route notify test # 29.10 [+3.68] TEST: ipv6 route add notify [ OK ] # 30.47 [+1.37] # 30.47 [+0.00] Fib4 info length calculation in route notify test # 34.09 [+3.62] TEST: ipv4 route add notify [ OK ] # 37.80 [+3.72] # 37.81 [+0.00] IPv6 route add / append tests # 38.10 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 38.42 [+0.32] TEST: Attempt to add duplicate route - dev only [ OK ] # 38.73 [+0.31] TEST: Attempt to add duplicate route - reject route [ OK ] # 39.12 [+0.39] TEST: Append nexthop to existing route - gw [ OK ] # 39.44 [+0.32] TEST: Add multipath route [ OK ] # 39.75 [+0.31] TEST: Attempt to add duplicate multipath route [ OK ] # 40.12 [+0.37] TEST: Route add with different metrics [ OK ] # 40.28 [+0.16] TEST: Route delete with metric [ OK ] # 40.29 [+0.00] # 40.29 [+0.00] IPv6 route replace tests # 40.67 [+0.39] TEST: Single path with single path [ OK ] # 41.06 [+0.38] TEST: Single path with multipath [ OK ] # 41.45 [+0.39] TEST: Single path with single path via multipath attribute [ OK ] # 41.84 [+0.40] TEST: Invalid nexthop [ OK ] # 42.20 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 42.59 [+0.39] TEST: Multipath with multipath [ OK ] # 43.03 [+0.44] TEST: Multipath with single path [ OK ] # 43.44 [+0.42] TEST: Multipath with single path via multipath attribute [ OK ] # 43.86 [+0.41] TEST: Multipath with dev-only [ OK ] # 44.31 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 44.74 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 45.04 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 45.04 [+0.00] # 45.04 [+0.00] IPv6 route with dsfield tests # 45.20 [+0.16] TEST: Reject route with dsfield [ OK ] # 50.54 [+5.34] # 50.54 [+0.00] IPv4 route add / append tests # 50.84 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 51.15 [+0.31] TEST: Attempt to add duplicate route - dev only [ OK ] # 51.46 [+0.30] TEST: Attempt to add duplicate route - reject route [ OK ] # 51.84 [+0.38] TEST: Add new nexthop for existing prefix [ OK ] # 52.22 [+0.39] TEST: Append nexthop to existing route - gw [ OK ] # 52.61 [+0.38] TEST: Append nexthop to existing route - dev only [ OK ] # 52.98 [+0.38] TEST: Append nexthop to existing route - reject route [ OK ] # 53.31 [+0.33] TEST: Append nexthop to existing reject route - gw [ OK ] # 53.65 [+0.34] TEST: Append nexthop to existing reject route - dev only [ OK ] # 53.97 [+0.33] TEST: add multipath route [ OK ] # 54.30 [+0.33] TEST: Attempt to add duplicate multipath route [ OK ] # 54.66 [+0.36] TEST: Route add with different metrics [ OK ] # 54.82 [+0.15] TEST: Route delete with metric [ OK ] # 54.82 [+0.00] # 54.82 [+0.00] IPv4 route replace tests # 55.24 [+0.42] TEST: Single path with single path [ OK ] # 55.61 [+0.37] TEST: Single path with multipath [ OK ] # 55.99 [+0.37] TEST: Single path with reject route [ OK ] # 56.36 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 56.72 [+0.36] TEST: Invalid nexthop [ OK ] # 57.02 [+0.30] TEST: Single path - replace of non-existent route [ OK ] # 57.39 [+0.36] TEST: Multipath with multipath [ OK ] # 57.76 [+0.38] TEST: Multipath with single path [ OK ] # 58.14 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 58.51 [+0.37] TEST: Multipath with reject route [ OK ] # 58.89 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 59.26 [+0.36] TEST: Multipath - invalid second nexthop [ OK ] # 59.55 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 60.78 [+1.22] TEST: Cached route removed from VRF port device [ OK ] # 60.78 [+0.00] # 60.78 [+0.00] IPv4 route with dsfield tests # 60.93 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 61.00 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 61.08 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 61.30 [+0.22] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 61.37 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 61.44 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 61.51 [+0.06] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 61.58 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 61.65 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 61.73 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 61.79 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 61.85 [+0.06] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 61.94 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 62.01 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 62.09 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 63.59 [+1.50] # 63.59 [+0.00] IPv6 prefix route tests # 65.17 [+1.58] TEST: Default metric [ OK ] # 65.40 [+0.23] TEST: User specified metric on first device [ OK ] # 65.65 [+0.25] TEST: User specified metric on second device [ OK ] # 65.80 [+0.15] TEST: Delete of address on first device [ OK ] # 65.95 [+0.15] TEST: Modify metric of address [ OK ] # 66.21 [+0.26] TEST: Prefix route removed on link down [ OK ] # 66.37 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 66.62 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 66.70 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 66.85 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 66.92 [+0.07] TEST: Modify metric and peer address on peer side [ OK ] # 67.77 [+0.85] # 67.78 [+0.00] IPv4 prefix route tests # 69.32 [+1.55] TEST: Default metric [ OK ] # 69.55 [+0.23] TEST: User specified metric on first device [ OK ] # 69.78 [+0.23] TEST: User specified metric on second device [ OK ] # 69.95 [+0.17] TEST: Delete of address on first device [ OK ] # 70.10 [+0.15] TEST: Modify metric of address [ OK ] # 70.24 [+0.14] TEST: Prefix route removed on link down [ OK ] # 70.40 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 70.71 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 70.95 [+0.24] TEST: Set metric of address with peer route [ OK ] # 71.10 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 71.93 [+0.83] # 71.93 [+0.00] IPv6 routes with metrics # 75.80 [+3.87] TEST: Single path route with mtu metric [ OK ] # 76.03 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 76.26 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 76.42 [+0.16] TEST: MTU of second leg [ OK ] # 76.58 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 76.77 [+0.20] TEST: Using route with mtu metric [ OK ] # 76.90 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 78.34 [+1.44] # 78.34 [+0.00] IPv4 route add / append tests # 82.00 [+3.66] TEST: Single path route with mtu metric [ OK ] # 82.15 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 82.34 [+0.19] TEST: Using route with mtu metric [ OK ] # 82.50 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 84.05 [+1.55] # 84.05 [+0.00] IPv4 route with IPv6 gateway tests # 90.32 [+6.28] TEST: Single path route with IPv6 gateway [ OK ] # 91.16 [+0.83] TEST: Single path route with IPv6 gateway - ping [ OK ] # 91.53 [+0.37] TEST: Single path route delete [ OK ] # 92.13 [+0.60] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 93.03 [+0.90] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 93.34 [+0.31] TEST: Multipath route delete exact match [ OK ] # 93.67 [+0.34] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 94.50 [+0.82] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 94.69 [+0.20] TEST: Multipath route delete exact match [ OK ] # 100.79 [+6.10] # 100.79 [+0.00] IPv4 rp_filter tests # 146.61 [+45.81] TEST: rp_filter passes local packets [ OK ] # 147.22 [+0.61] TEST: rp_filter passes loopback packets [ OK ] # 149.18 [+1.97] # 149.18 [+0.00] IPv4 delete address route tests # 151.88 [+2.70] Regular FIB info # 152.04 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 152.12 [+0.08] TEST: Route in default VRF not removed [ OK ] # 152.40 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 152.46 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 152.47 [+0.00] Identical FIB info with different table ID # 152.61 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 152.69 [+0.08] TEST: Route in default VRF not removed [ OK ] # 152.96 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 153.04 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 153.04 [+0.00] Table ID 0 # 153.17 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 154.02 [+0.85] # 154.02 [+0.00] IPv6 delete address route tests # 158.01 [+3.98] Single device using src address # 158.16 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 158.16 [+0.00] Two devices with the same source address # 158.29 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 158.43 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 158.43 [+0.00] VRF with single device using src address # 158.58 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 158.58 [+0.00] VRF with two devices using src address # 158.74 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 158.87 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 158.87 [+0.00] src address and nexthop dev in same VRF # 159.01 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 159.08 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 159.37 [+0.29] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 159.44 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 159.45 [+0.00] src address and nexthop device in different VRF # 159.58 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 159.66 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 159.89 [+0.23] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 159.96 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 159.96 [+0.00] Table ID 0 # 160.10 [+0.14] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 160.10 [+0.00] Link local source route # 160.26 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 160.38 [+0.13] TEST: Prefsrc removed when delete ll addr [ OK ] # 160.46 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 160.67 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 162.08 [+1.41] # 162.08 [+0.00] IPv4 mangling tests # 168.68 [+6.60] TEST: Connection with correct parameters [ OK ] # 168.84 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 169.73 [+0.89] TEST: Connection with correct parameters - mangling [ OK ] # 170.55 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 170.61 [+0.05] TEST: Connection check - server side [ OK ] # 172.34 [+1.74] # 172.34 [+0.00] IPv6 mangling tests # 178.88 [+6.53] TEST: Connection with correct parameters [ OK ] # 179.06 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 179.84 [+0.78] TEST: Connection with correct parameters - mangling [ OK ] # 180.66 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 180.71 [+0.05] TEST: Connection check - server side [ OK ] # 182.44 [+1.73] # 182.44 [+0.00] IPv4 broadcast neighbour tests # 184.26 [+1.82] TEST: Resolved neighbour for broadcast address [ OK ] # 184.33 [+0.07] TEST: Resolved neighbour for network broadcast address [ OK ] # 184.41 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 184.48 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 186.00 [+1.52] # 186.00 [+0.00] Fib6 garbage collection test # 198.98 [+12.98] TEST: ipv6 route garbage collection [ OK ] # 212.14 [+13.16] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 225.36 [+13.23] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 238.62 [+13.26] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 252.68 [+14.07] TEST: ipv6 route garbage collection (RA message) [ OK ] # 253.31 [+0.63] # 253.31 [+0.00] IPv4 multipath list receive tests # 265.25 [+11.94] TEST: Multipath route hit ratio (.99) [ OK ] # 266.84 [+1.60] # 266.84 [+0.00] IPv6 multipath list receive tests # 278.90 [+12.06] TEST: Multipath route hit ratio (1.00) [ OK ] # 280.46 [+1.56] # 280.46 [+0.00] Tests passed: 229 # 280.46 [+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__->