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.56 [+0.56] # 0.56 [+0.00] Single path route test # 1.75 [+1.20] Start point # 1.84 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.94 [+0.10] TEST: IPv6 fibmatch [ OK ] # 2.10 [+0.16] Nexthop device deleted # 2.20 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.31 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 3.15 [+0.84] # 3.15 [+0.00] Multipath route test # 5.12 [+1.97] Start point # 5.22 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.32 [+0.10] TEST: IPv6 fibmatch [ OK ] # 5.46 [+0.14] One nexthop device deleted # 5.55 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.65 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.79 [+0.14] Second nexthop device deleted # 5.92 [+0.13] TEST: IPv6 - no route [ OK ] # 6.60 [+0.68] # 6.60 [+0.00] Single path, admin down # 8.05 [+1.46] Start point # 8.16 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.28 [+0.13] TEST: IPv6 fibmatch [ OK ] # 8.39 [+0.11] Route deleted on down # 8.48 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.60 [+0.12] TEST: IPv6 fibmatch [ OK ] # 9.11 [+0.51] # 9.11 [+0.00] Admin down multipath # 11.18 [+2.07] Verify start point # 11.29 [+0.11] TEST: IPv4 fibmatch [ OK ] # 11.39 [+0.10] TEST: IPv6 fibmatch [ OK ] # 11.50 [+0.12] One device down, one up # 11.59 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 11.68 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 11.81 [+0.12] TEST: IPv4 fibmatch on up device [ OK ] # 11.91 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.02 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.18 [+0.16] TEST: IPv6 flags on down device [ OK ] # 12.31 [+0.13] TEST: IPv4 flags on up device [ OK ] # 12.40 [+0.09] TEST: IPv6 flags on up device [ OK ] # 12.60 [+0.20] Other device down and up # 12.71 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.80 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 12.90 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 13.02 [+0.12] TEST: IPv6 fibmatch on up device [ OK ] # 13.12 [+0.11] TEST: IPv4 flags on down device [ OK ] # 13.22 [+0.10] TEST: IPv6 flags on down device [ OK ] # 13.33 [+0.11] TEST: IPv4 flags on up device [ OK ] # 13.47 [+0.14] TEST: IPv6 flags on up device [ OK ] # 13.55 [+0.09] Both devices down # 13.68 [+0.13] TEST: IPv4 fibmatch [ OK ] # 13.78 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.47 [+0.69] # 14.47 [+0.00] Local carrier tests - single path # 15.97 [+1.49] Start point # 16.06 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.15 [+0.09] TEST: IPv6 fibmatch [ OK ] # 16.24 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 16.36 [+0.12] TEST: IPv6 - no linkdown flag [ OK ] # 17.53 [+1.17] Carrier off on nexthop # 17.64 [+0.11] TEST: IPv4 fibmatch [ OK ] # 17.75 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.86 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 17.99 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 18.23 [+0.23] Route to local address with carrier down # 18.32 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.42 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.55 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 18.67 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 19.19 [+0.52] # 19.19 [+0.00] Single path route carrier test # 20.74 [+1.55] Start point # 20.90 [+0.16] TEST: IPv4 fibmatch [ OK ] # 20.99 [+0.09] TEST: IPv6 fibmatch [ OK ] # 21.07 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 21.16 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 22.30 [+1.14] Carrier down # 22.40 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.49 [+0.09] TEST: IPv6 fibmatch [ OK ] # 22.63 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 22.75 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 22.93 [+0.19] Second address added with carrier down # 23.06 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.18 [+0.12] TEST: IPv6 fibmatch [ OK ] # 23.30 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 23.41 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 28.52 [+5.11] # 28.52 [+0.00] IPv4 nexthop tests # 28.52 [+0.00] <<< write me >>> # 28.78 [+0.26] # 28.79 [+0.00] IPv6 nexthop tests # 28.90 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 29.02 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 29.14 [+0.12] TEST: Gateway is linklocal address [ OK ] # 29.25 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 29.36 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 29.48 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.62 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 29.77 [+0.15] TEST: Gateway can be local address in a VRF [ OK ] # 29.92 [+0.15] TEST: Gateway can be local address in a VRF, with device [ OK ] # 30.05 [+0.14] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 30.17 [+0.11] TEST: Redirect to VRF lookup [ OK ] # 30.29 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 30.40 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 30.53 [+0.13] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.71 [+1.18] # 31.71 [+0.00] FIB rule with suppress_prefixlength # 33.87 [+2.16] TEST: FIB rule suppress test [ OK ] # 35.93 [+2.06] # 35.93 [+0.00] Fib6 info length calculation in route notify test # 40.30 [+4.37] TEST: ipv6 route add notify [ OK ] # 42.23 [+1.93] # 42.23 [+0.00] Fib4 info length calculation in route notify test # 46.67 [+4.44] TEST: ipv4 route add notify [ OK ] # 52.08 [+5.40] # 52.08 [+0.00] IPv6 route add / append tests # 52.52 [+0.44] TEST: Attempt to add duplicate route - gw [ OK ] # 52.94 [+0.42] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.40 [+0.46] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.00 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 54.45 [+0.45] TEST: Add multipath route [ OK ] # 54.91 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 55.49 [+0.58] TEST: Route add with different metrics [ OK ] # 55.72 [+0.23] TEST: Route delete with metric [ OK ] # 55.73 [+0.00] # 55.73 [+0.00] IPv6 route replace tests # 56.22 [+0.49] TEST: Single path with single path [ OK ] # 56.78 [+0.56] TEST: Single path with multipath [ OK ] # 57.37 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 57.90 [+0.54] TEST: Invalid nexthop [ OK ] # 58.41 [+0.50] TEST: Single path - replace of non-existent route [ OK ] # 59.03 [+0.62] TEST: Multipath with multipath [ OK ] # 59.62 [+0.59] TEST: Multipath with single path [ OK ] # 60.18 [+0.57] TEST: Multipath with single path via multipath attribute [ OK ] # 60.79 [+0.60] TEST: Multipath with dev-only [ OK ] # 61.40 [+0.62] TEST: Multipath - invalid first nexthop [ OK ] # 61.96 [+0.55] TEST: Multipath - invalid second nexthop [ OK ] # 62.42 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 62.42 [+0.00] # 62.42 [+0.00] IPv6 route with dsfield tests # 62.66 [+0.24] TEST: Reject route with dsfield [ OK ] # 70.22 [+7.56] # 70.22 [+0.00] IPv4 route add / append tests # 70.65 [+0.43] TEST: Attempt to add duplicate route - gw [ OK ] # 71.10 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 71.51 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 72.05 [+0.54] TEST: Add new nexthop for existing prefix [ OK ] # 72.60 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 73.27 [+0.67] TEST: Append nexthop to existing route - dev only [ OK ] # 73.89 [+0.62] TEST: Append nexthop to existing route - reject route [ OK ] # 74.42 [+0.53] TEST: Append nexthop to existing reject route - gw [ OK ] # 74.90 [+0.48] TEST: Append nexthop to existing reject route - dev only [ OK ] # 75.32 [+0.42] TEST: add multipath route [ OK ] # 75.76 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 76.27 [+0.51] TEST: Route add with different metrics [ OK ] # 76.50 [+0.23] TEST: Route delete with metric [ OK ] # 76.50 [+0.00] # 76.50 [+0.00] IPv4 route replace tests # 77.05 [+0.55] TEST: Single path with single path [ OK ] # 77.67 [+0.61] TEST: Single path with multipath [ OK ] # 78.29 [+0.62] TEST: Single path with reject route [ OK ] # 78.87 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 79.49 [+0.61] TEST: Invalid nexthop [ OK ] # 79.95 [+0.47] TEST: Single path - replace of non-existent route [ OK ] # 80.54 [+0.59] TEST: Multipath with multipath [ OK ] # 81.13 [+0.59] TEST: Multipath with single path [ OK ] # 81.73 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 82.27 [+0.54] TEST: Multipath with reject route [ OK ] # 82.88 [+0.61] TEST: Multipath - invalid first nexthop [ OK ] # 83.50 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 83.91 [+0.42] TEST: Multipath - replace of non-existent route [ OK ] # 85.64 [+1.72] TEST: Cached route removed from VRF port device [ OK ] # 85.64 [+0.00] # 85.64 [+0.00] IPv4 route with dsfield tests # 85.88 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 85.99 [+0.11] TEST: Reject route with dsfield 0x02 [ OK ] # 86.11 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 86.51 [+0.39] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 86.63 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 86.75 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 86.87 [+0.12] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 86.97 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 87.10 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 87.21 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 87.31 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 87.42 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 87.54 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 87.62 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 87.76 [+0.13] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 89.81 [+2.05] # 89.81 [+0.00] IPv6 prefix route tests # 92.19 [+2.38] TEST: Default metric [ OK ] # 92.61 [+0.42] TEST: User specified metric on first device [ OK ] # 92.94 [+0.33] TEST: User specified metric on second device [ OK ] # 93.17 [+0.22] TEST: Delete of address on first device [ OK ] # 93.40 [+0.23] TEST: Modify metric of address [ OK ] # 93.78 [+0.38] TEST: Prefix route removed on link down [ OK ] # 94.01 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 94.41 [+0.40] TEST: Set metric with peer route on local side [ OK ] # 94.51 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 94.74 [+0.22] TEST: Modify metric and peer address on local side [ OK ] # 94.86 [+0.13] TEST: Modify metric and peer address on peer side [ OK ] # 96.03 [+1.17] # 96.03 [+0.00] IPv4 prefix route tests # 98.31 [+2.28] TEST: Default metric [ OK ] # 98.70 [+0.39] TEST: User specified metric on first device [ OK ] # 99.04 [+0.34] TEST: User specified metric on second device [ OK ] # 99.27 [+0.22] TEST: Delete of address on first device [ OK ] # 99.54 [+0.27] TEST: Modify metric of address [ OK ] # 99.74 [+0.20] TEST: Prefix route removed on link down [ OK ] # 99.97 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 100.42 [+0.45] TEST: Modify metric of .0/24 address [ OK ] # 100.74 [+0.32] TEST: Set metric of address with peer route [ OK ] # 100.96 [+0.22] TEST: Modify metric and peer address for peer route [ OK ] # 102.15 [+1.19] # 102.15 [+0.00] IPv6 routes with metrics # 107.69 [+5.54] TEST: Single path route with mtu metric [ OK ] # 108.06 [+0.36] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 108.46 [+0.40] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 108.71 [+0.25] TEST: MTU of second leg [ OK ] # 108.93 [+0.22] TEST: Multipath route with mtu metric [ OK ] # 109.20 [+0.27] TEST: Using route with mtu metric [ OK ] # 109.40 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 111.43 [+2.02] # 111.43 [+0.00] IPv4 route add / append tests # 117.14 [+5.72] TEST: Single path route with mtu metric [ OK ] # 117.44 [+0.30] TEST: Multipath route with mtu metric [ OK ] # 117.70 [+0.25] TEST: Using route with mtu metric [ OK ] # 117.88 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 120.07 [+2.19] # 120.07 [+0.00] IPv4 route with IPv6 gateway tests # 127.69 [+7.62] TEST: Single path route with IPv6 gateway [ OK ] # 127.99 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 128.11 [+0.12] TEST: Single path route delete [ OK ] # 128.33 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 128.54 [+0.21] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 128.70 [+0.16] TEST: Multipath route delete exact match [ OK ] # 128.81 [+0.11] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 129.05 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 129.17 [+0.11] TEST: Multipath route delete exact match [ OK ] # 131.20 [+2.03] # 131.20 [+0.00] IPv4 rp_filter tests # 138.57 [+7.37] TEST: rp_filter passes local packets [ OK ] # 138.76 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 139.62 [+0.86] # 139.62 [+0.00] IPv4 delete address route tests # 142.90 [+3.28] Regular FIB info # 143.09 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 143.19 [+0.10] TEST: Route in default VRF not removed [ OK ] # 143.57 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 143.67 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 143.67 [+0.00] Identical FIB info with different table ID # 143.87 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 143.96 [+0.09] TEST: Route in default VRF not removed [ OK ] # 144.36 [+0.40] TEST: Route removed in default VRF when source address deleted [ OK ] # 144.46 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 144.46 [+0.00] Table ID 0 # 144.67 [+0.21] TEST: Route removed in default VRF when source address deleted [ OK ] # 145.78 [+1.11] # 145.78 [+0.00] IPv6 delete address route tests # 151.68 [+5.90] Single device using src address # 151.91 [+0.23] TEST: Prefsrc removed when src address removed on other device [ OK ] # 151.92 [+0.00] Two devices with the same source address # 152.12 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.33 [+0.21] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.33 [+0.00] VRF with single device using src address # 152.55 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.55 [+0.00] VRF with two devices using src address # 152.76 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.95 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.95 [+0.00] src address and nexthop dev in same VRF # 153.16 [+0.20] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 153.26 [+0.10] TEST: Prefsrc in default VRF not removed [ OK ] # 153.65 [+0.39] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 153.75 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 153.75 [+0.00] src address and nexthop device in different VRF # 153.95 [+0.20] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 154.07 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 154.35 [+0.28] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 154.49 [+0.14] TEST: Prefsrc removed in default VRF [ OK ] # 154.50 [+0.00] Table ID 0 # 154.73 [+0.24] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 154.73 [+0.00] Link local source route # 154.94 [+0.20] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.14 [+0.21] TEST: Prefsrc removed when delete ll addr [ OK ] # 155.25 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.57 [+0.32] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 157.44 [+1.88] # 157.44 [+0.00] IPv4 mangling tests # 166.38 [+8.94] TEST: Connection with correct parameters [ OK ] # 166.65 [+0.27] TEST: Connection with incorrect parameters [ OK ] # 167.74 [+1.09] TEST: Connection with correct parameters - mangling [ OK ] # 168.67 [+0.92] TEST: Connection with correct parameters - no mangling [ OK ] # 168.74 [+0.07] TEST: Connection check - server side [ OK ] # 171.11 [+2.38] # 171.11 [+0.00] IPv6 mangling tests # 179.51 [+8.39] TEST: Connection with correct parameters [ OK ] # 179.78 [+0.27] TEST: Connection with incorrect parameters [ OK ] # 180.73 [+0.95] TEST: Connection with correct parameters - mangling [ OK ] # 181.69 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 181.79 [+0.10] TEST: Connection check - server side [ OK ] # 184.12 [+2.33] # 184.12 [+0.00] IPv4 broadcast neighbour tests # 186.78 [+2.65] TEST: Resolved neighbour for broadcast address [ OK ] # 186.90 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 187.05 [+0.14] TEST: Unresolved neighbour for broadcast address [ OK ] # 187.17 [+0.13] TEST: Unresolved neighbour for network broadcast address [ OK ] # 189.55 [+2.38] # 189.55 [+0.00] Fib6 garbage collection test # 203.02 [+13.47] TEST: ipv6 route garbage collection [ OK ] # 216.77 [+13.76] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 230.35 [+13.58] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 244.18 [+13.83] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 258.70 [+14.51] TEST: ipv6 route garbage collection (RA message) [ OK ] # 259.66 [+0.96] # 259.66 [+0.00] IPv4 multipath list receive tests # 279.91 [+20.25] TEST: Multipath route hit ratio (1.00) [ OK ] # 282.12 [+2.21] # 282.12 [+0.00] IPv6 multipath list receive tests # 301.17 [+19.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 305.41 [+4.25] # 305.41 [+0.00] Tests passed: 229 # 305.41 [+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__->