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.03 [+0.71] Start point # 1.10 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.17 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.28 [+0.11] Nexthop device deleted # 1.35 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.41 [+0.06] TEST: IPv6 fibmatch - no route [ OK ] # 1.83 [+0.41] # 1.83 [+0.00] Multipath route test # 3.11 [+1.28] Start point # 3.17 [+0.06] TEST: IPv4 fibmatch [ OK ] # 3.24 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.35 [+0.11] One nexthop device deleted # 3.41 [+0.06] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.48 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.59 [+0.12] Second nexthop device deleted # 3.66 [+0.06] TEST: IPv6 - no route [ OK ] # 4.08 [+0.43] # 4.08 [+0.00] Single path, admin down # 5.04 [+0.96] Start point # 5.10 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.17 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.24 [+0.07] Route deleted on down # 5.30 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.36 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.72 [+0.36] # 5.72 [+0.00] Admin down multipath # 7.01 [+1.29] Verify start point # 7.08 [+0.06] TEST: IPv4 fibmatch [ OK ] # 7.15 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.22 [+0.06] One device down, one up # 7.28 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.34 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.41 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.48 [+0.06] TEST: IPv6 fibmatch on up device [ OK ] # 7.56 [+0.08] TEST: IPv4 flags on down device [ OK ] # 7.64 [+0.08] TEST: IPv6 flags on down device [ OK ] # 7.71 [+0.07] TEST: IPv4 flags on up device [ OK ] # 7.79 [+0.08] TEST: IPv6 flags on up device [ OK ] # 7.92 [+0.13] Other device down and up # 7.99 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.07 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.13 [+0.06] TEST: IPv4 fibmatch on up device [ OK ] # 8.19 [+0.06] TEST: IPv6 fibmatch on up device [ OK ] # 8.25 [+0.06] TEST: IPv4 flags on down device [ OK ] # 8.32 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.40 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.47 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.54 [+0.07] Both devices down # 8.60 [+0.06] TEST: IPv4 fibmatch [ OK ] # 8.67 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.12 [+0.45] # 9.12 [+0.00] Local carrier tests - single path # 10.08 [+0.96] Start point # 10.15 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.21 [+0.06] TEST: IPv6 fibmatch [ OK ] # 10.27 [+0.06] TEST: IPv4 - no linkdown flag [ OK ] # 10.33 [+0.06] TEST: IPv6 - no linkdown flag [ OK ] # 11.44 [+1.11] Carrier off on nexthop # 11.51 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.58 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.64 [+0.06] TEST: IPv4 - linkdown flag set [ OK ] # 11.73 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 11.86 [+0.13] Route to local address with carrier down # 11.92 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.99 [+0.06] TEST: IPv6 fibmatch [ OK ] # 12.06 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 12.13 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 12.48 [+0.34] # 12.48 [+0.00] Single path route carrier test # 13.45 [+0.97] Start point # 13.52 [+0.06] TEST: IPv4 fibmatch [ OK ] # 13.59 [+0.07] TEST: IPv6 fibmatch [ OK ] # 13.66 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 13.73 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 14.84 [+1.11] Carrier down # 14.91 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.97 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.04 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.10 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 15.23 [+0.13] Second address added with carrier down # 15.29 [+0.06] TEST: IPv4 fibmatch [ OK ] # 15.36 [+0.06] TEST: IPv6 fibmatch [ OK ] # 15.42 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 15.49 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.09 [+3.60] # 19.09 [+0.00] IPv4 nexthop tests # 19.09 [+0.00] <<< write me >>> # 19.29 [+0.19] # 19.29 [+0.00] IPv6 nexthop tests # 19.36 [+0.07] TEST: Directly connected nexthop, unicast address [ OK ] # 19.44 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 19.52 [+0.08] TEST: Gateway is linklocal address [ OK ] # 19.59 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 19.67 [+0.07] TEST: Gateway can not be local unicast address [ OK ] # 19.75 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 19.82 [+0.07] TEST: Gateway can not be a local linklocal address [ OK ] # 19.89 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 19.96 [+0.07] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.03 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.12 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 20.19 [+0.07] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.26 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 20.34 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.17 [+0.83] # 21.17 [+0.00] FIB rule with suppress_prefixlength # 22.57 [+1.40] TEST: FIB rule suppress test [ OK ] # 23.82 [+1.25] # 23.82 [+0.00] Fib6 info length calculation in route notify test # 27.40 [+3.58] TEST: ipv6 route add notify [ OK ] # 28.70 [+1.30] # 28.70 [+0.00] Fib4 info length calculation in route notify test # 32.27 [+3.57] TEST: ipv4 route add notify [ OK ] # 35.74 [+3.47] # 35.74 [+0.00] IPv6 route add / append tests # 36.03 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 36.32 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 36.61 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 36.99 [+0.38] TEST: Append nexthop to existing route - gw [ OK ] # 37.27 [+0.28] TEST: Add multipath route [ OK ] # 37.57 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 37.92 [+0.36] TEST: Route add with different metrics [ OK ] # 38.09 [+0.16] TEST: Route delete with metric [ OK ] # 38.09 [+0.00] # 38.09 [+0.00] IPv6 route replace tests # 38.46 [+0.37] TEST: Single path with single path [ OK ] # 38.82 [+0.37] TEST: Single path with multipath [ OK ] # 39.20 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 39.56 [+0.36] TEST: Invalid nexthop [ OK ] # 39.84 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 40.22 [+0.37] TEST: Multipath with multipath [ OK ] # 40.58 [+0.36] TEST: Multipath with single path [ OK ] # 40.95 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 41.32 [+0.37] TEST: Multipath with dev-only [ OK ] # 41.69 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 42.07 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 42.35 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 42.36 [+0.00] # 42.36 [+0.00] IPv6 route with dsfield tests # 42.50 [+0.14] TEST: Reject route with dsfield [ OK ] # 47.43 [+4.93] # 47.43 [+0.00] IPv4 route add / append tests # 47.72 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 48.00 [+0.28] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.29 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 48.64 [+0.35] TEST: Add new nexthop for existing prefix [ OK ] # 49.00 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 49.36 [+0.36] TEST: Append nexthop to existing route - dev only [ OK ] # 49.72 [+0.36] TEST: Append nexthop to existing route - reject route [ OK ] # 50.02 [+0.30] TEST: Append nexthop to existing reject route - gw [ OK ] # 50.31 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 50.59 [+0.29] TEST: add multipath route [ OK ] # 50.88 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 51.24 [+0.36] TEST: Route add with different metrics [ OK ] # 51.38 [+0.14] TEST: Route delete with metric [ OK ] # 51.38 [+0.00] # 51.38 [+0.00] IPv4 route replace tests # 51.74 [+0.36] TEST: Single path with single path [ OK ] # 52.11 [+0.36] TEST: Single path with multipath [ OK ] # 52.47 [+0.36] TEST: Single path with reject route [ OK ] # 52.83 [+0.36] TEST: Single path with single path via multipath attribute [ OK ] # 53.19 [+0.36] TEST: Invalid nexthop [ OK ] # 53.48 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 53.85 [+0.38] TEST: Multipath with multipath [ OK ] # 54.24 [+0.38] TEST: Multipath with single path [ OK ] # 54.60 [+0.36] TEST: Multipath with single path via multipath attribute [ OK ] # 54.96 [+0.36] TEST: Multipath with reject route [ OK ] # 55.33 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 55.68 [+0.36] TEST: Multipath - invalid second nexthop [ OK ] # 55.98 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 57.16 [+1.18] TEST: Cached route removed from VRF port device [ OK ] # 57.16 [+0.00] # 57.16 [+0.00] IPv4 route with dsfield tests # 57.31 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 57.39 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 57.47 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 57.70 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 57.77 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 57.84 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 57.91 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 57.98 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 58.07 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 58.15 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 58.23 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 58.31 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 58.39 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 58.47 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 58.55 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 60.05 [+1.50] # 60.05 [+0.00] IPv6 prefix route tests # 61.62 [+1.57] TEST: Default metric [ OK ] # 61.88 [+0.25] TEST: User specified metric on first device [ OK ] # 62.15 [+0.27] TEST: User specified metric on second device [ OK ] # 62.32 [+0.17] TEST: Delete of address on first device [ OK ] # 62.47 [+0.16] TEST: Modify metric of address [ OK ] # 62.73 [+0.26] TEST: Prefix route removed on link down [ OK ] # 62.89 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 63.12 [+0.22] TEST: Set metric with peer route on local side [ OK ] # 63.21 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 63.36 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 63.45 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 64.34 [+0.89] # 64.34 [+0.00] IPv4 prefix route tests # 65.88 [+1.54] TEST: Default metric [ OK ] # 66.11 [+0.24] TEST: User specified metric on first device [ OK ] # 66.35 [+0.24] TEST: User specified metric on second device [ OK ] # 66.51 [+0.15] TEST: Delete of address on first device [ OK ] # 66.67 [+0.16] TEST: Modify metric of address [ OK ] # 66.82 [+0.15] TEST: Prefix route removed on link down [ OK ] # 66.97 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 67.29 [+0.32] TEST: Modify metric of .0/24 address [ OK ] # 67.53 [+0.24] TEST: Set metric of address with peer route [ OK ] # 67.68 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 68.54 [+0.86] # 68.54 [+0.00] IPv6 routes with metrics # 72.35 [+3.80] TEST: Single path route with mtu metric [ OK ] # 72.58 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 72.83 [+0.25] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 72.98 [+0.15] TEST: MTU of second leg [ OK ] # 73.15 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 73.35 [+0.20] TEST: Using route with mtu metric [ OK ] # 73.50 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 75.07 [+1.57] # 75.07 [+0.00] IPv4 route add / append tests # 79.00 [+3.93] TEST: Single path route with mtu metric [ OK ] # 79.17 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 79.36 [+0.19] TEST: Using route with mtu metric [ OK ] # 79.51 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 80.99 [+1.48] # 80.99 [+0.00] IPv4 route with IPv6 gateway tests # 86.69 [+5.71] TEST: Single path route with IPv6 gateway [ OK ] # 86.93 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 87.00 [+0.07] TEST: Single path route delete [ OK ] # 87.16 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 87.32 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.40 [+0.08] TEST: Multipath route delete exact match [ OK ] # 87.48 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 87.65 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.74 [+0.10] TEST: Multipath route delete exact match [ OK ] # 89.14 [+1.40] # 89.14 [+0.00] IPv4 rp_filter tests # 93.87 [+4.72] TEST: rp_filter passes local packets [ OK ] # 93.98 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 94.62 [+0.64] # 94.62 [+0.00] IPv4 delete address route tests # 96.86 [+2.24] Regular FIB info # 97.00 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 97.07 [+0.07] TEST: Route in default VRF not removed [ OK ] # 97.35 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.42 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 97.42 [+0.00] Identical FIB info with different table ID # 97.57 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 97.64 [+0.07] TEST: Route in default VRF not removed [ OK ] # 97.92 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.98 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 97.98 [+0.00] Table ID 0 # 98.11 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.90 [+0.78] # 98.90 [+0.00] IPv6 delete address route tests # 102.68 [+3.78] Single device using src address # 102.82 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 102.82 [+0.00] Two devices with the same source address # 102.96 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.11 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.12 [+0.00] VRF with single device using src address # 103.25 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.25 [+0.00] VRF with two devices using src address # 103.40 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.55 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.55 [+0.00] src address and nexthop dev in same VRF # 103.69 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 103.76 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 104.03 [+0.27] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 104.10 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 104.10 [+0.00] src address and nexthop device in different VRF # 104.24 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 104.31 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 104.51 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 104.57 [+0.06] TEST: Prefsrc removed in default VRF [ OK ] # 104.57 [+0.00] Table ID 0 # 104.71 [+0.14] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 104.71 [+0.00] Link local source route # 104.85 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.00 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 105.07 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.26 [+0.20] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 106.55 [+1.29] # 106.55 [+0.00] IPv4 mangling tests # 113.07 [+6.52] TEST: Connection with correct parameters [ OK ] # 113.20 [+0.14] TEST: Connection with incorrect parameters [ OK ] # 114.07 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 114.86 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 114.91 [+0.05] TEST: Connection check - server side [ OK ] # 116.66 [+1.75] # 116.66 [+0.00] IPv6 mangling tests # 123.25 [+6.59] TEST: Connection with correct parameters [ OK ] # 123.43 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 124.22 [+0.79] TEST: Connection with correct parameters - mangling [ OK ] # 125.03 [+0.81] TEST: Connection with correct parameters - no mangling [ OK ] # 125.07 [+0.04] TEST: Connection check - server side [ OK ] # 126.77 [+1.70] # 126.77 [+0.00] IPv4 broadcast neighbour tests # 128.55 [+1.78] TEST: Resolved neighbour for broadcast address [ OK ] # 128.62 [+0.07] TEST: Resolved neighbour for network broadcast address [ OK ] # 128.71 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 128.78 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 130.28 [+1.50] # 130.28 [+0.00] Fib6 garbage collection test # 143.28 [+12.99] TEST: ipv6 route garbage collection [ OK ] # 156.56 [+13.28] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 169.82 [+13.26] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 183.10 [+13.28] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 197.15 [+14.05] TEST: ipv6 route garbage collection (RA message) [ OK ] # 197.73 [+0.57] # 197.73 [+0.00] IPv4 multipath list receive tests # 209.37 [+11.65] TEST: Multipath route hit ratio (.99) [ OK ] # 210.95 [+1.58] # 210.95 [+0.00] IPv6 multipath list receive tests # 222.54 [+11.59] TEST: Multipath route hit ratio (1.00) [ OK ] # 224.10 [+1.56] # 224.10 [+0.00] Tests passed: 229 # 224.10 [+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__->