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.38 [+0.38] # 0.38 [+0.00] Single path route test # 1.26 [+0.87] Start point # 1.32 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.41 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.55 [+0.14] Nexthop device deleted # 1.63 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.72 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.25 [+0.53] # 2.25 [+0.00] Multipath route test # 3.98 [+1.73] Start point # 4.08 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.18 [+0.10] TEST: IPv6 fibmatch [ OK ] # 4.32 [+0.14] One nexthop device deleted # 4.41 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.52 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 4.67 [+0.15] Second nexthop device deleted # 4.76 [+0.09] TEST: IPv6 - no route [ OK ] # 5.40 [+0.64] # 5.40 [+0.00] Single path, admin down # 6.83 [+1.43] Start point # 6.94 [+0.11] TEST: IPv4 fibmatch [ OK ] # 7.05 [+0.10] TEST: IPv6 fibmatch [ OK ] # 7.17 [+0.12] Route deleted on down # 7.27 [+0.10] TEST: IPv4 fibmatch [ OK ] # 7.37 [+0.10] TEST: IPv6 fibmatch [ OK ] # 7.94 [+0.56] # 7.94 [+0.00] Admin down multipath # 10.13 [+2.19] Verify start point # 10.23 [+0.11] TEST: IPv4 fibmatch [ OK ] # 10.36 [+0.12] TEST: IPv6 fibmatch [ OK ] # 10.46 [+0.10] One device down, one up # 10.55 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.63 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.72 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.81 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.90 [+0.09] TEST: IPv4 flags on down device [ OK ] # 11.02 [+0.12] TEST: IPv6 flags on down device [ OK ] # 11.14 [+0.12] TEST: IPv4 flags on up device [ OK ] # 11.25 [+0.11] TEST: IPv6 flags on up device [ OK ] # 11.42 [+0.17] Other device down and up # 11.50 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 11.58 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 11.66 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 11.75 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 11.86 [+0.11] TEST: IPv4 flags on down device [ OK ] # 11.97 [+0.10] TEST: IPv6 flags on down device [ OK ] # 12.07 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.17 [+0.10] TEST: IPv6 flags on up device [ OK ] # 12.26 [+0.09] Both devices down # 12.33 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.42 [+0.09] TEST: IPv6 fibmatch [ OK ] # 12.98 [+0.56] # 12.98 [+0.00] Local carrier tests - single path # 14.20 [+1.22] Start point # 14.28 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.37 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.45 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 14.54 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 15.68 [+1.15] Carrier off on nexthop # 15.76 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.85 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.93 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 16.05 [+0.12] TEST: IPv6 - linkdown flag set [ OK ] # 16.22 [+0.18] Route to local address with carrier down # 16.30 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.38 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.47 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 16.55 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 17.00 [+0.45] # 17.00 [+0.00] Single path route carrier test # 18.24 [+1.23] Start point # 18.32 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.39 [+0.07] TEST: IPv6 fibmatch [ OK ] # 18.48 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 18.56 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 19.72 [+1.15] Carrier down # 19.81 [+0.10] TEST: IPv4 fibmatch [ OK ] # 19.89 [+0.07] TEST: IPv6 fibmatch [ OK ] # 19.97 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 20.05 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 20.22 [+0.17] Second address added with carrier down # 20.31 [+0.10] TEST: IPv4 fibmatch [ OK ] # 20.42 [+0.10] TEST: IPv6 fibmatch [ OK ] # 20.52 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 20.62 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 25.39 [+4.77] # 25.39 [+0.00] IPv4 nexthop tests # 25.40 [+0.00] <<< write me >>> # 25.62 [+0.23] # 25.62 [+0.00] IPv6 nexthop tests # 25.72 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 25.80 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.89 [+0.09] TEST: Gateway is linklocal address [ OK ] # 25.97 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 26.07 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 26.16 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 26.24 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 26.34 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 26.43 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.52 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 26.61 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 26.71 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 26.80 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 26.91 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 28.05 [+1.15] # 28.05 [+0.00] FIB rule with suppress_prefixlength # 30.25 [+2.20] TEST: FIB rule suppress test [ OK ] # 31.85 [+1.60] # 31.85 [+0.00] Fib6 info length calculation in route notify test # 35.87 [+4.02] TEST: ipv6 route add notify [ OK ] # 37.78 [+1.91] # 37.78 [+0.00] Fib4 info length calculation in route notify test # 42.34 [+4.57] TEST: ipv4 route add notify [ OK ] # 48.52 [+6.18] # 48.52 [+0.00] IPv6 route add / append tests # 49.09 [+0.57] TEST: Attempt to add duplicate route - gw [ OK ] # 49.66 [+0.57] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.27 [+0.61] TEST: Attempt to add duplicate route - reject route [ OK ] # 50.94 [+0.68] TEST: Append nexthop to existing route - gw [ OK ] # 51.52 [+0.57] TEST: Add multipath route [ OK ] # 52.04 [+0.52] TEST: Attempt to add duplicate multipath route [ OK ] # 52.62 [+0.58] TEST: Route add with different metrics [ OK ] # 52.93 [+0.31] TEST: Route delete with metric [ OK ] # 52.93 [+0.00] # 52.93 [+0.00] IPv6 route replace tests # 53.59 [+0.65] TEST: Single path with single path [ OK ] # 54.32 [+0.73] TEST: Single path with multipath [ OK ] # 54.99 [+0.66] TEST: Single path with single path via multipath attribute [ OK ] # 55.67 [+0.68] TEST: Invalid nexthop [ OK ] # 56.22 [+0.55] TEST: Single path - replace of non-existent route [ OK ] # 56.97 [+0.75] TEST: Multipath with multipath [ OK ] # 57.70 [+0.74] TEST: Multipath with single path [ OK ] # 58.42 [+0.71] TEST: Multipath with single path via multipath attribute [ OK ] # 59.15 [+0.73] TEST: Multipath with dev-only [ OK ] # 59.87 [+0.72] TEST: Multipath - invalid first nexthop [ OK ] # 60.61 [+0.74] TEST: Multipath - invalid second nexthop [ OK ] # 61.13 [+0.52] TEST: Multipath - replace of non-existent route [ OK ] # 61.13 [+0.00] # 61.13 [+0.00] IPv6 route with dsfield tests # 61.37 [+0.24] TEST: Reject route with dsfield [ OK ] # 69.99 [+8.61] # 69.99 [+0.00] IPv4 route add / append tests # 70.54 [+0.55] TEST: Attempt to add duplicate route - gw [ OK ] # 71.11 [+0.57] TEST: Attempt to add duplicate route - dev only [ OK ] # 71.69 [+0.59] TEST: Attempt to add duplicate route - reject route [ OK ] # 72.37 [+0.67] TEST: Add new nexthop for existing prefix [ OK ] # 73.02 [+0.65] TEST: Append nexthop to existing route - gw [ OK ] # 73.80 [+0.78] TEST: Append nexthop to existing route - dev only [ OK ] # 74.52 [+0.72] TEST: Append nexthop to existing route - reject route [ OK ] # 75.05 [+0.53] TEST: Append nexthop to existing reject route - gw [ OK ] # 75.60 [+0.55] TEST: Append nexthop to existing reject route - dev only [ OK ] # 76.10 [+0.51] TEST: add multipath route [ OK ] # 76.66 [+0.56] TEST: Attempt to add duplicate multipath route [ OK ] # 77.30 [+0.63] TEST: Route add with different metrics [ OK ] # 77.56 [+0.26] TEST: Route delete with metric [ OK ] # 77.56 [+0.00] # 77.56 [+0.00] IPv4 route replace tests # 78.22 [+0.66] TEST: Single path with single path [ OK ] # 78.89 [+0.66] TEST: Single path with multipath [ OK ] # 79.55 [+0.66] TEST: Single path with reject route [ OK ] # 80.21 [+0.66] TEST: Single path with single path via multipath attribute [ OK ] # 80.75 [+0.54] TEST: Invalid nexthop [ OK ] # 81.26 [+0.51] TEST: Single path - replace of non-existent route [ OK ] # 81.90 [+0.64] TEST: Multipath with multipath [ OK ] # 82.55 [+0.65] TEST: Multipath with single path [ OK ] # 83.20 [+0.65] TEST: Multipath with single path via multipath attribute [ OK ] # 83.79 [+0.59] TEST: Multipath with reject route [ OK ] # 84.44 [+0.65] TEST: Multipath - invalid first nexthop [ OK ] # 85.01 [+0.57] TEST: Multipath - invalid second nexthop [ OK ] # 85.43 [+0.42] TEST: Multipath - replace of non-existent route [ OK ] # 87.18 [+1.75] TEST: Cached route removed from VRF port device [ OK ] # 87.18 [+0.00] # 87.18 [+0.00] IPv4 route with dsfield tests # 87.43 [+0.25] TEST: Reject route with dsfield 0x01 [ OK ] # 87.57 [+0.14] TEST: Reject route with dsfield 0x02 [ OK ] # 87.70 [+0.12] TEST: Reject route with dsfield 0x03 [ OK ] # 88.01 [+0.32] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 88.13 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 88.28 [+0.15] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 88.38 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 88.49 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 88.63 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 88.72 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 88.83 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 88.92 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 89.03 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 89.13 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 89.26 [+0.13] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 91.56 [+2.30] # 91.56 [+0.00] IPv6 prefix route tests # 94.01 [+2.45] TEST: Default metric [ OK ] # 94.39 [+0.37] TEST: User specified metric on first device [ OK ] # 94.78 [+0.39] TEST: User specified metric on second device [ OK ] # 95.06 [+0.29] TEST: Delete of address on first device [ OK ] # 95.36 [+0.29] TEST: Modify metric of address [ OK ] # 95.79 [+0.44] TEST: Prefix route removed on link down [ OK ] # 96.05 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 96.45 [+0.40] TEST: Set metric with peer route on local side [ OK ] # 96.60 [+0.15] TEST: Set metric with peer route on peer side [ OK ] # 96.87 [+0.26] TEST: Modify metric and peer address on local side [ OK ] # 97.03 [+0.16] TEST: Modify metric and peer address on peer side [ OK ] # 98.24 [+1.22] # 98.24 [+0.00] IPv4 prefix route tests # 100.69 [+2.45] TEST: Default metric [ OK ] # 101.04 [+0.35] TEST: User specified metric on first device [ OK ] # 101.39 [+0.35] TEST: User specified metric on second device [ OK ] # 101.61 [+0.21] TEST: Delete of address on first device [ OK ] # 101.83 [+0.22] TEST: Modify metric of address [ OK ] # 102.05 [+0.22] TEST: Prefix route removed on link down [ OK ] # 102.35 [+0.30] TEST: Prefix route with metric on link up [ OK ] # 102.93 [+0.58] TEST: Modify metric of .0/24 address [ OK ] # 103.31 [+0.39] TEST: Set metric of address with peer route [ OK ] # 103.62 [+0.31] TEST: Modify metric and peer address for peer route [ OK ] # 105.00 [+1.38] # 105.00 [+0.00] IPv6 routes with metrics # 111.40 [+6.40] TEST: Single path route with mtu metric [ OK ] # 111.78 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 112.18 [+0.40] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 112.46 [+0.28] TEST: MTU of second leg [ OK ] # 112.78 [+0.32] TEST: Multipath route with mtu metric [ OK ] # 113.06 [+0.28] TEST: Using route with mtu metric [ OK ] # 113.26 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 115.66 [+2.40] # 115.67 [+0.00] IPv4 route add / append tests # 122.23 [+6.56] TEST: Single path route with mtu metric [ OK ] # 122.48 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 122.79 [+0.31] TEST: Using route with mtu metric [ OK ] # 122.99 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 124.92 [+1.93] # 124.92 [+0.00] IPv4 route with IPv6 gateway tests # 131.81 [+6.89] TEST: Single path route with IPv6 gateway [ OK ] # 132.07 [+0.26] TEST: Single path route with IPv6 gateway - ping [ OK ] # 132.21 [+0.14] TEST: Single path route delete [ OK ] # 132.39 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 132.63 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 132.74 [+0.12] TEST: Multipath route delete exact match [ OK ] # 132.84 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 133.06 [+0.22] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 133.16 [+0.10] TEST: Multipath route delete exact match [ OK ] # 134.92 [+1.76] # 134.92 [+0.00] IPv4 rp_filter tests # 141.01 [+6.08] TEST: rp_filter passes local packets [ OK ] # 141.18 [+0.18] TEST: rp_filter passes loopback packets [ OK ] # 142.08 [+0.90] # 142.08 [+0.00] IPv4 delete address route tests # 144.91 [+2.82] Regular FIB info # 145.07 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 145.16 [+0.09] TEST: Route in default VRF not removed [ OK ] # 145.49 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 145.56 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 145.56 [+0.00] Identical FIB info with different table ID # 145.74 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 145.83 [+0.09] TEST: Route in default VRF not removed [ OK ] # 146.14 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 146.23 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 146.23 [+0.00] Table ID 0 # 146.40 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 147.37 [+0.97] # 147.37 [+0.00] IPv6 delete address route tests # 152.02 [+4.65] Single device using src address # 152.19 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.19 [+0.00] Two devices with the same source address # 152.36 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.53 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.54 [+0.00] VRF with single device using src address # 152.69 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.69 [+0.00] VRF with two devices using src address # 152.86 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 153.04 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 153.04 [+0.00] src address and nexthop dev in same VRF # 153.20 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 153.27 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 153.60 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 153.71 [+0.11] TEST: Prefsrc in default VRF removed [ OK ] # 153.71 [+0.00] src address and nexthop device in different VRF # 153.88 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 153.97 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 154.25 [+0.27] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 154.35 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 154.35 [+0.00] Table ID 0 # 154.53 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 154.54 [+0.00] Link local source route # 154.70 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 154.85 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 154.96 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.20 [+0.24] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 156.66 [+1.47] # 156.66 [+0.00] IPv4 mangling tests # 164.14 [+7.47] TEST: Connection with correct parameters [ OK ] # 164.31 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 165.32 [+1.01] TEST: Connection with correct parameters - mangling [ OK ] # 166.17 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 166.23 [+0.05] TEST: Connection check - server side [ OK ] # 168.22 [+1.99] # 168.22 [+0.00] IPv6 mangling tests # 175.65 [+7.43] TEST: Connection with correct parameters [ OK ] # 175.85 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 176.70 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 177.56 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 177.63 [+0.07] TEST: Connection check - server side [ OK ] # 179.58 [+1.94] # 179.58 [+0.00] IPv4 broadcast neighbour tests # 181.80 [+2.22] TEST: Resolved neighbour for broadcast address [ OK ] # 181.89 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 181.97 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 182.07 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 183.90 [+1.84] # 183.90 [+0.00] Fib6 garbage collection test # 197.10 [+13.19] TEST: ipv6 route garbage collection [ OK ] # 210.49 [+13.39] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 223.89 [+13.41] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 237.44 [+13.55] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 251.82 [+14.38] TEST: ipv6 route garbage collection (RA message) [ OK ] # 252.54 [+0.72] # 252.54 [+0.00] IPv4 multipath list receive tests # 267.69 [+15.15] TEST: Multipath route hit ratio (1.00) [ OK ] # 269.65 [+1.96] # 269.65 [+0.00] IPv6 multipath list receive tests # 285.27 [+15.62] TEST: Multipath route hit ratio (1.00) [ OK ] # 287.12 [+1.85] # 287.12 [+0.00] Tests passed: 229 # 287.12 [+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__->