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.60 [+0.60] # 0.60 [+0.00] Single path route test # 2.07 [+1.47] Start point # 2.22 [+0.15] TEST: IPv4 fibmatch [ OK ] # 2.33 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.53 [+0.19] Nexthop device deleted # 2.63 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.76 [+0.13] TEST: IPv6 fibmatch - no route [ OK ] # 3.64 [+0.89] # 3.64 [+0.00] Multipath route test # 6.31 [+2.66] Start point # 6.42 [+0.12] TEST: IPv4 fibmatch [ OK ] # 6.56 [+0.14] TEST: IPv6 fibmatch [ OK ] # 6.73 [+0.17] One nexthop device deleted # 6.87 [+0.14] TEST: IPv4 - multipath route removed on delete [ OK ] # 7.02 [+0.14] TEST: IPv6 - multipath down to single path [ OK ] # 7.25 [+0.23] Second nexthop device deleted # 7.42 [+0.18] TEST: IPv6 - no route [ OK ] # 8.29 [+0.86] # 8.29 [+0.00] Single path, admin down # 10.18 [+1.89] Start point # 10.32 [+0.14] TEST: IPv4 fibmatch [ OK ] # 10.46 [+0.14] TEST: IPv6 fibmatch [ OK ] # 10.58 [+0.13] Route deleted on down # 10.73 [+0.15] TEST: IPv4 fibmatch [ OK ] # 10.85 [+0.12] TEST: IPv6 fibmatch [ OK ] # 11.58 [+0.73] # 11.59 [+0.00] Admin down multipath # 14.26 [+2.67] Verify start point # 14.37 [+0.11] TEST: IPv4 fibmatch [ OK ] # 14.51 [+0.14] TEST: IPv6 fibmatch [ OK ] # 14.66 [+0.15] One device down, one up # 14.81 [+0.15] TEST: IPv4 fibmatch on down device [ OK ] # 14.94 [+0.13] TEST: IPv6 fibmatch on down device [ OK ] # 15.10 [+0.15] TEST: IPv4 fibmatch on up device [ OK ] # 15.29 [+0.20] TEST: IPv6 fibmatch on up device [ OK ] # 15.42 [+0.13] TEST: IPv4 flags on down device [ OK ] # 15.60 [+0.18] TEST: IPv6 flags on down device [ OK ] # 15.75 [+0.16] TEST: IPv4 flags on up device [ OK ] # 15.88 [+0.13] TEST: IPv6 flags on up device [ OK ] # 16.18 [+0.29] Other device down and up # 16.30 [+0.13] TEST: IPv4 fibmatch on down device [ OK ] # 16.46 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 16.60 [+0.14] TEST: IPv4 fibmatch on up device [ OK ] # 16.73 [+0.14] TEST: IPv6 fibmatch on up device [ OK ] # 16.91 [+0.18] TEST: IPv4 flags on down device [ OK ] # 17.05 [+0.14] TEST: IPv6 flags on down device [ OK ] # 17.22 [+0.17] TEST: IPv4 flags on up device [ OK ] # 17.36 [+0.14] TEST: IPv6 flags on up device [ OK ] # 17.48 [+0.12] Both devices down # 17.65 [+0.17] TEST: IPv4 fibmatch [ OK ] # 17.81 [+0.16] TEST: IPv6 fibmatch [ OK ] # 18.74 [+0.92] # 18.74 [+0.00] Local carrier tests - single path # 20.87 [+2.13] Start point # 21.01 [+0.14] TEST: IPv4 fibmatch [ OK ] # 21.14 [+0.13] TEST: IPv6 fibmatch [ OK ] # 21.25 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 21.39 [+0.13] TEST: IPv6 - no linkdown flag [ OK ] # 22.65 [+1.26] Carrier off on nexthop # 22.81 [+0.16] TEST: IPv4 fibmatch [ OK ] # 22.94 [+0.13] TEST: IPv6 fibmatch [ OK ] # 23.08 [+0.14] TEST: IPv4 - linkdown flag set [ OK ] # 23.22 [+0.15] TEST: IPv6 - linkdown flag set [ OK ] # 23.53 [+0.31] Route to local address with carrier down # 23.68 [+0.15] TEST: IPv4 fibmatch [ OK ] # 23.85 [+0.17] TEST: IPv6 fibmatch [ OK ] # 23.97 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 24.11 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 24.86 [+0.75] # 24.86 [+0.00] Single path route carrier test # 26.76 [+1.90] Start point # 26.90 [+0.14] TEST: IPv4 fibmatch [ OK ] # 27.04 [+0.14] TEST: IPv6 fibmatch [ OK ] # 27.17 [+0.12] TEST: IPv4 no linkdown flag [ OK ] # 27.31 [+0.15] TEST: IPv6 no linkdown flag [ OK ] # 28.59 [+1.28] Carrier down # 28.73 [+0.14] TEST: IPv4 fibmatch [ OK ] # 28.91 [+0.18] TEST: IPv6 fibmatch [ OK ] # 29.05 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 29.18 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 29.41 [+0.23] Second address added with carrier down # 29.56 [+0.14] TEST: IPv4 fibmatch [ OK ] # 29.69 [+0.13] TEST: IPv6 fibmatch [ OK ] # 29.83 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 29.96 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 36.28 [+6.32] # 36.28 [+0.00] IPv4 nexthop tests # 36.28 [+0.00] <<< write me >>> # 36.67 [+0.39] # 36.67 [+0.00] IPv6 nexthop tests # 36.81 [+0.14] TEST: Directly connected nexthop, unicast address [ OK ] # 36.96 [+0.16] TEST: Directly connected nexthop, unicast address with device [ OK ] # 37.12 [+0.15] TEST: Gateway is linklocal address [ OK ] # 37.27 [+0.15] TEST: Gateway is linklocal address, no device [ OK ] # 37.44 [+0.17] TEST: Gateway can not be local unicast address [ OK ] # 37.61 [+0.16] TEST: Gateway can not be local unicast address, with device [ OK ] # 37.74 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 37.89 [+0.15] TEST: Gateway can be local address in a VRF [ OK ] # 38.03 [+0.14] TEST: Gateway can be local address in a VRF, with device [ OK ] # 38.16 [+0.13] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 38.31 [+0.15] TEST: Redirect to VRF lookup [ OK ] # 38.45 [+0.14] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 38.63 [+0.18] TEST: VRF route, gateway can not be a local address [ OK ] # 38.79 [+0.16] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 40.28 [+1.49] # 40.29 [+0.00] FIB rule with suppress_prefixlength # 43.13 [+2.85] TEST: FIB rule suppress test [ OK ] # 45.68 [+2.55] # 45.68 [+0.00] Fib6 info length calculation in route notify test # 51.19 [+5.50] TEST: ipv6 route add notify [ OK ] # 53.80 [+2.62] # 53.81 [+0.00] Fib4 info length calculation in route notify test # 59.28 [+5.47] TEST: ipv4 route add notify [ OK ] # 66.52 [+7.24] # 66.53 [+0.00] IPv6 route add / append tests # 67.18 [+0.66] TEST: Attempt to add duplicate route - gw [ OK ] # 67.80 [+0.61] TEST: Attempt to add duplicate route - dev only [ OK ] # 68.40 [+0.60] TEST: Attempt to add duplicate route - reject route [ OK ] # 69.30 [+0.90] TEST: Append nexthop to existing route - gw [ OK ] # 69.90 [+0.61] TEST: Add multipath route [ OK ] # 70.52 [+0.62] TEST: Attempt to add duplicate multipath route [ OK ] # 71.30 [+0.77] TEST: Route add with different metrics [ OK ] # 71.63 [+0.33] TEST: Route delete with metric [ OK ] # 71.63 [+0.00] # 71.63 [+0.00] IPv6 route replace tests # 72.44 [+0.81] TEST: Single path with single path [ OK ] # 73.27 [+0.83] TEST: Single path with multipath [ OK ] # 74.19 [+0.92] TEST: Single path with single path via multipath attribute [ OK ] # 74.92 [+0.73] TEST: Invalid nexthop [ OK ] # 75.51 [+0.59] TEST: Single path - replace of non-existent route [ OK ] # 76.30 [+0.79] TEST: Multipath with multipath [ OK ] # 77.10 [+0.81] TEST: Multipath with single path [ OK ] # 77.91 [+0.81] TEST: Multipath with single path via multipath attribute [ OK ] # 78.61 [+0.70] TEST: Multipath with dev-only [ OK ] # 79.30 [+0.69] TEST: Multipath - invalid first nexthop [ OK ] # 80.09 [+0.79] TEST: Multipath - invalid second nexthop [ OK ] # 80.70 [+0.61] TEST: Multipath - replace of non-existent route [ OK ] # 80.71 [+0.00] # 80.71 [+0.00] IPv6 route with dsfield tests # 81.03 [+0.33] TEST: Reject route with dsfield [ OK ] # 90.91 [+9.88] # 90.91 [+0.00] IPv4 route add / append tests # 91.51 [+0.60] TEST: Attempt to add duplicate route - gw [ OK ] # 92.11 [+0.59] TEST: Attempt to add duplicate route - dev only [ OK ] # 92.65 [+0.55] TEST: Attempt to add duplicate route - reject route [ OK ] # 93.44 [+0.79] TEST: Add new nexthop for existing prefix [ OK ] # 94.15 [+0.71] TEST: Append nexthop to existing route - gw [ OK ] # 94.88 [+0.73] TEST: Append nexthop to existing route - dev only [ OK ] # 95.59 [+0.71] TEST: Append nexthop to existing route - reject route [ OK ] # 96.13 [+0.54] TEST: Append nexthop to existing reject route - gw [ OK ] # 96.72 [+0.59] TEST: Append nexthop to existing reject route - dev only [ OK ] # 97.26 [+0.54] TEST: add multipath route [ OK ] # 97.90 [+0.63] TEST: Attempt to add duplicate multipath route [ OK ] # 98.72 [+0.82] TEST: Route add with different metrics [ OK ] # 99.04 [+0.32] TEST: Route delete with metric [ OK ] # 99.04 [+0.00] # 99.04 [+0.00] IPv4 route replace tests # 99.81 [+0.76] TEST: Single path with single path [ OK ] # 100.51 [+0.71] TEST: Single path with multipath [ OK ] # 101.26 [+0.75] TEST: Single path with reject route [ OK ] # 101.98 [+0.72] TEST: Single path with single path via multipath attribute [ OK ] # 102.72 [+0.74] TEST: Invalid nexthop [ OK ] # 103.31 [+0.59] TEST: Single path - replace of non-existent route [ OK ] # 104.03 [+0.72] TEST: Multipath with multipath [ OK ] # 104.80 [+0.77] TEST: Multipath with single path [ OK ] # 105.50 [+0.70] TEST: Multipath with single path via multipath attribute [ OK ] # 106.27 [+0.77] TEST: Multipath with reject route [ OK ] # 107.05 [+0.78] TEST: Multipath - invalid first nexthop [ OK ] # 107.86 [+0.81] TEST: Multipath - invalid second nexthop [ OK ] # 108.49 [+0.63] TEST: Multipath - replace of non-existent route [ OK ] # 110.85 [+2.36] TEST: Cached route removed from VRF port device [ OK ] # 110.86 [+0.00] # 110.86 [+0.00] IPv4 route with dsfield tests # 111.17 [+0.32] TEST: Reject route with dsfield 0x01 [ OK ] # 111.34 [+0.17] TEST: Reject route with dsfield 0x02 [ OK ] # 111.53 [+0.19] TEST: Reject route with dsfield 0x03 [ OK ] # 111.98 [+0.44] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 112.12 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 112.27 [+0.16] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 112.46 [+0.19] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 112.61 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 112.76 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 112.88 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 113.01 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 113.16 [+0.16] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 113.32 [+0.16] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 113.46 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 113.60 [+0.15] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 116.20 [+2.59] # 116.20 [+0.00] IPv6 prefix route tests # 119.68 [+3.48] TEST: Default metric [ OK ] # 120.16 [+0.48] TEST: User specified metric on first device [ OK ] # 120.65 [+0.50] TEST: User specified metric on second device [ OK ] # 120.96 [+0.30] TEST: Delete of address on first device [ OK ] # 121.33 [+0.37] TEST: Modify metric of address [ OK ] # 121.78 [+0.46] TEST: Prefix route removed on link down [ OK ] # 122.11 [+0.33] TEST: Prefix route with metric on link up [ OK ] # 122.57 [+0.46] TEST: Set metric with peer route on local side [ OK ] # 122.71 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 123.05 [+0.33] TEST: Modify metric and peer address on local side [ OK ] # 123.19 [+0.14] TEST: Modify metric and peer address on peer side [ OK ] # 124.70 [+1.51] # 124.71 [+0.00] IPv4 prefix route tests # 127.66 [+2.96] TEST: Default metric [ OK ] # 128.12 [+0.46] TEST: User specified metric on first device [ OK ] # 128.59 [+0.47] TEST: User specified metric on second device [ OK ] # 128.92 [+0.32] TEST: Delete of address on first device [ OK ] # 129.21 [+0.29] TEST: Modify metric of address [ OK ] # 129.47 [+0.26] TEST: Prefix route removed on link down [ OK ] # 129.77 [+0.30] TEST: Prefix route with metric on link up [ OK ] # 130.30 [+0.53] TEST: Modify metric of .0/24 address [ OK ] # 130.75 [+0.45] TEST: Set metric of address with peer route [ OK ] # 131.06 [+0.31] TEST: Modify metric and peer address for peer route [ OK ] # 132.51 [+1.45] # 132.51 [+0.00] IPv6 routes with metrics # 140.01 [+7.50] TEST: Single path route with mtu metric [ OK ] # 140.49 [+0.48] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 140.99 [+0.50] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 141.33 [+0.34] TEST: MTU of second leg [ OK ] # 141.65 [+0.32] TEST: Multipath route with mtu metric [ OK ] # 141.99 [+0.34] TEST: Using route with mtu metric [ OK ] # 142.23 [+0.24] TEST: Invalid metric (fails metric_convert) [ OK ] # 144.88 [+2.64] # 144.88 [+0.00] IPv4 route add / append tests # 152.68 [+7.80] TEST: Single path route with mtu metric [ OK ] # 152.93 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 153.33 [+0.40] TEST: Using route with mtu metric [ OK ] # 153.58 [+0.25] TEST: Invalid metric (fails metric_convert) [ OK ] # 156.15 [+2.57] # 156.15 [+0.00] IPv4 route with IPv6 gateway tests # 165.39 [+9.24] TEST: Single path route with IPv6 gateway [ OK ] # 165.75 [+0.36] TEST: Single path route with IPv6 gateway - ping [ OK ] # 165.91 [+0.16] TEST: Single path route delete [ OK ] # 166.19 [+0.28] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 166.51 [+0.32] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 166.64 [+0.13] TEST: Multipath route delete exact match [ OK ] # 166.79 [+0.15] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 167.08 [+0.29] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 167.23 [+0.15] TEST: Multipath route delete exact match [ OK ] # 169.72 [+2.49] # 169.73 [+0.00] IPv4 rp_filter tests # 179.24 [+9.51] TEST: rp_filter passes local packets [ OK ] # 179.50 [+0.26] TEST: rp_filter passes loopback packets [ OK ] # 180.75 [+1.26] # 180.76 [+0.00] IPv4 delete address route tests # 185.33 [+4.58] Regular FIB info # 185.62 [+0.29] TEST: Route removed from VRF when source address deleted [ OK ] # 185.82 [+0.20] TEST: Route in default VRF not removed [ OK ] # 186.41 [+0.59] TEST: Route removed in default VRF when source address deleted [ OK ] # 186.60 [+0.19] TEST: Route in VRF is not removed by address delete [ OK ] # 186.60 [+0.00] Identical FIB info with different table ID # 186.87 [+0.27] TEST: Route removed from VRF when source address deleted [ OK ] # 186.98 [+0.11] TEST: Route in default VRF not removed [ OK ] # 187.53 [+0.55] TEST: Route removed in default VRF when source address deleted [ OK ] # 187.72 [+0.19] TEST: Route in VRF is not removed by address delete [ OK ] # 187.72 [+0.00] Table ID 0 # 188.01 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 189.80 [+1.79] # 189.80 [+0.00] IPv6 delete address route tests # 198.16 [+8.35] Single device using src address # 198.46 [+0.31] TEST: Prefsrc removed when src address removed on other device [ OK ] # 198.47 [+0.00] Two devices with the same source address # 198.77 [+0.31] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 199.04 [+0.27] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 199.05 [+0.00] VRF with single device using src address # 199.37 [+0.32] TEST: Prefsrc removed when src address removed on other device [ OK ] # 199.37 [+0.00] VRF with two devices using src address # 199.69 [+0.32] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 200.05 [+0.35] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 200.05 [+0.00] src address and nexthop dev in same VRF # 200.28 [+0.24] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 200.41 [+0.13] TEST: Prefsrc in default VRF not removed [ OK ] # 200.96 [+0.55] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 201.11 [+0.15] TEST: Prefsrc in default VRF removed [ OK ] # 201.11 [+0.00] src address and nexthop device in different VRF # 201.38 [+0.27] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 201.56 [+0.18] TEST: Prefsrc not removed in default VRF [ OK ] # 201.98 [+0.41] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 202.17 [+0.20] TEST: Prefsrc removed in default VRF [ OK ] # 202.18 [+0.00] Table ID 0 # 202.47 [+0.29] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 202.48 [+0.00] Link local source route # 202.75 [+0.27] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 203.14 [+0.39] TEST: Prefsrc removed when delete ll addr [ OK ] # 203.33 [+0.19] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 203.83 [+0.51] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 206.29 [+2.45] # 206.29 [+0.00] IPv4 mangling tests # 217.56 [+11.28] TEST: Connection with correct parameters [ OK ] # 217.88 [+0.32] TEST: Connection with incorrect parameters [ OK ] # 219.25 [+1.37] TEST: Connection with correct parameters - mangling [ OK ] # 220.33 [+1.08] TEST: Connection with correct parameters - no mangling [ OK ] # 220.43 [+0.10] TEST: Connection check - server side [ OK ] # 223.54 [+3.10] # 223.54 [+0.00] IPv6 mangling tests # 234.75 [+11.21] TEST: Connection with correct parameters [ OK ] # 235.17 [+0.42] TEST: Connection with incorrect parameters [ OK ] # 236.27 [+1.10] TEST: Connection with correct parameters - mangling [ OK ] # 237.36 [+1.09] TEST: Connection with correct parameters - no mangling [ OK ] # 237.49 [+0.13] TEST: Connection check - server side [ OK ] # 240.76 [+3.27] # 240.76 [+0.00] IPv4 broadcast neighbour tests # 244.62 [+3.85] TEST: Resolved neighbour for broadcast address [ OK ] # 244.76 [+0.14] TEST: Resolved neighbour for network broadcast address [ OK ] # 244.91 [+0.15] TEST: Unresolved neighbour for broadcast address [ OK ] # 245.08 [+0.17] TEST: Unresolved neighbour for network broadcast address [ OK ] # 248.34 [+3.25] # 248.34 [+0.00] Fib6 garbage collection test # 262.39 [+14.05] TEST: ipv6 route garbage collection [ OK ] # 276.74 [+14.34] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 291.07 [+14.33] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 305.34 [+14.28] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 320.18 [+14.83] TEST: ipv6 route garbage collection (RA message) [ OK ] # 321.29 [+1.11] # 321.29 [+0.00] IPv4 multipath list receive tests # 343.60 [+22.31] TEST: Multipath route hit ratio (1.00) [ OK ] # 346.14 [+2.53] # 346.14 [+0.00] IPv6 multipath list receive tests # 367.26 [+21.12] TEST: Multipath route hit ratio (1.00) [ OK ] # 369.91 [+2.65] # 369.91 [+0.00] Tests passed: 229 # 369.91 [+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__->