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.45 [+0.45] # 0.45 [+0.00] Single path route test # 1.37 [+0.92] Start point # 1.45 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.53 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.65 [+0.12] Nexthop device deleted # 1.72 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.80 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.32 [+0.52] # 2.32 [+0.00] Multipath route test # 4.00 [+1.68] Start point # 4.10 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.19 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.34 [+0.15] One nexthop device deleted # 4.43 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.52 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 4.66 [+0.14] Second nexthop device deleted # 4.76 [+0.09] TEST: IPv6 - no route [ OK ] # 5.29 [+0.53] # 5.29 [+0.00] Single path, admin down # 6.45 [+1.16] Start point # 6.54 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.62 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.73 [+0.11] Route deleted on down # 6.81 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.90 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.33 [+0.43] # 7.33 [+0.00] Admin down multipath # 8.90 [+1.57] Verify start point # 8.99 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.07 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.14 [+0.07] One device down, one up # 9.23 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.31 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.39 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.46 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.56 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.65 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.73 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.83 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.00 [+0.17] Other device down and up # 10.08 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 10.16 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.24 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.33 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.42 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.50 [+0.08] TEST: IPv6 flags on down device [ OK ] # 10.58 [+0.08] TEST: IPv4 flags on up device [ OK ] # 10.67 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.75 [+0.08] Both devices down # 10.83 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.90 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.46 [+0.55] # 11.46 [+0.00] Local carrier tests - single path # 12.64 [+1.18] Start point # 12.72 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.80 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.88 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 12.96 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 14.10 [+1.14] Carrier off on nexthop # 14.18 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.26 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.36 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 14.44 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 14.60 [+0.16] Route to local address with carrier down # 14.67 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.76 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.84 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.91 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 15.36 [+0.45] # 15.36 [+0.00] Single path route carrier test # 16.51 [+1.15] Start point # 16.59 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.68 [+0.09] TEST: IPv6 fibmatch [ OK ] # 16.75 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 16.82 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 17.94 [+1.12] Carrier down # 18.03 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.12 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.20 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.28 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 18.45 [+0.17] Second address added with carrier down # 18.53 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.61 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.68 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.76 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 22.82 [+4.06] # 22.82 [+0.00] IPv4 nexthop tests # 22.82 [+0.00] <<< write me >>> # 23.05 [+0.23] # 23.05 [+0.00] IPv6 nexthop tests # 23.14 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 23.23 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.32 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.42 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 23.50 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 23.59 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.68 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 23.77 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 23.86 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.96 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.05 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 24.13 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.23 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 24.33 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.31 [+0.98] # 25.31 [+0.00] FIB rule with suppress_prefixlength # 26.96 [+1.65] TEST: FIB rule suppress test [ OK ] # 28.50 [+1.55] # 28.50 [+0.00] Fib6 info length calculation in route notify test # 32.55 [+4.05] TEST: ipv6 route add notify [ OK ] # 34.36 [+1.80] # 34.36 [+0.00] Fib4 info length calculation in route notify test # 38.22 [+3.87] TEST: ipv4 route add notify [ OK ] # 42.61 [+4.38] # 42.61 [+0.00] IPv6 route add / append tests # 42.99 [+0.39] TEST: Attempt to add duplicate route - gw [ OK ] # 43.35 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 43.69 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.16 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 44.53 [+0.37] TEST: Add multipath route [ OK ] # 44.87 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 45.34 [+0.47] TEST: Route add with different metrics [ OK ] # 45.54 [+0.20] TEST: Route delete with metric [ OK ] # 45.54 [+0.00] # 45.54 [+0.00] IPv6 route replace tests # 46.01 [+0.46] TEST: Single path with single path [ OK ] # 46.51 [+0.50] TEST: Single path with multipath [ OK ] # 46.99 [+0.48] TEST: Single path with single path via multipath attribute [ OK ] # 47.48 [+0.50] TEST: Invalid nexthop [ OK ] # 47.90 [+0.41] TEST: Single path - replace of non-existent route [ OK ] # 48.46 [+0.56] TEST: Multipath with multipath [ OK ] # 48.96 [+0.50] TEST: Multipath with single path [ OK ] # 49.44 [+0.48] TEST: Multipath with single path via multipath attribute [ OK ] # 49.89 [+0.45] TEST: Multipath with dev-only [ OK ] # 50.35 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 50.80 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 51.15 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 51.16 [+0.00] # 51.16 [+0.00] IPv6 route with dsfield tests # 51.34 [+0.18] TEST: Reject route with dsfield [ OK ] # 57.47 [+6.13] # 57.47 [+0.00] IPv4 route add / append tests # 57.82 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 58.18 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.52 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 58.97 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 59.41 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 59.86 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 60.32 [+0.46] TEST: Append nexthop to existing route - reject route [ OK ] # 60.69 [+0.38] TEST: Append nexthop to existing reject route - gw [ OK ] # 61.11 [+0.42] TEST: Append nexthop to existing reject route - dev only [ OK ] # 61.48 [+0.38] TEST: add multipath route [ OK ] # 61.84 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 62.34 [+0.50] TEST: Route add with different metrics [ OK ] # 62.54 [+0.20] TEST: Route delete with metric [ OK ] # 62.54 [+0.00] # 62.54 [+0.00] IPv4 route replace tests # 63.01 [+0.47] TEST: Single path with single path [ OK ] # 63.44 [+0.43] TEST: Single path with multipath [ OK ] # 63.88 [+0.44] TEST: Single path with reject route [ OK ] # 64.37 [+0.49] TEST: Single path with single path via multipath attribute [ OK ] # 64.87 [+0.50] TEST: Invalid nexthop [ OK ] # 65.26 [+0.38] TEST: Single path - replace of non-existent route [ OK ] # 65.72 [+0.46] TEST: Multipath with multipath [ OK ] # 66.15 [+0.44] TEST: Multipath with single path [ OK ] # 66.60 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 67.04 [+0.43] TEST: Multipath with reject route [ OK ] # 67.47 [+0.43] TEST: Multipath - invalid first nexthop [ OK ] # 67.92 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 68.31 [+0.38] TEST: Multipath - replace of non-existent route [ OK ] # 69.93 [+1.62] TEST: Cached route removed from VRF port device [ OK ] # 69.94 [+0.01] # 69.94 [+0.00] IPv4 route with dsfield tests # 70.14 [+0.20] TEST: Reject route with dsfield 0x01 [ OK ] # 70.22 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 70.31 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 70.56 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 70.65 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 70.74 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 70.82 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 70.90 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 70.97 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.07 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.16 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.30 [+0.14] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.38 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 71.46 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 71.57 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.61 [+2.04] # 73.61 [+0.00] IPv6 prefix route tests # 75.59 [+1.98] TEST: Default metric [ OK ] # 75.90 [+0.31] TEST: User specified metric on first device [ OK ] # 76.23 [+0.33] TEST: User specified metric on second device [ OK ] # 76.42 [+0.20] TEST: Delete of address on first device [ OK ] # 76.60 [+0.18] TEST: Modify metric of address [ OK ] # 76.90 [+0.30] TEST: Prefix route removed on link down [ OK ] # 77.09 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 77.38 [+0.29] TEST: Set metric with peer route on local side [ OK ] # 77.47 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 77.67 [+0.21] TEST: Modify metric and peer address on local side [ OK ] # 77.76 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 78.76 [+1.01] # 78.76 [+0.00] IPv4 prefix route tests # 80.54 [+1.78] TEST: Default metric [ OK ] # 80.81 [+0.27] TEST: User specified metric on first device [ OK ] # 81.08 [+0.27] TEST: User specified metric on second device [ OK ] # 81.26 [+0.18] TEST: Delete of address on first device [ OK ] # 81.44 [+0.17] TEST: Modify metric of address [ OK ] # 81.61 [+0.17] TEST: Prefix route removed on link down [ OK ] # 81.79 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 82.15 [+0.37] TEST: Modify metric of .0/24 address [ OK ] # 82.42 [+0.27] TEST: Set metric of address with peer route [ OK ] # 82.60 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 83.52 [+0.91] # 83.52 [+0.00] IPv6 routes with metrics # 87.96 [+4.44] TEST: Single path route with mtu metric [ OK ] # 88.25 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 88.56 [+0.31] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 88.74 [+0.18] TEST: MTU of second leg [ OK ] # 88.92 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 89.15 [+0.23] TEST: Using route with mtu metric [ OK ] # 89.32 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 91.08 [+1.76] # 91.08 [+0.00] IPv4 route add / append tests # 95.63 [+4.56] TEST: Single path route with mtu metric [ OK ] # 95.83 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 96.06 [+0.23] TEST: Using route with mtu metric [ OK ] # 96.21 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.95 [+1.74] # 97.95 [+0.00] IPv4 route with IPv6 gateway tests # 104.35 [+6.40] TEST: Single path route with IPv6 gateway [ OK ] # 104.59 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 104.67 [+0.09] TEST: Single path route delete [ OK ] # 104.84 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 105.01 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 105.10 [+0.08] TEST: Multipath route delete exact match [ OK ] # 105.19 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 105.36 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 105.45 [+0.09] TEST: Multipath route delete exact match [ OK ] # 107.14 [+1.68] # 107.14 [+0.00] IPv4 rp_filter tests # 112.93 [+5.80] TEST: rp_filter passes local packets [ OK ] # 113.08 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 113.82 [+0.74] # 113.82 [+0.00] IPv4 delete address route tests # 116.54 [+2.72] Regular FIB info # 116.71 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 116.82 [+0.11] TEST: Route in default VRF not removed [ OK ] # 117.14 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.23 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 117.23 [+0.00] Identical FIB info with different table ID # 117.39 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 117.48 [+0.09] TEST: Route in default VRF not removed [ OK ] # 117.80 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.90 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 117.90 [+0.00] Table ID 0 # 118.05 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.98 [+0.93] # 118.98 [+0.00] IPv6 delete address route tests # 123.59 [+4.61] Single device using src address # 123.77 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 123.77 [+0.00] Two devices with the same source address # 123.94 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 124.10 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 124.11 [+0.00] VRF with single device using src address # 124.26 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 124.26 [+0.00] VRF with two devices using src address # 124.44 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 124.63 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 124.63 [+0.00] src address and nexthop dev in same VRF # 124.79 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 124.88 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 125.21 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 125.30 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 125.31 [+0.00] src address and nexthop device in different VRF # 125.46 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 125.56 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 125.81 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 125.89 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 125.90 [+0.01] Table ID 0 # 126.07 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 126.07 [+0.00] Link local source route # 126.25 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 126.42 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 126.51 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 126.76 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 128.23 [+1.48] # 128.23 [+0.00] IPv4 mangling tests # 135.80 [+7.57] TEST: Connection with correct parameters [ OK ] # 135.97 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 136.99 [+1.01] TEST: Connection with correct parameters - mangling [ OK ] # 137.81 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 137.88 [+0.06] TEST: Connection check - server side [ OK ] # 139.86 [+1.99] # 139.86 [+0.00] IPv6 mangling tests # 147.22 [+7.36] TEST: Connection with correct parameters [ OK ] # 147.42 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 148.27 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 149.14 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 149.20 [+0.06] TEST: Connection check - server side [ OK ] # 151.16 [+1.96] # 151.16 [+0.00] IPv4 broadcast neighbour tests # 153.30 [+2.14] TEST: Resolved neighbour for broadcast address [ OK ] # 153.40 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 153.49 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 153.58 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 155.36 [+1.78] # 155.36 [+0.00] Fib6 garbage collection test # 168.52 [+13.16] TEST: ipv6 route garbage collection [ OK ] # 181.87 [+13.35] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 195.25 [+13.38] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 208.87 [+13.62] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 223.11 [+14.23] TEST: ipv6 route garbage collection (RA message) [ OK ] # 223.82 [+0.71] # 223.82 [+0.00] IPv4 multipath list receive tests # 240.11 [+16.29] TEST: Multipath route hit ratio (1.00) [ OK ] # 241.88 [+1.77] # 241.88 [+0.00] IPv6 multipath list receive tests # 258.00 [+16.12] TEST: Multipath route hit ratio (1.00) [ OK ] # 259.79 [+1.78] # 259.79 [+0.00] Tests passed: 229 # 259.79 [+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__->