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.41 [+0.41] # 0.41 [+0.00] Single path route test # 1.29 [+0.89] Start point # 1.38 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.46 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.59 [+0.13] Nexthop device deleted # 1.67 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.75 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.27 [+0.52] # 2.27 [+0.00] Multipath route test # 3.87 [+1.60] Start point # 3.97 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.06 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.20 [+0.15] One nexthop device deleted # 4.29 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.38 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 4.53 [+0.14] Second nexthop device deleted # 4.63 [+0.10] TEST: IPv6 - no route [ OK ] # 5.27 [+0.64] # 5.27 [+0.00] Single path, admin down # 6.39 [+1.12] Start point # 6.48 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.56 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.64 [+0.08] Route deleted on down # 6.72 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.81 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.25 [+0.45] # 7.26 [+0.00] Admin down multipath # 8.86 [+1.61] Verify start point # 8.94 [+0.08] TEST: IPv4 fibmatch [ OK ] # 9.04 [+0.10] TEST: IPv6 fibmatch [ OK ] # 9.13 [+0.09] One device down, one up # 9.21 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.29 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.37 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.45 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.55 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.64 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.75 [+0.10] TEST: IPv4 flags on up device [ OK ] # 9.86 [+0.11] TEST: IPv6 flags on up device [ OK ] # 10.02 [+0.16] Other device down and up # 10.11 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.20 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.28 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.37 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.48 [+0.11] TEST: IPv4 flags on down device [ OK ] # 10.57 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.66 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.76 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.85 [+0.09] Both devices down # 10.92 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.01 [+0.09] TEST: IPv6 fibmatch [ OK ] # 11.56 [+0.55] # 11.56 [+0.00] Local carrier tests - single path # 12.79 [+1.23] Start point # 12.88 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.96 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.07 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 13.16 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 14.29 [+1.12] Carrier off on nexthop # 14.38 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.46 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.55 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 14.64 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 14.80 [+0.16] Route to local address with carrier down # 14.88 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.96 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.05 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 15.13 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.58 [+0.45] # 15.58 [+0.00] Single path route carrier test # 16.80 [+1.22] Start point # 16.88 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.97 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.05 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 17.12 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 18.26 [+1.14] Carrier down # 18.34 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.43 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.52 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.61 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.77 [+0.17] Second address added with carrier down # 18.86 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.95 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.03 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.12 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 23.34 [+4.22] # 23.34 [+0.00] IPv4 nexthop tests # 23.34 [+0.00] <<< write me >>> # 23.58 [+0.24] # 23.58 [+0.00] IPv6 nexthop tests # 23.67 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 23.77 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.86 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.94 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 24.04 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 24.13 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.24 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 24.32 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 24.42 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.52 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.61 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 24.70 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.79 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 24.89 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.93 [+1.04] # 25.93 [+0.00] FIB rule with suppress_prefixlength # 27.67 [+1.75] TEST: FIB rule suppress test [ OK ] # 29.18 [+1.51] # 29.19 [+0.00] Fib6 info length calculation in route notify test # 33.14 [+3.95] TEST: ipv6 route add notify [ OK ] # 34.73 [+1.59] # 34.73 [+0.00] Fib4 info length calculation in route notify test # 38.68 [+3.95] TEST: ipv4 route add notify [ OK ] # 43.03 [+4.35] # 43.03 [+0.00] IPv6 route add / append tests # 43.39 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 43.75 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 44.12 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.61 [+0.49] TEST: Append nexthop to existing route - gw [ OK ] # 45.00 [+0.39] TEST: Add multipath route [ OK ] # 45.35 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 45.81 [+0.45] TEST: Route add with different metrics [ OK ] # 46.03 [+0.22] TEST: Route delete with metric [ OK ] # 46.03 [+0.00] # 46.03 [+0.00] IPv6 route replace tests # 46.48 [+0.45] TEST: Single path with single path [ OK ] # 46.96 [+0.48] TEST: Single path with multipath [ OK ] # 47.42 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 47.89 [+0.47] TEST: Invalid nexthop [ OK ] # 48.25 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 48.72 [+0.46] TEST: Multipath with multipath [ OK ] # 49.20 [+0.48] TEST: Multipath with single path [ OK ] # 49.67 [+0.47] TEST: Multipath with single path via multipath attribute [ OK ] # 50.18 [+0.51] TEST: Multipath with dev-only [ OK ] # 50.64 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 51.12 [+0.48] TEST: Multipath - invalid second nexthop [ OK ] # 51.48 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 51.48 [+0.00] # 51.48 [+0.00] IPv6 route with dsfield tests # 51.67 [+0.19] TEST: Reject route with dsfield [ OK ] # 57.90 [+6.23] # 57.90 [+0.00] IPv4 route add / append tests # 58.27 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 58.62 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.98 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 59.43 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 59.88 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 60.34 [+0.46] TEST: Append nexthop to existing route - dev only [ OK ] # 60.80 [+0.46] TEST: Append nexthop to existing route - reject route [ OK ] # 61.16 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 61.53 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 61.89 [+0.36] TEST: add multipath route [ OK ] # 62.26 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 62.71 [+0.45] TEST: Route add with different metrics [ OK ] # 62.91 [+0.20] TEST: Route delete with metric [ OK ] # 62.91 [+0.00] # 62.91 [+0.00] IPv4 route replace tests # 63.35 [+0.44] TEST: Single path with single path [ OK ] # 63.81 [+0.46] TEST: Single path with multipath [ OK ] # 64.27 [+0.46] TEST: Single path with reject route [ OK ] # 64.75 [+0.47] TEST: Single path with single path via multipath attribute [ OK ] # 65.20 [+0.45] TEST: Invalid nexthop [ OK ] # 65.56 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 66.02 [+0.46] TEST: Multipath with multipath [ OK ] # 66.47 [+0.45] TEST: Multipath with single path [ OK ] # 66.92 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 67.38 [+0.46] TEST: Multipath with reject route [ OK ] # 67.83 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 68.30 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 68.65 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 70.16 [+1.50] TEST: Cached route removed from VRF port device [ OK ] # 70.16 [+0.00] # 70.16 [+0.00] IPv4 route with dsfield tests # 70.34 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 70.44 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 70.54 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 70.80 [+0.26] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 70.89 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 70.99 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 71.08 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 71.18 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 71.25 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.36 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.45 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.53 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.62 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 71.71 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 71.79 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.82 [+2.03] # 73.82 [+0.00] IPv6 prefix route tests # 75.69 [+1.87] TEST: Default metric [ OK ] # 75.97 [+0.28] TEST: User specified metric on first device [ OK ] # 76.30 [+0.33] TEST: User specified metric on second device [ OK ] # 76.50 [+0.20] TEST: Delete of address on first device [ OK ] # 76.81 [+0.31] TEST: Modify metric of address [ OK ] # 77.17 [+0.36] TEST: Prefix route removed on link down [ OK ] # 77.37 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 77.65 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 77.75 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 77.93 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 78.03 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 79.13 [+1.10] # 79.13 [+0.00] IPv4 prefix route tests # 80.99 [+1.86] TEST: Default metric [ OK ] # 81.26 [+0.27] TEST: User specified metric on first device [ OK ] # 81.54 [+0.28] TEST: User specified metric on second device [ OK ] # 81.73 [+0.18] TEST: Delete of address on first device [ OK ] # 81.92 [+0.19] TEST: Modify metric of address [ OK ] # 82.14 [+0.22] TEST: Prefix route removed on link down [ OK ] # 82.32 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 82.73 [+0.41] TEST: Modify metric of .0/24 address [ OK ] # 83.01 [+0.28] TEST: Set metric of address with peer route [ OK ] # 83.21 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 84.23 [+1.02] # 84.23 [+0.00] IPv6 routes with metrics # 89.31 [+5.07] TEST: Single path route with mtu metric [ OK ] # 89.67 [+0.36] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 90.04 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 90.28 [+0.24] TEST: MTU of second leg [ OK ] # 90.53 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 90.80 [+0.27] TEST: Using route with mtu metric [ OK ] # 91.00 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 93.03 [+2.03] # 93.03 [+0.00] IPv4 route add / append tests # 99.00 [+5.97] TEST: Single path route with mtu metric [ OK ] # 99.24 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 99.51 [+0.28] TEST: Using route with mtu metric [ OK ] # 99.71 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 101.78 [+2.07] # 101.78 [+0.00] IPv4 route with IPv6 gateway tests # 108.69 [+6.90] TEST: Single path route with IPv6 gateway [ OK ] # 108.93 [+0.25] TEST: Single path route with IPv6 gateway - ping [ OK ] # 109.02 [+0.09] TEST: Single path route delete [ OK ] # 109.25 [+0.23] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 109.43 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 109.53 [+0.10] TEST: Multipath route delete exact match [ OK ] # 109.62 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 109.81 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 109.91 [+0.10] TEST: Multipath route delete exact match [ OK ] # 111.74 [+1.83] # 111.74 [+0.00] IPv4 rp_filter tests # 117.85 [+6.11] TEST: rp_filter passes local packets [ OK ] # 118.01 [+0.16] TEST: rp_filter passes loopback packets [ OK ] # 118.79 [+0.78] # 118.79 [+0.00] IPv4 delete address route tests # 121.69 [+2.91] Regular FIB info # 121.87 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 121.96 [+0.08] TEST: Route in default VRF not removed [ OK ] # 122.30 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.40 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 122.40 [+0.00] Identical FIB info with different table ID # 122.58 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 122.67 [+0.10] TEST: Route in default VRF not removed [ OK ] # 123.01 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 123.09 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 123.09 [+0.01] Table ID 0 # 123.25 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 124.26 [+1.01] # 124.26 [+0.00] IPv6 delete address route tests # 129.08 [+4.82] Single device using src address # 129.23 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 129.23 [+0.00] Two devices with the same source address # 129.42 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 129.59 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 129.59 [+0.00] VRF with single device using src address # 129.78 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 129.78 [+0.00] VRF with two devices using src address # 129.95 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 130.14 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 130.14 [+0.00] src address and nexthop dev in same VRF # 130.30 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 130.38 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 130.72 [+0.34] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 130.81 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 130.81 [+0.00] src address and nexthop device in different VRF # 130.97 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 131.05 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 131.29 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 131.38 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 131.38 [+0.00] Table ID 0 # 131.53 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 131.54 [+0.00] Link local source route # 131.69 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 131.86 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 131.94 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 132.19 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 133.70 [+1.51] # 133.70 [+0.00] IPv4 mangling tests # 141.37 [+7.66] TEST: Connection with correct parameters [ OK ] # 141.54 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 142.55 [+1.01] TEST: Connection with correct parameters - mangling [ OK ] # 143.40 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 143.45 [+0.06] TEST: Connection check - server side [ OK ] # 145.42 [+1.96] # 145.42 [+0.00] IPv6 mangling tests # 152.86 [+7.44] TEST: Connection with correct parameters [ OK ] # 153.06 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 153.90 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 154.77 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 154.83 [+0.06] TEST: Connection check - server side [ OK ] # 156.93 [+2.09] # 156.93 [+0.00] IPv4 broadcast neighbour tests # 159.13 [+2.21] TEST: Resolved neighbour for broadcast address [ OK ] # 159.23 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 159.32 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 159.42 [+0.10] TEST: Unresolved neighbour for network broadcast address [ OK ] # 161.26 [+1.85] # 161.26 [+0.00] Fib6 garbage collection test # 174.50 [+13.24] TEST: ipv6 route garbage collection [ OK ] # 187.97 [+13.47] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 201.52 [+13.54] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 215.10 [+13.58] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 229.44 [+14.34] TEST: ipv6 route garbage collection (RA message) [ OK ] # 230.16 [+0.72] # 230.16 [+0.00] IPv4 multipath list receive tests # 247.63 [+17.47] TEST: Multipath route hit ratio (1.00) [ OK ] # 249.56 [+1.93] # 249.56 [+0.00] IPv6 multipath list receive tests # 265.81 [+16.25] TEST: Multipath route hit ratio (1.00) [ OK ] # 267.60 [+1.79] # 267.60 [+0.00] Tests passed: 229 # 267.60 [+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__->