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.50 [+0.50] # 0.50 [+0.00] Single path route test # 1.64 [+1.14] Start point # 1.75 [+0.11] TEST: IPv4 fibmatch [ OK ] # 1.85 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.99 [+0.14] Nexthop device deleted # 2.09 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.20 [+0.11] TEST: IPv6 fibmatch - no route [ OK ] # 2.88 [+0.68] # 2.89 [+0.00] Multipath route test # 4.92 [+2.04] Start point # 5.02 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.14 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.28 [+0.14] One nexthop device deleted # 5.39 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.49 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.62 [+0.14] Second nexthop device deleted # 5.73 [+0.11] TEST: IPv6 - no route [ OK ] # 6.41 [+0.68] # 6.41 [+0.00] Single path, admin down # 7.84 [+1.43] Start point # 7.95 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.05 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.16 [+0.11] Route deleted on down # 8.27 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.37 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.92 [+0.54] # 8.92 [+0.00] Admin down multipath # 10.95 [+2.04] Verify start point # 11.06 [+0.11] TEST: IPv4 fibmatch [ OK ] # 11.16 [+0.10] TEST: IPv6 fibmatch [ OK ] # 11.27 [+0.11] One device down, one up # 11.37 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 11.47 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.58 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 11.69 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 11.80 [+0.11] TEST: IPv4 flags on down device [ OK ] # 11.91 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.02 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.15 [+0.13] TEST: IPv6 flags on up device [ OK ] # 12.36 [+0.21] Other device down and up # 12.46 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.57 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 12.68 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.79 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.90 [+0.11] TEST: IPv4 flags on down device [ OK ] # 13.01 [+0.11] TEST: IPv6 flags on down device [ OK ] # 13.13 [+0.12] TEST: IPv4 flags on up device [ OK ] # 13.26 [+0.13] TEST: IPv6 flags on up device [ OK ] # 13.36 [+0.10] Both devices down # 13.46 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 14.26 [+0.70] # 14.26 [+0.00] Local carrier tests - single path # 15.79 [+1.53] Start point # 15.90 [+0.11] TEST: IPv4 fibmatch [ OK ] # 16.00 [+0.11] TEST: IPv6 fibmatch [ OK ] # 16.10 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 16.23 [+0.13] TEST: IPv6 - no linkdown flag [ OK ] # 17.40 [+1.17] Carrier off on nexthop # 17.50 [+0.11] TEST: IPv4 fibmatch [ OK ] # 17.62 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.72 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 17.83 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 18.04 [+0.21] Route to local address with carrier down # 18.14 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.25 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.34 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 18.46 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 19.03 [+0.57] # 19.03 [+0.00] Single path route carrier test # 20.58 [+1.54] Start point # 20.69 [+0.11] TEST: IPv4 fibmatch [ OK ] # 20.78 [+0.10] TEST: IPv6 fibmatch [ OK ] # 20.90 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 20.99 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 22.15 [+1.16] Carrier down # 22.26 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.37 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.47 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 22.59 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 22.80 [+0.21] Second address added with carrier down # 22.92 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.02 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.11 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 23.22 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 28.25 [+5.03] # 28.25 [+0.00] IPv4 nexthop tests # 28.25 [+0.00] <<< write me >>> # 28.53 [+0.28] # 28.53 [+0.00] IPv6 nexthop tests # 28.64 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 28.76 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.86 [+0.11] TEST: Gateway is linklocal address [ OK ] # 29.00 [+0.13] TEST: Gateway is linklocal address, no device [ OK ] # 29.11 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 29.23 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.36 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 29.48 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 29.60 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.70 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.82 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 29.95 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 30.05 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 30.16 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.22 [+1.06] # 31.22 [+0.00] FIB rule with suppress_prefixlength # 33.41 [+2.19] TEST: FIB rule suppress test [ OK ] # 35.38 [+1.97] # 35.38 [+0.00] Fib6 info length calculation in route notify test # 39.87 [+4.49] TEST: ipv6 route add notify [ OK ] # 41.91 [+2.04] # 41.91 [+0.00] Fib4 info length calculation in route notify test # 46.40 [+4.50] TEST: ipv4 route add notify [ OK ] # 52.21 [+5.81] # 52.21 [+0.00] IPv6 route add / append tests # 52.69 [+0.47] TEST: Attempt to add duplicate route - gw [ OK ] # 53.15 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.63 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.23 [+0.59] TEST: Append nexthop to existing route - gw [ OK ] # 54.72 [+0.49] TEST: Add multipath route [ OK ] # 55.18 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 55.77 [+0.59] TEST: Route add with different metrics [ OK ] # 56.05 [+0.28] TEST: Route delete with metric [ OK ] # 56.05 [+0.00] # 56.05 [+0.00] IPv6 route replace tests # 56.65 [+0.60] TEST: Single path with single path [ OK ] # 57.27 [+0.63] TEST: Single path with multipath [ OK ] # 57.88 [+0.61] TEST: Single path with single path via multipath attribute [ OK ] # 58.49 [+0.60] TEST: Invalid nexthop [ OK ] # 58.97 [+0.49] TEST: Single path - replace of non-existent route [ OK ] # 59.57 [+0.60] TEST: Multipath with multipath [ OK ] # 60.21 [+0.63] TEST: Multipath with single path [ OK ] # 60.83 [+0.62] TEST: Multipath with single path via multipath attribute [ OK ] # 61.50 [+0.67] TEST: Multipath with dev-only [ OK ] # 62.14 [+0.65] TEST: Multipath - invalid first nexthop [ OK ] # 62.76 [+0.62] TEST: Multipath - invalid second nexthop [ OK ] # 63.23 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 63.23 [+0.00] # 63.23 [+0.00] IPv6 route with dsfield tests # 63.47 [+0.24] TEST: Reject route with dsfield [ OK ] # 71.10 [+7.63] # 71.10 [+0.00] IPv4 route add / append tests # 71.57 [+0.47] TEST: Attempt to add duplicate route - gw [ OK ] # 72.05 [+0.48] TEST: Attempt to add duplicate route - dev only [ OK ] # 72.52 [+0.47] TEST: Attempt to add duplicate route - reject route [ OK ] # 73.10 [+0.58] TEST: Add new nexthop for existing prefix [ OK ] # 73.67 [+0.57] TEST: Append nexthop to existing route - gw [ OK ] # 74.25 [+0.58] TEST: Append nexthop to existing route - dev only [ OK ] # 74.84 [+0.59] TEST: Append nexthop to existing route - reject route [ OK ] # 75.32 [+0.49] TEST: Append nexthop to existing reject route - gw [ OK ] # 75.80 [+0.48] TEST: Append nexthop to existing reject route - dev only [ OK ] # 76.28 [+0.48] TEST: add multipath route [ OK ] # 76.74 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 77.34 [+0.60] TEST: Route add with different metrics [ OK ] # 77.60 [+0.26] TEST: Route delete with metric [ OK ] # 77.60 [+0.00] # 77.60 [+0.00] IPv4 route replace tests # 78.18 [+0.58] TEST: Single path with single path [ OK ] # 78.78 [+0.60] TEST: Single path with multipath [ OK ] # 79.36 [+0.58] TEST: Single path with reject route [ OK ] # 79.94 [+0.58] TEST: Single path with single path via multipath attribute [ OK ] # 80.53 [+0.59] TEST: Invalid nexthop [ OK ] # 80.99 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 81.59 [+0.60] TEST: Multipath with multipath [ OK ] # 82.17 [+0.58] TEST: Multipath with single path [ OK ] # 82.77 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 83.36 [+0.59] TEST: Multipath with reject route [ OK ] # 83.95 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 84.56 [+0.60] TEST: Multipath - invalid second nexthop [ OK ] # 85.02 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 86.87 [+1.85] TEST: Cached route removed from VRF port device [ OK ] # 86.88 [+0.00] # 86.88 [+0.00] IPv4 route with dsfield tests # 87.13 [+0.26] TEST: Reject route with dsfield 0x01 [ OK ] # 87.27 [+0.13] TEST: Reject route with dsfield 0x02 [ OK ] # 87.37 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 87.72 [+0.35] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 87.85 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 87.99 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 88.12 [+0.13] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 88.23 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 88.35 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 88.47 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 88.59 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 88.69 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 88.80 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 88.90 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 89.03 [+0.13] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 91.12 [+2.09] # 91.12 [+0.00] IPv6 prefix route tests # 93.73 [+2.61] TEST: Default metric [ OK ] # 94.13 [+0.40] TEST: User specified metric on first device [ OK ] # 94.53 [+0.40] TEST: User specified metric on second device [ OK ] # 94.78 [+0.25] TEST: Delete of address on first device [ OK ] # 95.03 [+0.24] TEST: Modify metric of address [ OK ] # 95.45 [+0.42] TEST: Prefix route removed on link down [ OK ] # 95.69 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 96.08 [+0.39] TEST: Set metric with peer route on local side [ OK ] # 96.23 [+0.15] TEST: Set metric with peer route on peer side [ OK ] # 96.48 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 96.60 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 97.80 [+1.20] # 97.80 [+0.00] IPv4 prefix route tests # 100.19 [+2.40] TEST: Default metric [ OK ] # 100.55 [+0.36] TEST: User specified metric on first device [ OK ] # 100.93 [+0.38] TEST: User specified metric on second device [ OK ] # 101.21 [+0.28] TEST: Delete of address on first device [ OK ] # 101.43 [+0.22] TEST: Modify metric of address [ OK ] # 101.72 [+0.28] TEST: Prefix route removed on link down [ OK ] # 101.96 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 102.44 [+0.47] TEST: Modify metric of .0/24 address [ OK ] # 102.80 [+0.36] TEST: Set metric of address with peer route [ OK ] # 103.04 [+0.24] TEST: Modify metric and peer address for peer route [ OK ] # 104.24 [+1.21] # 104.24 [+0.00] IPv6 routes with metrics # 109.99 [+5.75] TEST: Single path route with mtu metric [ OK ] # 110.37 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 110.72 [+0.35] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 110.96 [+0.24] TEST: MTU of second leg [ OK ] # 111.22 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 111.51 [+0.29] TEST: Using route with mtu metric [ OK ] # 111.73 [+0.22] TEST: Invalid metric (fails metric_convert) [ OK ] # 113.81 [+2.09] # 113.81 [+0.00] IPv4 route add / append tests # 119.90 [+6.08] TEST: Single path route with mtu metric [ OK ] # 120.12 [+0.22] TEST: Multipath route with mtu metric [ OK ] # 120.43 [+0.31] TEST: Using route with mtu metric [ OK ] # 120.62 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 122.64 [+2.03] # 122.64 [+0.00] IPv4 route with IPv6 gateway tests # 130.36 [+7.71] TEST: Single path route with IPv6 gateway [ OK ] # 130.65 [+0.29] TEST: Single path route with IPv6 gateway - ping [ OK ] # 130.75 [+0.11] TEST: Single path route delete [ OK ] # 130.97 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 131.22 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 131.33 [+0.12] TEST: Multipath route delete exact match [ OK ] # 131.45 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 131.70 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 131.82 [+0.12] TEST: Multipath route delete exact match [ OK ] # 133.89 [+2.07] # 133.89 [+0.00] IPv4 rp_filter tests # 141.45 [+7.55] TEST: rp_filter passes local packets [ OK ] # 141.63 [+0.18] TEST: rp_filter passes loopback packets [ OK ] # 142.61 [+0.98] # 142.61 [+0.00] IPv4 delete address route tests # 146.18 [+3.57] Regular FIB info # 146.40 [+0.22] TEST: Route removed from VRF when source address deleted [ OK ] # 146.50 [+0.10] TEST: Route in default VRF not removed [ OK ] # 146.92 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 147.03 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 147.04 [+0.00] Identical FIB info with different table ID # 147.27 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 147.40 [+0.13] TEST: Route in default VRF not removed [ OK ] # 147.84 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 147.95 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 147.95 [+0.00] Table ID 0 # 148.16 [+0.21] TEST: Route removed in default VRF when source address deleted [ OK ] # 149.39 [+1.23] # 149.39 [+0.00] IPv6 delete address route tests # 155.54 [+6.15] Single device using src address # 155.75 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 155.75 [+0.00] Two devices with the same source address # 155.96 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 156.20 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 156.20 [+0.00] VRF with single device using src address # 156.42 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 156.42 [+0.00] VRF with two devices using src address # 156.62 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 156.83 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 156.84 [+0.00] src address and nexthop dev in same VRF # 157.07 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 157.19 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 157.61 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 157.73 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 157.74 [+0.00] src address and nexthop device in different VRF # 157.94 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 158.06 [+0.11] TEST: Prefsrc not removed in default VRF [ OK ] # 158.37 [+0.31] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 158.48 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 158.48 [+0.00] Table ID 0 # 158.69 [+0.21] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 158.69 [+0.00] Link local source route # 158.94 [+0.25] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 159.18 [+0.24] TEST: Prefsrc removed when delete ll addr [ OK ] # 159.28 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 159.61 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 161.55 [+1.94] # 161.55 [+0.00] IPv4 mangling tests # 170.93 [+9.37] TEST: Connection with correct parameters [ OK ] # 171.15 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 172.29 [+1.13] TEST: Connection with correct parameters - mangling [ OK ] # 173.23 [+0.94] TEST: Connection with correct parameters - no mangling [ OK ] # 173.32 [+0.09] TEST: Connection check - server side [ OK ] # 175.83 [+2.51] # 175.83 [+0.00] IPv6 mangling tests # 184.85 [+9.02] TEST: Connection with correct parameters [ OK ] # 185.11 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 186.08 [+0.97] TEST: Connection with correct parameters - mangling [ OK ] # 187.06 [+0.98] TEST: Connection with correct parameters - no mangling [ OK ] # 187.13 [+0.07] TEST: Connection check - server side [ OK ] # 189.61 [+2.48] # 189.61 [+0.00] IPv4 broadcast neighbour tests # 192.45 [+2.84] TEST: Resolved neighbour for broadcast address [ OK ] # 192.56 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 192.67 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 192.79 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 195.14 [+2.35] # 195.14 [+0.00] Fib6 garbage collection test # 208.66 [+13.52] TEST: ipv6 route garbage collection [ OK ] # 222.45 [+13.79] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 236.25 [+13.80] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 250.17 [+13.93] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 264.75 [+14.58] TEST: ipv6 route garbage collection (RA message) [ OK ] # 265.65 [+0.90] # 265.65 [+0.00] IPv4 multipath list receive tests # 284.54 [+18.89] TEST: Multipath route hit ratio (1.00) [ OK ] # 286.77 [+2.23] # 286.77 [+0.00] IPv6 multipath list receive tests # 305.39 [+18.62] TEST: Multipath route hit ratio (1.00) [ OK ] # 307.47 [+2.08] # 307.47 [+0.00] Tests passed: 229 # 307.47 [+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__->