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.71 [+0.71] # 0.71 [+0.00] Single path route test # 2.13 [+1.42] Start point # 2.25 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.41 [+0.16] TEST: IPv6 fibmatch [ OK ] # 2.56 [+0.15] Nexthop device deleted # 2.69 [+0.13] TEST: IPv4 fibmatch - no route [ OK ] # 2.82 [+0.14] TEST: IPv6 fibmatch - no route [ OK ] # 3.62 [+0.79] # 3.62 [+0.00] Multipath route test # 5.80 [+2.18] Start point # 5.93 [+0.13] TEST: IPv4 fibmatch [ OK ] # 6.03 [+0.10] TEST: IPv6 fibmatch [ OK ] # 6.18 [+0.15] One nexthop device deleted # 6.28 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.39 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 6.53 [+0.14] Second nexthop device deleted # 6.63 [+0.10] TEST: IPv6 - no route [ OK ] # 7.31 [+0.68] # 7.31 [+0.00] Single path, admin down # 8.86 [+1.55] Start point # 8.96 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.07 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.18 [+0.11] Route deleted on down # 9.30 [+0.12] TEST: IPv4 fibmatch [ OK ] # 9.40 [+0.10] TEST: IPv6 fibmatch [ OK ] # 10.15 [+0.75] # 10.15 [+0.00] Admin down multipath # 12.53 [+2.38] Verify start point # 12.63 [+0.10] TEST: IPv4 fibmatch [ OK ] # 12.73 [+0.11] TEST: IPv6 fibmatch [ OK ] # 12.83 [+0.10] One device down, one up # 12.93 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 13.03 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 13.13 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 13.24 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 13.39 [+0.15] TEST: IPv4 flags on down device [ OK ] # 13.51 [+0.12] TEST: IPv6 flags on down device [ OK ] # 13.60 [+0.09] TEST: IPv4 flags on up device [ OK ] # 13.73 [+0.13] TEST: IPv6 flags on up device [ OK ] # 13.95 [+0.21] Other device down and up # 14.05 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 14.15 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 14.25 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 14.35 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 14.45 [+0.10] TEST: IPv4 flags on down device [ OK ] # 14.56 [+0.11] TEST: IPv6 flags on down device [ OK ] # 14.68 [+0.12] TEST: IPv4 flags on up device [ OK ] # 14.78 [+0.09] TEST: IPv6 flags on up device [ OK ] # 14.88 [+0.10] Both devices down # 14.98 [+0.10] TEST: IPv4 fibmatch [ OK ] # 15.09 [+0.11] TEST: IPv6 fibmatch [ OK ] # 15.74 [+0.64] # 15.74 [+0.00] Local carrier tests - single path # 17.12 [+1.38] Start point # 17.22 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.32 [+0.10] TEST: IPv6 fibmatch [ OK ] # 17.43 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 17.54 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 18.69 [+1.14] Carrier off on nexthop # 18.78 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.87 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.97 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 19.05 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 19.21 [+0.17] Route to local address with carrier down # 19.31 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.40 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.47 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 19.56 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 20.00 [+0.45] # 20.01 [+0.00] Single path route carrier test # 21.44 [+1.43] Start point # 21.53 [+0.09] TEST: IPv4 fibmatch [ OK ] # 21.61 [+0.08] TEST: IPv6 fibmatch [ OK ] # 21.70 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 21.79 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 22.92 [+1.13] Carrier down # 23.01 [+0.09] TEST: IPv4 fibmatch [ OK ] # 23.10 [+0.09] TEST: IPv6 fibmatch [ OK ] # 23.18 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 23.26 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 23.43 [+0.16] Second address added with carrier down # 23.52 [+0.09] TEST: IPv4 fibmatch [ OK ] # 23.60 [+0.08] TEST: IPv6 fibmatch [ OK ] # 23.68 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 23.76 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 28.10 [+4.34] # 28.10 [+0.00] IPv4 nexthop tests # 28.10 [+0.00] <<< write me >>> # 28.33 [+0.23] # 28.33 [+0.00] IPv6 nexthop tests # 28.43 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 28.52 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.61 [+0.09] TEST: Gateway is linklocal address [ OK ] # 28.70 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 28.79 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 28.88 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 28.97 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 29.08 [+0.11] TEST: Gateway can be local address in a VRF [ OK ] # 29.17 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.27 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.36 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 29.45 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.55 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 29.63 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.60 [+0.97] # 30.60 [+0.00] FIB rule with suppress_prefixlength # 32.31 [+1.71] TEST: FIB rule suppress test [ OK ] # 33.88 [+1.57] # 33.88 [+0.00] Fib6 info length calculation in route notify test # 37.83 [+3.95] TEST: ipv6 route add notify [ OK ] # 39.40 [+1.58] # 39.40 [+0.00] Fib4 info length calculation in route notify test # 43.35 [+3.95] TEST: ipv4 route add notify [ OK ] # 47.59 [+4.24] # 47.59 [+0.00] IPv6 route add / append tests # 47.95 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 48.29 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.65 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.12 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 49.49 [+0.37] TEST: Add multipath route [ OK ] # 49.84 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 50.28 [+0.45] TEST: Route add with different metrics [ OK ] # 50.47 [+0.19] TEST: Route delete with metric [ OK ] # 50.47 [+0.00] # 50.47 [+0.00] IPv6 route replace tests # 50.92 [+0.45] TEST: Single path with single path [ OK ] # 51.35 [+0.43] TEST: Single path with multipath [ OK ] # 51.81 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 52.23 [+0.42] TEST: Invalid nexthop [ OK ] # 52.59 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 53.04 [+0.45] TEST: Multipath with multipath [ OK ] # 53.48 [+0.43] TEST: Multipath with single path [ OK ] # 53.91 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 54.36 [+0.44] TEST: Multipath with dev-only [ OK ] # 54.81 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 55.24 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 55.59 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 55.59 [+0.00] # 55.59 [+0.00] IPv6 route with dsfield tests # 55.77 [+0.18] TEST: Reject route with dsfield [ OK ] # 61.48 [+5.71] # 61.48 [+0.00] IPv4 route add / append tests # 61.83 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 62.16 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 62.50 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 62.92 [+0.42] TEST: Add new nexthop for existing prefix [ OK ] # 63.34 [+0.42] TEST: Append nexthop to existing route - gw [ OK ] # 63.77 [+0.43] TEST: Append nexthop to existing route - dev only [ OK ] # 64.20 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 64.55 [+0.35] TEST: Append nexthop to existing reject route - gw [ OK ] # 64.89 [+0.34] TEST: Append nexthop to existing reject route - dev only [ OK ] # 65.24 [+0.35] TEST: add multipath route [ OK ] # 65.59 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 66.01 [+0.41] TEST: Route add with different metrics [ OK ] # 66.19 [+0.18] TEST: Route delete with metric [ OK ] # 66.19 [+0.00] # 66.19 [+0.00] IPv4 route replace tests # 66.61 [+0.42] TEST: Single path with single path [ OK ] # 67.03 [+0.42] TEST: Single path with multipath [ OK ] # 67.46 [+0.43] TEST: Single path with reject route [ OK ] # 67.89 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 68.32 [+0.44] TEST: Invalid nexthop [ OK ] # 68.66 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 69.10 [+0.44] TEST: Multipath with multipath [ OK ] # 69.54 [+0.44] TEST: Multipath with single path [ OK ] # 69.96 [+0.42] TEST: Multipath with single path via multipath attribute [ OK ] # 70.38 [+0.43] TEST: Multipath with reject route [ OK ] # 70.83 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 71.24 [+0.42] TEST: Multipath - invalid second nexthop [ OK ] # 71.59 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 72.95 [+1.36] TEST: Cached route removed from VRF port device [ OK ] # 72.95 [+0.00] # 72.95 [+0.00] IPv4 route with dsfield tests # 73.12 [+0.17] TEST: Reject route with dsfield 0x01 [ OK ] # 73.22 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 73.30 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 73.57 [+0.26] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 73.66 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 73.75 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 73.82 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 73.91 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 73.98 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 74.08 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 74.16 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 74.24 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 74.33 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 74.42 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 74.49 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 76.26 [+1.77] # 76.26 [+0.00] IPv6 prefix route tests # 78.14 [+1.88] TEST: Default metric [ OK ] # 78.43 [+0.29] TEST: User specified metric on first device [ OK ] # 78.72 [+0.29] TEST: User specified metric on second device [ OK ] # 78.92 [+0.19] TEST: Delete of address on first device [ OK ] # 79.10 [+0.18] TEST: Modify metric of address [ OK ] # 79.43 [+0.33] TEST: Prefix route removed on link down [ OK ] # 79.62 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 79.90 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 79.99 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 80.18 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 80.27 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 81.24 [+0.97] # 81.24 [+0.00] IPv4 prefix route tests # 83.10 [+1.86] TEST: Default metric [ OK ] # 83.38 [+0.28] TEST: User specified metric on first device [ OK ] # 83.65 [+0.27] TEST: User specified metric on second device [ OK ] # 83.84 [+0.19] TEST: Delete of address on first device [ OK ] # 84.02 [+0.18] TEST: Modify metric of address [ OK ] # 84.19 [+0.17] TEST: Prefix route removed on link down [ OK ] # 84.38 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 84.74 [+0.37] TEST: Modify metric of .0/24 address [ OK ] # 85.01 [+0.27] TEST: Set metric of address with peer route [ OK ] # 85.19 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 86.16 [+0.96] # 86.16 [+0.00] IPv6 routes with metrics # 90.66 [+4.51] TEST: Single path route with mtu metric [ OK ] # 90.96 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 91.26 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.44 [+0.18] TEST: MTU of second leg [ OK ] # 91.65 [+0.21] TEST: Multipath route with mtu metric [ OK ] # 91.88 [+0.23] TEST: Using route with mtu metric [ OK ] # 92.03 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 93.71 [+1.67] # 93.71 [+0.00] IPv4 route add / append tests # 98.22 [+4.51] TEST: Single path route with mtu metric [ OK ] # 98.41 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 98.64 [+0.24] TEST: Using route with mtu metric [ OK ] # 98.80 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.54 [+1.74] # 100.54 [+0.00] IPv4 route with IPv6 gateway tests # 106.89 [+6.35] TEST: Single path route with IPv6 gateway [ OK ] # 107.13 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.22 [+0.08] TEST: Single path route delete [ OK ] # 107.40 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.57 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.66 [+0.09] TEST: Multipath route delete exact match [ OK ] # 107.77 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 107.95 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.04 [+0.08] TEST: Multipath route delete exact match [ OK ] # 109.72 [+1.69] # 109.72 [+0.00] IPv4 rp_filter tests # 115.38 [+5.66] TEST: rp_filter passes local packets [ OK ] # 115.52 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 116.28 [+0.76] # 116.28 [+0.00] IPv4 delete address route tests # 118.96 [+2.69] Regular FIB info # 119.13 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 119.20 [+0.07] TEST: Route in default VRF not removed [ OK ] # 119.51 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.59 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 119.59 [+0.00] Identical FIB info with different table ID # 119.76 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 119.86 [+0.09] TEST: Route in default VRF not removed [ OK ] # 120.18 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.24 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 120.25 [+0.00] Table ID 0 # 120.43 [+0.19] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.39 [+0.96] # 121.39 [+0.00] IPv6 delete address route tests # 125.98 [+4.59] Single device using src address # 126.15 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.16 [+0.00] Two devices with the same source address # 126.31 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.46 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.47 [+0.00] VRF with single device using src address # 126.62 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.62 [+0.00] VRF with two devices using src address # 126.79 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.96 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.97 [+0.00] src address and nexthop dev in same VRF # 127.13 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 127.21 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 127.52 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 127.61 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 127.61 [+0.00] src address and nexthop device in different VRF # 127.79 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 127.87 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 128.12 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 128.22 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 128.22 [+0.00] Table ID 0 # 128.38 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 128.38 [+0.00] Link local source route # 128.54 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.71 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 128.80 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.05 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 130.57 [+1.53] # 130.57 [+0.00] IPv4 mangling tests # 138.01 [+7.43] TEST: Connection with correct parameters [ OK ] # 138.17 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 139.18 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 140.05 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 140.10 [+0.05] TEST: Connection check - server side [ OK ] # 142.12 [+2.03] # 142.12 [+0.00] IPv6 mangling tests # 149.44 [+7.32] TEST: Connection with correct parameters [ OK ] # 149.64 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 150.51 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 151.36 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 151.42 [+0.07] TEST: Connection check - server side [ OK ] # 153.44 [+2.01] # 153.44 [+0.00] IPv4 broadcast neighbour tests # 155.64 [+2.20] TEST: Resolved neighbour for broadcast address [ OK ] # 155.74 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 155.83 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 155.91 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 157.75 [+1.83] # 157.75 [+0.00] Fib6 garbage collection test # 170.96 [+13.22] TEST: ipv6 route garbage collection [ OK ] # 184.42 [+13.46] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 198.06 [+13.64] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 212.03 [+13.97] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 226.41 [+14.37] TEST: ipv6 route garbage collection (RA message) [ OK ] # 227.30 [+0.89] # 227.30 [+0.00] IPv4 multipath list receive tests # 242.51 [+15.21] TEST: Multipath route hit ratio (1.00) [ OK ] # 244.62 [+2.12] # 244.62 [+0.00] IPv6 multipath list receive tests # 259.78 [+15.16] TEST: Multipath route hit ratio (1.00) [ OK ] # 261.89 [+2.11] # 261.89 [+0.00] Tests passed: 229 # 261.89 [+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__->