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.18 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.28 [+0.11] Nexthop device deleted # 1.35 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.42 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.84 [+0.42] # 1.84 [+0.00] Multipath route test # 3.17 [+1.33] Start point # 3.24 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.29 [+0.06] TEST: IPv6 fibmatch [ OK ] # 3.41 [+0.12] One nexthop device deleted # 3.48 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.55 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.66 [+0.12] Second nexthop device deleted # 3.73 [+0.06] TEST: IPv6 - no route [ OK ] # 4.15 [+0.43] # 4.15 [+0.00] Single path, admin down # 5.08 [+0.93] Start point # 5.15 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.22 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.29 [+0.07] Route deleted on down # 5.35 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.42 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.77 [+0.36] # 5.77 [+0.00] Admin down multipath # 7.10 [+1.32] Verify start point # 7.17 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.24 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.30 [+0.06] One device down, one up # 7.37 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.44 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.51 [+0.06] TEST: IPv4 fibmatch on up device [ OK ] # 7.58 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.66 [+0.08] TEST: IPv4 flags on down device [ OK ] # 7.74 [+0.08] TEST: IPv6 flags on down device [ OK ] # 7.82 [+0.08] TEST: IPv4 flags on up device [ OK ] # 7.90 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.04 [+0.14] Other device down and up # 8.10 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.17 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.24 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.31 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.38 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.46 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.54 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.62 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.70 [+0.07] Both devices down # 8.76 [+0.06] TEST: IPv4 fibmatch [ OK ] # 8.83 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.32 [+0.49] # 9.32 [+0.00] Local carrier tests - single path # 10.33 [+1.02] Start point # 10.40 [+0.06] TEST: IPv4 fibmatch [ OK ] # 10.47 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.53 [+0.06] TEST: IPv4 - no linkdown flag [ OK ] # 10.61 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 11.73 [+1.13] Carrier off on nexthop # 11.83 [+0.10] TEST: IPv4 fibmatch [ OK ] # 11.90 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.97 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.05 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 12.18 [+0.14] Route to local address with carrier down # 12.25 [+0.06] TEST: IPv4 fibmatch [ OK ] # 12.32 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.40 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 12.46 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 12.83 [+0.37] # 12.83 [+0.00] Single path route carrier test # 13.81 [+0.98] Start point # 13.88 [+0.07] TEST: IPv4 fibmatch [ OK ] # 13.94 [+0.06] TEST: IPv6 fibmatch [ OK ] # 14.01 [+0.06] TEST: IPv4 no linkdown flag [ OK ] # 14.08 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.19 [+1.11] Carrier down # 15.26 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.33 [+0.06] TEST: IPv6 fibmatch [ OK ] # 15.40 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.47 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 15.60 [+0.13] Second address added with carrier down # 15.66 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.74 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.81 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.90 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 19.51 [+3.62] # 19.52 [+0.00] IPv4 nexthop tests # 19.52 [+0.00] <<< write me >>> # 19.70 [+0.19] # 19.70 [+0.00] IPv6 nexthop tests # 19.77 [+0.07] TEST: Directly connected nexthop, unicast address [ OK ] # 19.85 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 19.92 [+0.07] TEST: Gateway is linklocal address [ OK ] # 20.00 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 20.08 [+0.07] TEST: Gateway can not be local unicast address [ OK ] # 20.15 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.23 [+0.07] TEST: Gateway can not be a local linklocal address [ OK ] # 20.30 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 20.37 [+0.07] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.44 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.51 [+0.07] TEST: Redirect to VRF lookup [ OK ] # 20.59 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.66 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 20.75 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.61 [+0.86] # 21.61 [+0.00] FIB rule with suppress_prefixlength # 23.01 [+1.40] TEST: FIB rule suppress test [ OK ] # 24.27 [+1.26] # 24.27 [+0.00] Fib6 info length calculation in route notify test # 27.88 [+3.61] TEST: ipv6 route add notify [ OK ] # 29.20 [+1.32] # 29.20 [+0.00] Fib4 info length calculation in route notify test # 32.93 [+3.73] TEST: ipv4 route add notify [ OK ] # 36.64 [+3.71] # 36.64 [+0.00] IPv6 route add / append tests # 36.95 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 37.24 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 37.55 [+0.31] TEST: Attempt to add duplicate route - reject route [ OK ] # 37.94 [+0.40] TEST: Append nexthop to existing route - gw [ OK ] # 38.25 [+0.30] TEST: Add multipath route [ OK ] # 38.54 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 38.91 [+0.37] TEST: Route add with different metrics [ OK ] # 39.08 [+0.17] TEST: Route delete with metric [ OK ] # 39.09 [+0.00] # 39.09 [+0.00] IPv6 route replace tests # 39.56 [+0.47] TEST: Single path with single path [ OK ] # 39.96 [+0.40] TEST: Single path with multipath [ OK ] # 40.35 [+0.39] TEST: Single path with single path via multipath attribute [ OK ] # 40.73 [+0.38] TEST: Invalid nexthop [ OK ] # 41.03 [+0.30] TEST: Single path - replace of non-existent route [ OK ] # 41.48 [+0.45] TEST: Multipath with multipath [ OK ] # 42.80 [+1.32] TEST: Multipath with single path [ OK ] # 43.93 [+1.13] TEST: Multipath with single path via multipath attribute [ OK ] # 44.50 [+0.57] TEST: Multipath with dev-only [ OK ] # 45.03 [+0.53] TEST: Multipath - invalid first nexthop [ OK ] # 45.45 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 45.78 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 45.79 [+0.00] # 45.79 [+0.00] IPv6 route with dsfield tests # 45.95 [+0.16] TEST: Reject route with dsfield [ OK ] # 51.23 [+5.29] # 51.24 [+0.00] IPv4 route add / append tests # 51.55 [+0.31] TEST: Attempt to add duplicate route - gw [ OK ] # 51.83 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 52.13 [+0.30] TEST: Attempt to add duplicate route - reject route [ OK ] # 52.53 [+0.40] TEST: Add new nexthop for existing prefix [ OK ] # 52.94 [+0.40] TEST: Append nexthop to existing route - gw [ OK ] # 53.31 [+0.37] TEST: Append nexthop to existing route - dev only [ OK ] # 54.41 [+1.10] TEST: Append nexthop to existing route - reject route [ OK ] # 55.54 [+1.14] TEST: Append nexthop to existing reject route - gw [ OK ] # 56.14 [+0.59] TEST: Append nexthop to existing reject route - dev only [ OK ] # 56.54 [+0.40] TEST: add multipath route [ OK ] # 56.88 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 57.25 [+0.37] TEST: Route add with different metrics [ OK ] # 57.42 [+0.16] TEST: Route delete with metric [ OK ] # 57.42 [+0.00] # 57.42 [+0.00] IPv4 route replace tests # 57.82 [+0.40] TEST: Single path with single path [ OK ] # 58.20 [+0.38] TEST: Single path with multipath [ OK ] # 58.61 [+0.41] TEST: Single path with reject route [ OK ] # 58.99 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 59.36 [+0.37] TEST: Invalid nexthop [ OK ] # 59.67 [+0.31] TEST: Single path - replace of non-existent route [ OK ] # 60.04 [+0.38] TEST: Multipath with multipath [ OK ] # 60.42 [+0.38] TEST: Multipath with single path [ OK ] # 60.80 [+0.39] TEST: Multipath with single path via multipath attribute [ OK ] # 61.18 [+0.38] TEST: Multipath with reject route [ OK ] # 61.56 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 61.96 [+0.39] TEST: Multipath - invalid second nexthop [ OK ] # 62.27 [+0.31] TEST: Multipath - replace of non-existent route [ OK ] # 63.48 [+1.21] TEST: Cached route removed from VRF port device [ OK ] # 63.48 [+0.00] # 63.48 [+0.00] IPv4 route with dsfield tests # 63.63 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 63.70 [+0.07] TEST: Reject route with dsfield 0x02 [ OK ] # 63.79 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 64.02 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 64.09 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 64.16 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 64.23 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 64.30 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 64.37 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 64.43 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 64.51 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 64.57 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 64.64 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 64.72 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 64.81 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 66.32 [+1.51] # 66.32 [+0.00] IPv6 prefix route tests # 67.82 [+1.50] TEST: Default metric [ OK ] # 68.06 [+0.24] TEST: User specified metric on first device [ OK ] # 68.28 [+0.23] TEST: User specified metric on second device [ OK ] # 68.44 [+0.15] TEST: Delete of address on first device [ OK ] # 68.60 [+0.17] TEST: Modify metric of address [ OK ] # 68.85 [+0.24] TEST: Prefix route removed on link down [ OK ] # 69.01 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 69.24 [+0.23] TEST: Set metric with peer route on local side [ OK ] # 69.31 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 69.47 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 69.54 [+0.07] TEST: Modify metric and peer address on peer side [ OK ] # 70.35 [+0.81] # 70.35 [+0.00] IPv4 prefix route tests # 71.81 [+1.46] TEST: Default metric [ OK ] # 72.04 [+0.23] TEST: User specified metric on first device [ OK ] # 72.26 [+0.22] TEST: User specified metric on second device [ OK ] # 72.40 [+0.15] TEST: Delete of address on first device [ OK ] # 72.55 [+0.15] TEST: Modify metric of address [ OK ] # 72.69 [+0.13] TEST: Prefix route removed on link down [ OK ] # 72.83 [+0.14] TEST: Prefix route with metric on link up [ OK ] # 73.14 [+0.31] TEST: Modify metric of .0/24 address [ OK ] # 73.36 [+0.22] TEST: Set metric of address with peer route [ OK ] # 73.51 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 74.33 [+0.82] # 74.33 [+0.00] IPv6 routes with metrics # 77.99 [+3.66] TEST: Single path route with mtu metric [ OK ] # 78.22 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 78.46 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 78.61 [+0.15] TEST: MTU of second leg [ OK ] # 78.78 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 78.97 [+0.19] TEST: Using route with mtu metric [ OK ] # 79.11 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 80.55 [+1.45] # 80.55 [+0.00] IPv4 route add / append tests # 84.24 [+3.69] TEST: Single path route with mtu metric [ OK ] # 84.40 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 84.58 [+0.18] TEST: Using route with mtu metric [ OK ] # 84.72 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 86.22 [+1.50] # 86.22 [+0.00] IPv4 route with IPv6 gateway tests # 92.09 [+5.87] TEST: Single path route with IPv6 gateway [ OK ] # 92.29 [+0.20] TEST: Single path route with IPv6 gateway - ping [ OK ] # 92.36 [+0.07] TEST: Single path route delete [ OK ] # 92.50 [+0.14] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 92.67 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 92.74 [+0.07] TEST: Multipath route delete exact match [ OK ] # 92.82 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 92.98 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 93.07 [+0.08] TEST: Multipath route delete exact match [ OK ] # 94.61 [+1.54] # 94.61 [+0.00] IPv4 rp_filter tests # 99.53 [+4.92] TEST: rp_filter passes local packets [ OK ] # 99.65 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 100.34 [+0.68] # 100.34 [+0.00] IPv4 delete address route tests # 102.79 [+2.45] Regular FIB info # 102.96 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 103.03 [+0.07] TEST: Route in default VRF not removed [ OK ] # 103.32 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 103.40 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 103.41 [+0.00] Identical FIB info with different table ID # 103.54 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 103.60 [+0.06] TEST: Route in default VRF not removed [ OK ] # 103.88 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 103.95 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 103.95 [+0.00] Table ID 0 # 104.09 [+0.14] TEST: Route removed in default VRF when source address deleted [ OK ] # 104.89 [+0.81] # 104.89 [+0.00] IPv6 delete address route tests # 108.96 [+4.06] Single device using src address # 109.10 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 109.10 [+0.00] Two devices with the same source address # 109.25 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 109.40 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 109.41 [+0.00] VRF with single device using src address # 109.56 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 109.57 [+0.00] VRF with two devices using src address # 109.72 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 109.86 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 109.86 [+0.00] src address and nexthop dev in same VRF # 110.01 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 110.09 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 110.36 [+0.27] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 110.44 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 110.45 [+0.00] src address and nexthop device in different VRF # 110.58 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 110.66 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 110.87 [+0.22] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 110.96 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 110.96 [+0.00] Table ID 0 # 111.12 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 111.12 [+0.00] Link local source route # 111.27 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 111.43 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 111.48 [+0.06] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 111.67 [+0.19] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 113.04 [+1.36] # 113.04 [+0.00] IPv4 mangling tests # 119.88 [+6.84] TEST: Connection with correct parameters [ OK ] # 120.06 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 120.93 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 121.72 [+0.79] TEST: Connection with correct parameters - no mangling [ OK ] # 121.78 [+0.06] TEST: Connection check - server side [ OK ] # 123.50 [+1.72] # 123.50 [+0.00] IPv6 mangling tests # 130.23 [+6.73] TEST: Connection with correct parameters [ OK ] # 130.40 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 131.20 [+0.81] TEST: Connection with correct parameters - mangling [ OK ] # 132.05 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 132.10 [+0.05] TEST: Connection check - server side [ OK ] # 133.91 [+1.81] # 133.91 [+0.00] IPv4 broadcast neighbour tests # 135.77 [+1.86] TEST: Resolved neighbour for broadcast address [ OK ] # 135.85 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 135.94 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 136.02 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 137.55 [+1.54] # 137.55 [+0.00] Fib6 garbage collection test # 150.55 [+13.00] TEST: ipv6 route garbage collection [ OK ] # 163.74 [+13.19] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 176.93 [+13.19] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 190.32 [+13.39] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 204.42 [+14.09] TEST: ipv6 route garbage collection (RA message) [ OK ] # 205.04 [+0.62] # 205.04 [+0.00] IPv4 multipath list receive tests # 216.81 [+11.78] TEST: Multipath route hit ratio (1.00) [ OK ] # 218.36 [+1.54] # 218.36 [+0.00] IPv6 multipath list receive tests # 229.74 [+11.38] TEST: Multipath route hit ratio (1.00) [ OK ] # 231.28 [+1.54] # 231.29 [+0.00] Tests passed: 229 # 231.29 [+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__->