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.46 [+0.46] # 0.46 [+0.00] Single path route test # 1.60 [+1.15] Start point # 1.73 [+0.13] TEST: IPv4 fibmatch [ OK ] # 1.83 [+0.10] TEST: IPv6 fibmatch [ OK ] # 2.01 [+0.18] Nexthop device deleted # 2.11 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.21 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 2.91 [+0.69] # 2.91 [+0.00] Multipath route test # 5.06 [+2.15] Start point # 5.17 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.27 [+0.10] TEST: IPv6 fibmatch [ OK ] # 5.43 [+0.15] One nexthop device deleted # 5.53 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.64 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.78 [+0.15] Second nexthop device deleted # 5.89 [+0.11] TEST: IPv6 - no route [ OK ] # 6.54 [+0.65] # 6.54 [+0.00] Single path, admin down # 8.00 [+1.46] Start point # 8.10 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.20 [+0.09] TEST: IPv6 fibmatch [ OK ] # 8.31 [+0.12] Route deleted on down # 8.41 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.52 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.06 [+0.54] # 9.06 [+0.00] Admin down multipath # 11.13 [+2.08] Verify start point # 11.25 [+0.12] TEST: IPv4 fibmatch [ OK ] # 11.35 [+0.10] TEST: IPv6 fibmatch [ OK ] # 11.46 [+0.11] One device down, one up # 11.56 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 11.67 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.77 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 11.88 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 11.98 [+0.10] TEST: IPv4 flags on down device [ OK ] # 12.11 [+0.13] TEST: IPv6 flags on down device [ OK ] # 12.21 [+0.10] TEST: IPv4 flags on up device [ OK ] # 12.35 [+0.14] TEST: IPv6 flags on up device [ OK ] # 12.58 [+0.22] Other device down and up # 12.68 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.77 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 12.88 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.99 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 13.10 [+0.11] TEST: IPv4 flags on down device [ OK ] # 13.20 [+0.10] TEST: IPv6 flags on down device [ OK ] # 13.30 [+0.10] TEST: IPv4 flags on up device [ OK ] # 13.41 [+0.11] TEST: IPv6 flags on up device [ OK ] # 13.52 [+0.11] Both devices down # 13.63 [+0.11] TEST: IPv4 fibmatch [ OK ] # 13.72 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.43 [+0.71] # 14.43 [+0.00] Local carrier tests - single path # 15.99 [+1.56] Start point # 16.09 [+0.10] TEST: IPv4 fibmatch [ OK ] # 16.21 [+0.12] TEST: IPv6 fibmatch [ OK ] # 16.32 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 16.42 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 17.58 [+1.17] Carrier off on nexthop # 17.70 [+0.12] TEST: IPv4 fibmatch [ OK ] # 17.81 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.91 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 18.02 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 18.22 [+0.20] Route to local address with carrier down # 18.33 [+0.11] TEST: IPv4 fibmatch [ OK ] # 18.44 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.56 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 18.68 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 19.22 [+0.54] # 19.22 [+0.00] Single path route carrier test # 20.76 [+1.54] Start point # 20.87 [+0.12] TEST: IPv4 fibmatch [ OK ] # 20.98 [+0.10] TEST: IPv6 fibmatch [ OK ] # 21.07 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 21.19 [+0.12] TEST: IPv6 no linkdown flag [ OK ] # 22.36 [+1.17] Carrier down # 22.47 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.57 [+0.10] TEST: IPv6 fibmatch [ OK ] # 22.70 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 22.79 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 23.01 [+0.21] Second address added with carrier down # 23.12 [+0.11] TEST: IPv4 fibmatch [ OK ] # 23.22 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.32 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 23.42 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 28.50 [+5.08] # 28.50 [+0.00] IPv4 nexthop tests # 28.50 [+0.00] <<< write me >>> # 28.79 [+0.29] # 28.79 [+0.00] IPv6 nexthop tests # 28.90 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 29.02 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 29.14 [+0.12] TEST: Gateway is linklocal address [ OK ] # 29.26 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 29.36 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 29.48 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.60 [+0.12] TEST: Gateway can not be a local linklocal address [ OK ] # 29.75 [+0.14] TEST: Gateway can be local address in a VRF [ OK ] # 29.86 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.98 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 30.10 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 30.21 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 30.34 [+0.13] TEST: VRF route, gateway can not be a local address [ OK ] # 30.45 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.64 [+1.19] # 31.64 [+0.00] FIB rule with suppress_prefixlength # 33.88 [+2.24] TEST: FIB rule suppress test [ OK ] # 35.88 [+2.00] # 35.88 [+0.00] Fib6 info length calculation in route notify test # 40.44 [+4.56] TEST: ipv6 route add notify [ OK ] # 42.42 [+1.98] # 42.42 [+0.00] Fib4 info length calculation in route notify test # 46.93 [+4.51] TEST: ipv4 route add notify [ OK ] # 52.57 [+5.64] # 52.57 [+0.00] IPv6 route add / append tests # 53.02 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 53.48 [+0.46] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.93 [+0.45] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.55 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 55.02 [+0.47] TEST: Add multipath route [ OK ] # 55.49 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 56.05 [+0.56] TEST: Route add with different metrics [ OK ] # 56.30 [+0.25] TEST: Route delete with metric [ OK ] # 56.30 [+0.00] # 56.30 [+0.00] IPv6 route replace tests # 56.88 [+0.57] TEST: Single path with single path [ OK ] # 57.49 [+0.61] TEST: Single path with multipath [ OK ] # 58.07 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 58.64 [+0.57] TEST: Invalid nexthop [ OK ] # 59.10 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 59.73 [+0.63] TEST: Multipath with multipath [ OK ] # 60.31 [+0.57] TEST: Multipath with single path [ OK ] # 60.94 [+0.63] TEST: Multipath with single path via multipath attribute [ OK ] # 61.53 [+0.60] TEST: Multipath with dev-only [ OK ] # 62.13 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 62.73 [+0.60] TEST: Multipath - invalid second nexthop [ OK ] # 63.19 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 63.19 [+0.00] # 63.19 [+0.00] IPv6 route with dsfield tests # 63.41 [+0.22] TEST: Reject route with dsfield [ OK ] # 71.11 [+7.70] # 71.11 [+0.00] IPv4 route add / append tests # 71.57 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 72.01 [+0.44] TEST: Attempt to add duplicate route - dev only [ OK ] # 72.48 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 73.08 [+0.60] TEST: Add new nexthop for existing prefix [ OK ] # 73.64 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 74.23 [+0.59] TEST: Append nexthop to existing route - dev only [ OK ] # 74.84 [+0.61] TEST: Append nexthop to existing route - reject route [ OK ] # 75.30 [+0.46] TEST: Append nexthop to existing reject route - gw [ OK ] # 75.77 [+0.46] TEST: Append nexthop to existing reject route - dev only [ OK ] # 76.22 [+0.46] TEST: add multipath route [ OK ] # 76.67 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 77.24 [+0.57] TEST: Route add with different metrics [ OK ] # 77.49 [+0.24] TEST: Route delete with metric [ OK ] # 77.49 [+0.00] # 77.49 [+0.00] IPv4 route replace tests # 78.04 [+0.56] TEST: Single path with single path [ OK ] # 78.61 [+0.57] TEST: Single path with multipath [ OK ] # 79.18 [+0.56] TEST: Single path with reject route [ OK ] # 79.75 [+0.57] TEST: Single path with single path via multipath attribute [ OK ] # 80.33 [+0.57] TEST: Invalid nexthop [ OK ] # 80.80 [+0.47] TEST: Single path - replace of non-existent route [ OK ] # 81.36 [+0.56] TEST: Multipath with multipath [ OK ] # 81.93 [+0.57] TEST: Multipath with single path [ OK ] # 82.51 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 83.10 [+0.59] TEST: Multipath with reject route [ OK ] # 83.68 [+0.57] TEST: Multipath - invalid first nexthop [ OK ] # 84.27 [+0.59] TEST: Multipath - invalid second nexthop [ OK ] # 84.73 [+0.46] TEST: Multipath - replace of non-existent route [ OK ] # 86.53 [+1.81] TEST: Cached route removed from VRF port device [ OK ] # 86.54 [+0.00] # 86.54 [+0.00] IPv4 route with dsfield tests # 86.78 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 86.91 [+0.13] TEST: Reject route with dsfield 0x02 [ OK ] # 87.02 [+0.11] TEST: Reject route with dsfield 0x03 [ OK ] # 87.36 [+0.34] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 87.47 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 87.59 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 87.70 [+0.11] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 87.82 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 87.92 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 88.04 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 88.16 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 88.27 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 88.41 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 88.53 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 88.64 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 90.72 [+2.08] # 90.72 [+0.00] IPv6 prefix route tests # 93.11 [+2.39] TEST: Default metric [ OK ] # 93.51 [+0.39] TEST: User specified metric on first device [ OK ] # 93.89 [+0.38] TEST: User specified metric on second device [ OK ] # 94.11 [+0.22] TEST: Delete of address on first device [ OK ] # 94.34 [+0.23] TEST: Modify metric of address [ OK ] # 94.72 [+0.38] TEST: Prefix route removed on link down [ OK ] # 94.97 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 95.32 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 95.46 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 95.69 [+0.24] TEST: Modify metric and peer address on local side [ OK ] # 95.83 [+0.14] TEST: Modify metric and peer address on peer side [ OK ] # 97.06 [+1.23] # 97.06 [+0.00] IPv4 prefix route tests # 99.37 [+2.31] TEST: Default metric [ OK ] # 99.74 [+0.36] TEST: User specified metric on first device [ OK ] # 100.10 [+0.36] TEST: User specified metric on second device [ OK ] # 100.32 [+0.23] TEST: Delete of address on first device [ OK ] # 100.56 [+0.24] TEST: Modify metric of address [ OK ] # 100.78 [+0.22] TEST: Prefix route removed on link down [ OK ] # 101.02 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 101.47 [+0.45] TEST: Modify metric of .0/24 address [ OK ] # 101.81 [+0.34] TEST: Set metric of address with peer route [ OK ] # 102.05 [+0.24] TEST: Modify metric and peer address for peer route [ OK ] # 103.25 [+1.20] # 103.25 [+0.00] IPv6 routes with metrics # 109.11 [+5.86] TEST: Single path route with mtu metric [ OK ] # 109.50 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 109.88 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 110.13 [+0.25] TEST: MTU of second leg [ OK ] # 110.41 [+0.27] TEST: Multipath route with mtu metric [ OK ] # 110.69 [+0.28] TEST: Using route with mtu metric [ OK ] # 110.90 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 112.96 [+2.05] # 112.96 [+0.00] IPv4 route add / append tests # 118.83 [+5.87] TEST: Single path route with mtu metric [ OK ] # 119.05 [+0.23] TEST: Multipath route with mtu metric [ OK ] # 119.34 [+0.29] TEST: Using route with mtu metric [ OK ] # 119.53 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 121.60 [+2.06] # 121.60 [+0.00] IPv4 route with IPv6 gateway tests # 129.35 [+7.75] TEST: Single path route with IPv6 gateway [ OK ] # 129.66 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 129.77 [+0.12] TEST: Single path route delete [ OK ] # 129.99 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 130.24 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 130.37 [+0.12] TEST: Multipath route delete exact match [ OK ] # 130.48 [+0.11] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 130.71 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 130.84 [+0.12] TEST: Multipath route delete exact match [ OK ] # 132.88 [+2.04] # 132.88 [+0.00] IPv4 rp_filter tests # 140.43 [+7.55] TEST: rp_filter passes local packets [ OK ] # 140.60 [+0.17] TEST: rp_filter passes loopback packets [ OK ] # 141.56 [+0.96] # 141.56 [+0.00] IPv4 delete address route tests # 145.13 [+3.57] Regular FIB info # 145.33 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 145.43 [+0.10] TEST: Route in default VRF not removed [ OK ] # 145.86 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 145.96 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 145.96 [+0.00] Identical FIB info with different table ID # 146.16 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 146.27 [+0.11] TEST: Route in default VRF not removed [ OK ] # 146.70 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 146.81 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 146.81 [+0.00] Table ID 0 # 147.02 [+0.21] TEST: Route removed in default VRF when source address deleted [ OK ] # 148.18 [+1.16] # 148.18 [+0.00] IPv6 delete address route tests # 154.25 [+6.07] Single device using src address # 154.46 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 154.46 [+0.00] Two devices with the same source address # 154.66 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 154.86 [+0.20] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 154.86 [+0.00] VRF with single device using src address # 155.10 [+0.23] TEST: Prefsrc removed when src address removed on other device [ OK ] # 155.10 [+0.00] VRF with two devices using src address # 155.31 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 155.53 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 155.53 [+0.00] src address and nexthop dev in same VRF # 155.77 [+0.24] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 155.89 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 156.34 [+0.45] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 156.45 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 156.45 [+0.00] src address and nexthop device in different VRF # 156.68 [+0.23] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 156.78 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 157.12 [+0.34] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 157.25 [+0.13] TEST: Prefsrc removed in default VRF [ OK ] # 157.25 [+0.00] Table ID 0 # 157.44 [+0.19] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 157.44 [+0.00] Link local source route # 157.67 [+0.22] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 157.88 [+0.22] TEST: Prefsrc removed when delete ll addr [ OK ] # 157.99 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 158.32 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 160.22 [+1.90] # 160.22 [+0.00] IPv4 mangling tests # 169.42 [+9.21] TEST: Connection with correct parameters [ OK ] # 169.66 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 170.81 [+1.15] TEST: Connection with correct parameters - mangling [ OK ] # 171.76 [+0.96] TEST: Connection with correct parameters - no mangling [ OK ] # 171.84 [+0.08] TEST: Connection check - server side [ OK ] # 174.32 [+2.48] # 174.32 [+0.00] IPv6 mangling tests # 183.29 [+8.97] TEST: Connection with correct parameters [ OK ] # 183.57 [+0.28] TEST: Connection with incorrect parameters [ OK ] # 184.51 [+0.94] TEST: Connection with correct parameters - mangling [ OK ] # 185.48 [+0.98] TEST: Connection with correct parameters - no mangling [ OK ] # 185.55 [+0.07] TEST: Connection check - server side [ OK ] # 188.06 [+2.50] # 188.06 [+0.00] IPv4 broadcast neighbour tests # 191.06 [+3.01] TEST: Resolved neighbour for broadcast address [ OK ] # 191.18 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 191.30 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 191.42 [+0.13] TEST: Unresolved neighbour for network broadcast address [ OK ] # 193.83 [+2.41] # 193.83 [+0.00] Fib6 garbage collection test # 207.39 [+13.56] TEST: ipv6 route garbage collection [ OK ] # 221.21 [+13.82] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 235.07 [+13.85] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 249.06 [+13.99] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 263.70 [+14.64] TEST: ipv6 route garbage collection (RA message) [ OK ] # 264.61 [+0.92] # 264.61 [+0.00] IPv4 multipath list receive tests # 283.61 [+19.00] TEST: Multipath route hit ratio (1.00) [ OK ] # 285.82 [+2.21] # 285.82 [+0.00] IPv6 multipath list receive tests # 304.53 [+18.71] TEST: Multipath route hit ratio (1.00) [ OK ] # 306.68 [+2.16] # 306.68 [+0.00] Tests passed: 229 # 306.69 [+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__->