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.43 [+0.43] # 0.43 [+0.00] Single path route test # 1.53 [+1.09] Start point # 1.62 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.71 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.85 [+0.13] Nexthop device deleted # 1.94 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 2.02 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.58 [+0.57] # 2.58 [+0.00] Multipath route test # 4.29 [+1.71] Start point # 4.37 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.47 [+0.10] TEST: IPv6 fibmatch [ OK ] # 4.59 [+0.13] One nexthop device deleted # 4.67 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.79 [+0.12] TEST: IPv6 - multipath down to single path [ OK ] # 4.91 [+0.12] Second nexthop device deleted # 5.00 [+0.08] TEST: IPv6 - no route [ OK ] # 5.57 [+0.57] # 5.57 [+0.00] Single path, admin down # 6.72 [+1.15] Start point # 6.80 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.89 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.98 [+0.08] Route deleted on down # 7.06 [+0.09] TEST: IPv4 fibmatch [ OK ] # 7.14 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.57 [+0.43] # 7.58 [+0.00] Admin down multipath # 9.24 [+1.67] Verify start point # 9.34 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.42 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.50 [+0.08] One device down, one up # 9.57 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.65 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.74 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.82 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.90 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.99 [+0.09] TEST: IPv6 flags on down device [ OK ] # 10.07 [+0.08] TEST: IPv4 flags on up device [ OK ] # 10.18 [+0.12] TEST: IPv6 flags on up device [ OK ] # 10.37 [+0.18] Other device down and up # 10.45 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.54 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.62 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.71 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.81 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.91 [+0.10] TEST: IPv6 flags on down device [ OK ] # 11.03 [+0.12] TEST: IPv4 flags on up device [ OK ] # 11.13 [+0.10] TEST: IPv6 flags on up device [ OK ] # 11.21 [+0.09] Both devices down # 11.30 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.38 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.93 [+0.55] # 11.93 [+0.00] Local carrier tests - single path # 13.16 [+1.23] Start point # 13.24 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.33 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.41 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 13.50 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 14.62 [+1.12] Carrier off on nexthop # 14.70 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.80 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.88 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.97 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 15.14 [+0.17] Route to local address with carrier down # 15.22 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.30 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.38 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.46 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.92 [+0.46] # 15.92 [+0.00] Single path route carrier test # 17.11 [+1.20] Start point # 17.20 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.28 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.35 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 17.44 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.58 [+1.14] Carrier down # 18.66 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.75 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.84 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.92 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.07 [+0.16] Second address added with carrier down # 19.15 [+0.08] TEST: IPv4 fibmatch [ OK ] # 19.23 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.32 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 19.39 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 23.62 [+4.23] # 23.62 [+0.00] IPv4 nexthop tests # 23.62 [+0.00] <<< write me >>> # 23.87 [+0.25] # 23.87 [+0.00] IPv6 nexthop tests # 23.97 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 24.10 [+0.13] TEST: Directly connected nexthop, unicast address with device [ OK ] # 24.19 [+0.09] TEST: Gateway is linklocal address [ OK ] # 24.29 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 24.37 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 24.51 [+0.14] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.60 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 24.71 [+0.11] TEST: Gateway can be local address in a VRF [ OK ] # 24.81 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.91 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 25.01 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 25.11 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 25.20 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 25.29 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 26.39 [+1.09] # 26.39 [+0.00] FIB rule with suppress_prefixlength # 28.16 [+1.78] TEST: FIB rule suppress test [ OK ] # 29.71 [+1.55] # 29.71 [+0.00] Fib6 info length calculation in route notify test # 33.74 [+4.02] TEST: ipv6 route add notify [ OK ] # 35.62 [+1.88] # 35.62 [+0.00] Fib4 info length calculation in route notify test # 39.64 [+4.03] TEST: ipv4 route add notify [ OK ] # 44.12 [+4.47] # 44.12 [+0.00] IPv6 route add / append tests # 44.50 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 44.85 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 45.23 [+0.38] TEST: Attempt to add duplicate route - reject route [ OK ] # 45.70 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 46.08 [+0.37] TEST: Add multipath route [ OK ] # 46.43 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 46.90 [+0.47] TEST: Route add with different metrics [ OK ] # 47.09 [+0.18] TEST: Route delete with metric [ OK ] # 47.09 [+0.00] # 47.09 [+0.00] IPv6 route replace tests # 47.56 [+0.47] TEST: Single path with single path [ OK ] # 48.03 [+0.47] TEST: Single path with multipath [ OK ] # 48.48 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 48.95 [+0.47] TEST: Invalid nexthop [ OK ] # 49.30 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 49.77 [+0.47] TEST: Multipath with multipath [ OK ] # 50.22 [+0.46] TEST: Multipath with single path [ OK ] # 50.69 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 51.15 [+0.47] TEST: Multipath with dev-only [ OK ] # 51.64 [+0.48] TEST: Multipath - invalid first nexthop [ OK ] # 52.12 [+0.48] TEST: Multipath - invalid second nexthop [ OK ] # 52.47 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 52.47 [+0.00] # 52.47 [+0.00] IPv6 route with dsfield tests # 52.65 [+0.18] TEST: Reject route with dsfield [ OK ] # 58.74 [+6.09] # 58.74 [+0.00] IPv4 route add / append tests # 59.11 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 59.48 [+0.37] TEST: Attempt to add duplicate route - dev only [ OK ] # 59.83 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 60.29 [+0.46] TEST: Add new nexthop for existing prefix [ OK ] # 60.75 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 61.20 [+0.45] TEST: Append nexthop to existing route - dev only [ OK ] # 61.66 [+0.46] TEST: Append nexthop to existing route - reject route [ OK ] # 62.04 [+0.38] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.40 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 62.81 [+0.41] TEST: add multipath route [ OK ] # 63.15 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 63.62 [+0.48] TEST: Route add with different metrics [ OK ] # 63.79 [+0.17] TEST: Route delete with metric [ OK ] # 63.80 [+0.00] # 63.80 [+0.00] IPv4 route replace tests # 64.26 [+0.46] TEST: Single path with single path [ OK ] # 64.71 [+0.45] TEST: Single path with multipath [ OK ] # 65.17 [+0.46] TEST: Single path with reject route [ OK ] # 65.70 [+0.53] TEST: Single path with single path via multipath attribute [ OK ] # 66.18 [+0.48] TEST: Invalid nexthop [ OK ] # 66.54 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 67.03 [+0.48] TEST: Multipath with multipath [ OK ] # 67.50 [+0.47] TEST: Multipath with single path [ OK ] # 67.97 [+0.47] TEST: Multipath with single path via multipath attribute [ OK ] # 68.45 [+0.48] TEST: Multipath with reject route [ OK ] # 68.94 [+0.49] TEST: Multipath - invalid first nexthop [ OK ] # 69.44 [+0.50] TEST: Multipath - invalid second nexthop [ OK ] # 69.81 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 71.32 [+1.51] TEST: Cached route removed from VRF port device [ OK ] # 71.33 [+0.00] # 71.33 [+0.00] IPv4 route with dsfield tests # 71.51 [+0.19] TEST: Reject route with dsfield 0x01 [ OK ] # 71.61 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 71.70 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 71.98 [+0.29] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 72.07 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 72.16 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 72.26 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 72.34 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 72.42 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 72.53 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 72.63 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 72.73 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 72.82 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 72.91 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 73.02 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 74.67 [+1.65] # 74.67 [+0.00] IPv6 prefix route tests # 76.58 [+1.92] TEST: Default metric [ OK ] # 76.89 [+0.31] TEST: User specified metric on first device [ OK ] # 77.18 [+0.29] TEST: User specified metric on second device [ OK ] # 77.39 [+0.21] TEST: Delete of address on first device [ OK ] # 77.59 [+0.20] TEST: Modify metric of address [ OK ] # 77.90 [+0.30] TEST: Prefix route removed on link down [ OK ] # 78.09 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 78.38 [+0.29] TEST: Set metric with peer route on local side [ OK ] # 78.47 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 78.68 [+0.20] TEST: Modify metric and peer address on local side [ OK ] # 78.77 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 79.78 [+1.00] # 79.78 [+0.00] IPv4 prefix route tests # 81.64 [+1.86] TEST: Default metric [ OK ] # 81.92 [+0.28] TEST: User specified metric on first device [ OK ] # 82.21 [+0.29] TEST: User specified metric on second device [ OK ] # 82.39 [+0.19] TEST: Delete of address on first device [ OK ] # 82.58 [+0.18] TEST: Modify metric of address [ OK ] # 82.75 [+0.17] TEST: Prefix route removed on link down [ OK ] # 82.94 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 83.30 [+0.36] TEST: Modify metric of .0/24 address [ OK ] # 83.59 [+0.28] TEST: Set metric of address with peer route [ OK ] # 83.77 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 84.75 [+0.98] # 84.75 [+0.00] IPv6 routes with metrics # 89.28 [+4.53] TEST: Single path route with mtu metric [ OK ] # 89.60 [+0.32] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 89.90 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 90.09 [+0.19] TEST: MTU of second leg [ OK ] # 90.28 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 90.50 [+0.23] TEST: Using route with mtu metric [ OK ] # 90.67 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 92.38 [+1.72] # 92.39 [+0.00] IPv4 route add / append tests # 96.88 [+4.49] TEST: Single path route with mtu metric [ OK ] # 97.07 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 97.29 [+0.22] TEST: Using route with mtu metric [ OK ] # 97.46 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 99.16 [+1.70] # 99.16 [+0.00] IPv4 route with IPv6 gateway tests # 105.65 [+6.49] TEST: Single path route with IPv6 gateway [ OK ] # 105.89 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 105.98 [+0.09] TEST: Single path route delete [ OK ] # 106.15 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 106.34 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.43 [+0.10] TEST: Multipath route delete exact match [ OK ] # 106.53 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 106.74 [+0.21] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.82 [+0.09] TEST: Multipath route delete exact match [ OK ] # 108.53 [+1.71] # 108.53 [+0.00] IPv4 rp_filter tests # 114.41 [+5.88] TEST: rp_filter passes local packets [ OK ] # 114.56 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 115.32 [+0.77] # 115.32 [+0.00] IPv4 delete address route tests # 118.08 [+2.75] Regular FIB info # 118.25 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 118.32 [+0.07] TEST: Route in default VRF not removed [ OK ] # 118.66 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.74 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 118.74 [+0.00] Identical FIB info with different table ID # 118.90 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 118.97 [+0.07] TEST: Route in default VRF not removed [ OK ] # 119.34 [+0.36] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.42 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 119.42 [+0.00] Table ID 0 # 119.59 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.54 [+0.95] # 120.54 [+0.00] IPv6 delete address route tests # 125.47 [+4.93] Single device using src address # 125.63 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.64 [+0.00] Two devices with the same source address # 125.79 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.97 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.98 [+0.00] VRF with single device using src address # 126.16 [+0.19] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.16 [+0.00] VRF with two devices using src address # 126.37 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.55 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.55 [+0.00] src address and nexthop dev in same VRF # 126.74 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 126.87 [+0.14] TEST: Prefsrc in default VRF not removed [ OK ] # 127.20 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 127.29 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 127.29 [+0.00] src address and nexthop device in different VRF # 127.45 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 127.54 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 127.80 [+0.27] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 127.88 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 127.88 [+0.00] Table ID 0 # 128.07 [+0.19] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 128.07 [+0.00] Link local source route # 128.24 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.41 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 128.50 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.75 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 130.29 [+1.54] # 130.29 [+0.00] IPv4 mangling tests # 138.24 [+7.95] TEST: Connection with correct parameters [ OK ] # 138.42 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 139.42 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 140.29 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 140.34 [+0.05] TEST: Connection check - server side [ OK ] # 142.44 [+2.09] # 142.44 [+0.00] IPv6 mangling tests # 150.03 [+7.59] TEST: Connection with correct parameters [ OK ] # 150.23 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 151.08 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 151.95 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 152.01 [+0.06] TEST: Connection check - server side [ OK ] # 154.03 [+2.03] # 154.03 [+0.00] IPv4 broadcast neighbour tests # 156.34 [+2.30] TEST: Resolved neighbour for broadcast address [ OK ] # 156.45 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 156.55 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 156.68 [+0.13] TEST: Unresolved neighbour for network broadcast address [ OK ] # 158.63 [+1.94] # 158.63 [+0.00] Fib6 garbage collection test # 171.86 [+13.23] TEST: ipv6 route garbage collection [ OK ] # 185.37 [+13.51] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 199.01 [+13.65] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 212.98 [+13.97] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 227.78 [+14.80] TEST: ipv6 route garbage collection (RA message) [ OK ] # 228.89 [+1.11] # 228.89 [+0.00] IPv4 multipath list receive tests # 246.48 [+17.59] TEST: Multipath route hit ratio (1.00) [ OK ] # 248.29 [+1.81] # 248.29 [+0.00] IPv6 multipath list receive tests # 264.44 [+16.15] TEST: Multipath route hit ratio (1.00) [ OK ] # 266.20 [+1.76] # 266.20 [+0.00] Tests passed: 229 # 266.20 [+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__->