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.57 [+0.57] # 0.57 [+0.00] Single path route test # 1.94 [+1.36] Start point # 2.06 [+0.13] TEST: IPv4 fibmatch [ OK ] # 2.23 [+0.17] TEST: IPv6 fibmatch [ OK ] # 2.41 [+0.18] Nexthop device deleted # 2.55 [+0.14] TEST: IPv4 fibmatch - no route [ OK ] # 2.67 [+0.12] TEST: IPv6 fibmatch - no route [ OK ] # 3.48 [+0.81] # 3.48 [+0.00] Multipath route test # 6.19 [+2.71] Start point # 6.35 [+0.16] TEST: IPv4 fibmatch [ OK ] # 6.48 [+0.13] TEST: IPv6 fibmatch [ OK ] # 6.65 [+0.17] One nexthop device deleted # 6.77 [+0.12] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.90 [+0.13] TEST: IPv6 - multipath down to single path [ OK ] # 7.07 [+0.16] Second nexthop device deleted # 7.20 [+0.13] TEST: IPv6 - no route [ OK ] # 8.06 [+0.86] # 8.06 [+0.00] Single path, admin down # 9.98 [+1.92] Start point # 10.15 [+0.17] TEST: IPv4 fibmatch [ OK ] # 10.29 [+0.14] TEST: IPv6 fibmatch [ OK ] # 10.47 [+0.19] Route deleted on down # 10.62 [+0.15] TEST: IPv4 fibmatch [ OK ] # 10.75 [+0.13] TEST: IPv6 fibmatch [ OK ] # 11.43 [+0.68] # 11.43 [+0.00] Admin down multipath # 14.65 [+3.22] Verify start point # 14.80 [+0.15] TEST: IPv4 fibmatch [ OK ] # 14.93 [+0.14] TEST: IPv6 fibmatch [ OK ] # 15.08 [+0.15] One device down, one up # 15.21 [+0.13] TEST: IPv4 fibmatch on down device [ OK ] # 15.37 [+0.16] TEST: IPv6 fibmatch on down device [ OK ] # 15.51 [+0.14] TEST: IPv4 fibmatch on up device [ OK ] # 15.64 [+0.14] TEST: IPv6 fibmatch on up device [ OK ] # 15.81 [+0.16] TEST: IPv4 flags on down device [ OK ] # 15.99 [+0.18] TEST: IPv6 flags on down device [ OK ] # 16.15 [+0.16] TEST: IPv4 flags on up device [ OK ] # 16.33 [+0.17] TEST: IPv6 flags on up device [ OK ] # 16.64 [+0.31] Other device down and up # 16.83 [+0.19] TEST: IPv4 fibmatch on down device [ OK ] # 17.00 [+0.17] TEST: IPv6 fibmatch on down device [ OK ] # 17.15 [+0.15] TEST: IPv4 fibmatch on up device [ OK ] # 17.32 [+0.18] TEST: IPv6 fibmatch on up device [ OK ] # 17.48 [+0.16] TEST: IPv4 flags on down device [ OK ] # 17.63 [+0.15] TEST: IPv6 flags on down device [ OK ] # 17.80 [+0.16] TEST: IPv4 flags on up device [ OK ] # 17.97 [+0.18] TEST: IPv6 flags on up device [ OK ] # 18.12 [+0.15] Both devices down # 18.26 [+0.13] TEST: IPv4 fibmatch [ OK ] # 18.43 [+0.17] TEST: IPv6 fibmatch [ OK ] # 19.37 [+0.94] # 19.37 [+0.00] Local carrier tests - single path # 21.54 [+2.17] Start point # 21.68 [+0.14] TEST: IPv4 fibmatch [ OK ] # 21.84 [+0.16] TEST: IPv6 fibmatch [ OK ] # 21.98 [+0.14] TEST: IPv4 - no linkdown flag [ OK ] # 22.16 [+0.18] TEST: IPv6 - no linkdown flag [ OK ] # 23.40 [+1.24] Carrier off on nexthop # 23.55 [+0.15] TEST: IPv4 fibmatch [ OK ] # 23.69 [+0.14] TEST: IPv6 fibmatch [ OK ] # 23.89 [+0.20] TEST: IPv4 - linkdown flag set [ OK ] # 24.04 [+0.15] TEST: IPv6 - linkdown flag set [ OK ] # 24.31 [+0.27] Route to local address with carrier down # 24.44 [+0.14] TEST: IPv4 fibmatch [ OK ] # 24.62 [+0.18] TEST: IPv6 fibmatch [ OK ] # 24.76 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 24.90 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 25.54 [+0.64] # 25.55 [+0.00] Single path route carrier test # 27.48 [+1.94] Start point # 27.66 [+0.18] TEST: IPv4 fibmatch [ OK ] # 27.78 [+0.12] TEST: IPv6 fibmatch [ OK ] # 27.89 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 28.00 [+0.11] TEST: IPv6 no linkdown flag [ OK ] # 29.19 [+1.19] Carrier down # 29.33 [+0.14] TEST: IPv4 fibmatch [ OK ] # 29.47 [+0.14] TEST: IPv6 fibmatch [ OK ] # 29.58 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 29.73 [+0.15] TEST: IPv6 linkdown flag set [ OK ] # 29.96 [+0.23] Second address added with carrier down # 30.08 [+0.12] TEST: IPv4 fibmatch [ OK ] # 30.19 [+0.11] TEST: IPv6 fibmatch [ OK ] # 30.32 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 30.46 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 36.01 [+5.55] # 36.01 [+0.00] IPv4 nexthop tests # 36.01 [+0.00] <<< write me >>> # 36.32 [+0.32] # 36.33 [+0.00] IPv6 nexthop tests # 36.46 [+0.13] TEST: Directly connected nexthop, unicast address [ OK ] # 36.59 [+0.13] TEST: Directly connected nexthop, unicast address with device [ OK ] # 36.71 [+0.13] TEST: Gateway is linklocal address [ OK ] # 36.83 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 36.95 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 37.09 [+0.14] TEST: Gateway can not be local unicast address, with device [ OK ] # 37.23 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 37.36 [+0.13] TEST: Gateway can be local address in a VRF [ OK ] # 37.49 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 37.62 [+0.13] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 37.75 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 37.88 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 37.99 [+0.12] TEST: VRF route, gateway can not be a local address [ OK ] # 38.13 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 39.41 [+1.28] # 39.41 [+0.00] FIB rule with suppress_prefixlength # 41.78 [+2.37] TEST: FIB rule suppress test [ OK ] # 43.88 [+2.10] # 43.88 [+0.00] Fib6 info length calculation in route notify test # 48.70 [+4.82] TEST: ipv6 route add notify [ OK ] # 50.86 [+2.16] # 50.87 [+0.00] Fib4 info length calculation in route notify test # 55.61 [+4.74] TEST: ipv4 route add notify [ OK ] # 61.43 [+5.82] # 61.43 [+0.00] IPv6 route add / append tests # 61.90 [+0.47] TEST: Attempt to add duplicate route - gw [ OK ] # 62.38 [+0.48] TEST: Attempt to add duplicate route - dev only [ OK ] # 62.84 [+0.46] TEST: Attempt to add duplicate route - reject route [ OK ] # 63.47 [+0.63] TEST: Append nexthop to existing route - gw [ OK ] # 63.96 [+0.50] TEST: Add multipath route [ OK ] # 64.44 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 65.03 [+0.59] TEST: Route add with different metrics [ OK ] # 65.30 [+0.27] TEST: Route delete with metric [ OK ] # 65.30 [+0.00] # 65.30 [+0.00] IPv6 route replace tests # 65.90 [+0.60] TEST: Single path with single path [ OK ] # 66.54 [+0.64] TEST: Single path with multipath [ OK ] # 67.13 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 67.74 [+0.61] TEST: Invalid nexthop [ OK ] # 68.22 [+0.48] TEST: Single path - replace of non-existent route [ OK ] # 68.83 [+0.60] TEST: Multipath with multipath [ OK ] # 69.43 [+0.60] TEST: Multipath with single path [ OK ] # 70.04 [+0.62] TEST: Multipath with single path via multipath attribute [ OK ] # 70.66 [+0.61] TEST: Multipath with dev-only [ OK ] # 71.26 [+0.61] TEST: Multipath - invalid first nexthop [ OK ] # 71.90 [+0.64] TEST: Multipath - invalid second nexthop [ OK ] # 72.37 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 72.37 [+0.00] # 72.37 [+0.00] IPv6 route with dsfield tests # 72.61 [+0.24] TEST: Reject route with dsfield [ OK ] # 80.47 [+7.86] # 80.47 [+0.00] IPv4 route add / append tests # 80.96 [+0.49] TEST: Attempt to add duplicate route - gw [ OK ] # 81.44 [+0.48] TEST: Attempt to add duplicate route - dev only [ OK ] # 81.90 [+0.46] TEST: Attempt to add duplicate route - reject route [ OK ] # 82.48 [+0.58] TEST: Add new nexthop for existing prefix [ OK ] # 83.06 [+0.58] TEST: Append nexthop to existing route - gw [ OK ] # 83.66 [+0.60] TEST: Append nexthop to existing route - dev only [ OK ] # 84.21 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 84.70 [+0.49] TEST: Append nexthop to existing reject route - gw [ OK ] # 85.17 [+0.47] TEST: Append nexthop to existing reject route - dev only [ OK ] # 85.65 [+0.49] TEST: add multipath route [ OK ] # 86.12 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 86.72 [+0.60] TEST: Route add with different metrics [ OK ] # 86.96 [+0.24] TEST: Route delete with metric [ OK ] # 86.96 [+0.00] # 86.96 [+0.00] IPv4 route replace tests # 87.55 [+0.58] TEST: Single path with single path [ OK ] # 88.12 [+0.58] TEST: Single path with multipath [ OK ] # 88.73 [+0.61] TEST: Single path with reject route [ OK ] # 89.34 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 89.94 [+0.60] TEST: Invalid nexthop [ OK ] # 90.43 [+0.50] TEST: Single path - replace of non-existent route [ OK ] # 91.04 [+0.60] TEST: Multipath with multipath [ OK ] # 91.64 [+0.60] TEST: Multipath with single path [ OK ] # 92.22 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 92.85 [+0.63] TEST: Multipath with reject route [ OK ] # 93.45 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 94.05 [+0.59] TEST: Multipath - invalid second nexthop [ OK ] # 94.52 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 96.34 [+1.82] TEST: Cached route removed from VRF port device [ OK ] # 96.34 [+0.00] # 96.34 [+0.00] IPv4 route with dsfield tests # 96.59 [+0.25] TEST: Reject route with dsfield 0x01 [ OK ] # 96.70 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 96.84 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 97.19 [+0.35] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 97.30 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 97.40 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 97.53 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 97.66 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 97.77 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 97.86 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 97.99 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 98.10 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 98.22 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 98.36 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 98.46 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 100.67 [+2.21] # 100.67 [+0.00] IPv6 prefix route tests # 103.08 [+2.41] TEST: Default metric [ OK ] # 103.45 [+0.37] TEST: User specified metric on first device [ OK ] # 103.83 [+0.38] TEST: User specified metric on second device [ OK ] # 104.08 [+0.25] TEST: Delete of address on first device [ OK ] # 104.32 [+0.24] TEST: Modify metric of address [ OK ] # 104.72 [+0.40] TEST: Prefix route removed on link down [ OK ] # 104.98 [+0.26] TEST: Prefix route with metric on link up [ OK ] # 105.34 [+0.37] TEST: Set metric with peer route on local side [ OK ] # 105.47 [+0.13] TEST: Set metric with peer route on peer side [ OK ] # 105.73 [+0.26] TEST: Modify metric and peer address on local side [ OK ] # 105.86 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 107.09 [+1.23] # 107.09 [+0.00] IPv4 prefix route tests # 109.51 [+2.42] TEST: Default metric [ OK ] # 109.88 [+0.37] TEST: User specified metric on first device [ OK ] # 110.26 [+0.39] TEST: User specified metric on second device [ OK ] # 110.51 [+0.25] TEST: Delete of address on first device [ OK ] # 110.75 [+0.24] TEST: Modify metric of address [ OK ] # 110.99 [+0.23] TEST: Prefix route removed on link down [ OK ] # 111.26 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 111.74 [+0.48] TEST: Modify metric of .0/24 address [ OK ] # 112.11 [+0.38] TEST: Set metric of address with peer route [ OK ] # 112.37 [+0.25] TEST: Modify metric and peer address for peer route [ OK ] # 113.67 [+1.30] # 113.67 [+0.00] IPv6 routes with metrics # 119.58 [+5.91] TEST: Single path route with mtu metric [ OK ] # 119.98 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 120.34 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 120.59 [+0.25] TEST: MTU of second leg [ OK ] # 120.83 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 121.13 [+0.30] TEST: Using route with mtu metric [ OK ] # 121.34 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 123.40 [+2.06] # 123.40 [+0.00] IPv4 route add / append tests # 129.30 [+5.90] TEST: Single path route with mtu metric [ OK ] # 129.54 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 129.84 [+0.30] TEST: Using route with mtu metric [ OK ] # 130.04 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 132.07 [+2.03] # 132.07 [+0.00] IPv4 route with IPv6 gateway tests # 139.91 [+7.84] TEST: Single path route with IPv6 gateway [ OK ] # 140.22 [+0.31] TEST: Single path route with IPv6 gateway - ping [ OK ] # 140.34 [+0.12] TEST: Single path route delete [ OK ] # 140.56 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 140.81 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 140.94 [+0.13] TEST: Multipath route delete exact match [ OK ] # 141.07 [+0.14] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 141.30 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 141.42 [+0.12] TEST: Multipath route delete exact match [ OK ] # 143.42 [+1.99] # 143.42 [+0.00] IPv4 rp_filter tests # 151.05 [+7.64] TEST: rp_filter passes local packets [ OK ] # 151.25 [+0.20] TEST: rp_filter passes loopback packets [ OK ] # 152.20 [+0.94] # 152.20 [+0.00] IPv4 delete address route tests # 155.83 [+3.63] Regular FIB info # 156.06 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 156.18 [+0.13] TEST: Route in default VRF not removed [ OK ] # 156.61 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 156.72 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 156.72 [+0.00] Identical FIB info with different table ID # 156.93 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 157.04 [+0.12] TEST: Route in default VRF not removed [ OK ] # 157.49 [+0.45] TEST: Route removed in default VRF when source address deleted [ OK ] # 157.62 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 157.62 [+0.00] Table ID 0 # 157.85 [+0.23] TEST: Route removed in default VRF when source address deleted [ OK ] # 159.05 [+1.20] # 159.05 [+0.00] IPv6 delete address route tests # 165.24 [+6.20] Single device using src address # 165.46 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 165.46 [+0.00] Two devices with the same source address # 165.69 [+0.23] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 165.91 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 165.91 [+0.00] VRF with single device using src address # 166.13 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 166.13 [+0.00] VRF with two devices using src address # 166.38 [+0.25] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 166.59 [+0.21] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 166.59 [+0.00] src address and nexthop dev in same VRF # 166.82 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 166.94 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 167.37 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 167.49 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 167.50 [+0.00] src address and nexthop device in different VRF # 167.71 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 167.83 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 168.18 [+0.34] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 168.31 [+0.13] TEST: Prefsrc removed in default VRF [ OK ] # 168.31 [+0.00] Table ID 0 # 168.52 [+0.21] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 168.52 [+0.00] Link local source route # 168.76 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 169.00 [+0.24] TEST: Prefsrc removed when delete ll addr [ OK ] # 169.12 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 169.44 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 171.41 [+1.96] # 171.41 [+0.00] IPv4 mangling tests # 180.48 [+9.07] TEST: Connection with correct parameters [ OK ] # 180.72 [+0.24] TEST: Connection with incorrect parameters [ OK ] # 181.75 [+1.04] TEST: Connection with correct parameters - mangling [ OK ] # 182.70 [+0.94] TEST: Connection with correct parameters - no mangling [ OK ] # 182.77 [+0.08] TEST: Connection check - server side [ OK ] # 185.18 [+2.41] # 185.18 [+0.00] IPv6 mangling tests # 194.24 [+9.06] TEST: Connection with correct parameters [ OK ] # 194.51 [+0.27] TEST: Connection with incorrect parameters [ OK ] # 195.47 [+0.95] TEST: Connection with correct parameters - mangling [ OK ] # 196.45 [+0.99] TEST: Connection with correct parameters - no mangling [ OK ] # 196.54 [+0.08] TEST: Connection check - server side [ OK ] # 198.97 [+2.43] # 198.97 [+0.00] IPv4 broadcast neighbour tests # 201.91 [+2.94] TEST: Resolved neighbour for broadcast address [ OK ] # 202.03 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 202.16 [+0.13] TEST: Unresolved neighbour for broadcast address [ OK ] # 202.29 [+0.14] TEST: Unresolved neighbour for network broadcast address [ OK ] # 204.67 [+2.38] # 204.67 [+0.00] Fib6 garbage collection test # 218.26 [+13.59] TEST: ipv6 route garbage collection [ OK ] # 232.09 [+13.82] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 245.95 [+13.87] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 259.94 [+13.98] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 274.54 [+14.60] TEST: ipv6 route garbage collection (RA message) [ OK ] # 275.45 [+0.90] # 275.45 [+0.00] IPv4 multipath list receive tests # 295.25 [+19.80] TEST: Multipath route hit ratio (1.00) [ OK ] # 297.54 [+2.29] # 297.54 [+0.00] IPv6 multipath list receive tests # 316.65 [+19.10] TEST: Multipath route hit ratio (1.00) [ OK ] # 318.97 [+2.32] # 318.97 [+0.00] Tests passed: 229 # 318.97 [+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__->