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.54 [+0.54] # 0.54 [+0.00] Single path route test # 1.73 [+1.19] Start point # 1.83 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.92 [+0.09] TEST: IPv6 fibmatch [ OK ] # 2.07 [+0.15] Nexthop device deleted # 2.16 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 2.26 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 3.05 [+0.79] # 3.05 [+0.00] Multipath route test # 5.14 [+2.09] Start point # 5.26 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.37 [+0.11] TEST: IPv6 fibmatch [ OK ] # 5.51 [+0.14] One nexthop device deleted # 5.61 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.70 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 5.85 [+0.15] Second nexthop device deleted # 5.94 [+0.09] TEST: IPv6 - no route [ OK ] # 6.52 [+0.58] # 6.52 [+0.00] Single path, admin down # 7.98 [+1.46] Start point # 8.09 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.21 [+0.12] TEST: IPv6 fibmatch [ OK ] # 8.32 [+0.11] Route deleted on down # 8.43 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.54 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.14 [+0.60] # 9.14 [+0.00] Admin down multipath # 11.20 [+2.06] Verify start point # 11.32 [+0.13] TEST: IPv4 fibmatch [ OK ] # 11.44 [+0.12] TEST: IPv6 fibmatch [ OK ] # 11.57 [+0.13] One device down, one up # 11.69 [+0.13] TEST: IPv4 fibmatch on down device [ OK ] # 11.80 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.91 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.01 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.13 [+0.12] TEST: IPv4 flags on down device [ OK ] # 12.24 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.36 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.52 [+0.16] TEST: IPv6 flags on up device [ OK ] # 12.74 [+0.21] Other device down and up # 12.85 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.96 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 13.05 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 13.16 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 13.27 [+0.10] TEST: IPv4 flags on down device [ OK ] # 13.37 [+0.10] TEST: IPv6 flags on down device [ OK ] # 13.49 [+0.12] TEST: IPv4 flags on up device [ OK ] # 13.61 [+0.13] TEST: IPv6 flags on up device [ OK ] # 13.76 [+0.15] Both devices down # 13.87 [+0.11] TEST: IPv4 fibmatch [ OK ] # 14.01 [+0.14] TEST: IPv6 fibmatch [ OK ] # 14.74 [+0.73] # 14.74 [+0.00] Local carrier tests - single path # 16.43 [+1.69] Start point # 16.56 [+0.13] TEST: IPv4 fibmatch [ OK ] # 16.67 [+0.11] TEST: IPv6 fibmatch [ OK ] # 16.78 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 16.90 [+0.12] TEST: IPv6 - no linkdown flag [ OK ] # 18.08 [+1.19] Carrier off on nexthop # 18.19 [+0.11] TEST: IPv4 fibmatch [ OK ] # 18.29 [+0.10] TEST: IPv6 fibmatch [ OK ] # 18.40 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 18.49 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 18.71 [+0.22] Route to local address with carrier down # 18.81 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.91 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.03 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 19.11 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.63 [+0.52] # 19.63 [+0.00] Single path route carrier test # 21.28 [+1.65] Start point # 21.38 [+0.10] TEST: IPv4 fibmatch [ OK ] # 21.48 [+0.10] TEST: IPv6 fibmatch [ OK ] # 21.57 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 21.69 [+0.12] TEST: IPv6 no linkdown flag [ OK ] # 22.84 [+1.15] Carrier down # 22.95 [+0.11] TEST: IPv4 fibmatch [ OK ] # 23.06 [+0.12] TEST: IPv6 fibmatch [ OK ] # 23.16 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 23.24 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 23.44 [+0.20] Second address added with carrier down # 23.55 [+0.11] TEST: IPv4 fibmatch [ OK ] # 23.66 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.75 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 23.87 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 28.79 [+4.92] # 28.79 [+0.00] IPv4 nexthop tests # 28.79 [+0.00] <<< write me >>> # 29.09 [+0.30] # 29.09 [+0.00] IPv6 nexthop tests # 29.20 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 29.32 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 29.45 [+0.13] TEST: Gateway is linklocal address [ OK ] # 29.58 [+0.13] TEST: Gateway is linklocal address, no device [ OK ] # 29.71 [+0.14] TEST: Gateway can not be local unicast address [ OK ] # 29.85 [+0.14] TEST: Gateway can not be local unicast address, with device [ OK ] # 30.00 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 30.09 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 30.20 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 30.31 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 30.43 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 30.53 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 30.64 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 30.77 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.91 [+1.15] # 31.91 [+0.00] FIB rule with suppress_prefixlength # 33.96 [+2.05] TEST: FIB rule suppress test [ OK ] # 35.93 [+1.97] # 35.93 [+0.00] Fib6 info length calculation in route notify test # 40.34 [+4.42] TEST: ipv6 route add notify [ OK ] # 42.25 [+1.90] # 42.25 [+0.00] Fib4 info length calculation in route notify test # 46.82 [+4.58] TEST: ipv4 route add notify [ OK ] # 52.17 [+5.35] # 52.17 [+0.00] IPv6 route add / append tests # 52.63 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 53.07 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.47 [+0.40] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.04 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 54.47 [+0.43] TEST: Add multipath route [ OK ] # 54.90 [+0.43] TEST: Attempt to add duplicate multipath route [ OK ] # 55.42 [+0.52] TEST: Route add with different metrics [ OK ] # 55.68 [+0.26] TEST: Route delete with metric [ OK ] # 55.68 [+0.00] # 55.68 [+0.00] IPv6 route replace tests # 56.22 [+0.54] TEST: Single path with single path [ OK ] # 56.75 [+0.53] TEST: Single path with multipath [ OK ] # 57.26 [+0.51] TEST: Single path with single path via multipath attribute [ OK ] # 57.78 [+0.53] TEST: Invalid nexthop [ OK ] # 58.21 [+0.43] TEST: Single path - replace of non-existent route [ OK ] # 58.75 [+0.54] TEST: Multipath with multipath [ OK ] # 59.28 [+0.53] TEST: Multipath with single path [ OK ] # 59.84 [+0.56] TEST: Multipath with single path via multipath attribute [ OK ] # 60.38 [+0.54] TEST: Multipath with dev-only [ OK ] # 61.00 [+0.62] TEST: Multipath - invalid first nexthop [ OK ] # 61.57 [+0.57] TEST: Multipath - invalid second nexthop [ OK ] # 62.00 [+0.44] TEST: Multipath - replace of non-existent route [ OK ] # 62.00 [+0.00] # 62.00 [+0.00] IPv6 route with dsfield tests # 62.20 [+0.19] TEST: Reject route with dsfield [ OK ] # 69.45 [+7.25] # 69.45 [+0.00] IPv4 route add / append tests # 69.85 [+0.41] TEST: Attempt to add duplicate route - gw [ OK ] # 70.30 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 70.77 [+0.47] TEST: Attempt to add duplicate route - reject route [ OK ] # 71.31 [+0.54] TEST: Add new nexthop for existing prefix [ OK ] # 71.86 [+0.55] TEST: Append nexthop to existing route - gw [ OK ] # 72.42 [+0.56] TEST: Append nexthop to existing route - dev only [ OK ] # 72.97 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 73.40 [+0.43] TEST: Append nexthop to existing reject route - gw [ OK ] # 73.84 [+0.44] TEST: Append nexthop to existing reject route - dev only [ OK ] # 74.26 [+0.42] TEST: add multipath route [ OK ] # 74.75 [+0.49] TEST: Attempt to add duplicate multipath route [ OK ] # 75.27 [+0.52] TEST: Route add with different metrics [ OK ] # 75.49 [+0.22] TEST: Route delete with metric [ OK ] # 75.50 [+0.01] # 75.50 [+0.00] IPv4 route replace tests # 76.03 [+0.53] TEST: Single path with single path [ OK ] # 76.60 [+0.57] TEST: Single path with multipath [ OK ] # 77.17 [+0.57] TEST: Single path with reject route [ OK ] # 77.75 [+0.58] TEST: Single path with single path via multipath attribute [ OK ] # 78.32 [+0.57] TEST: Invalid nexthop [ OK ] # 78.81 [+0.49] TEST: Single path - replace of non-existent route [ OK ] # 79.38 [+0.57] TEST: Multipath with multipath [ OK ] # 79.98 [+0.60] TEST: Multipath with single path [ OK ] # 80.55 [+0.57] TEST: Multipath with single path via multipath attribute [ OK ] # 81.14 [+0.59] TEST: Multipath with reject route [ OK ] # 81.73 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 82.21 [+0.48] TEST: Multipath - invalid second nexthop [ OK ] # 82.63 [+0.42] TEST: Multipath - replace of non-existent route [ OK ] # 84.50 [+1.87] TEST: Cached route removed from VRF port device [ OK ] # 84.50 [+0.00] # 84.50 [+0.00] IPv4 route with dsfield tests # 84.77 [+0.27] TEST: Reject route with dsfield 0x01 [ OK ] # 84.92 [+0.14] TEST: Reject route with dsfield 0x02 [ OK ] # 85.02 [+0.11] TEST: Reject route with dsfield 0x03 [ OK ] # 85.37 [+0.34] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 85.46 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 85.60 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 85.70 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 85.79 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 85.93 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 86.09 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 86.19 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 86.28 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 86.41 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 86.51 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 86.61 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 88.76 [+2.16] # 88.76 [+0.00] IPv6 prefix route tests # 91.19 [+2.43] TEST: Default metric [ OK ] # 91.53 [+0.34] TEST: User specified metric on first device [ OK ] # 91.98 [+0.45] TEST: User specified metric on second device [ OK ] # 92.20 [+0.21] TEST: Delete of address on first device [ OK ] # 92.44 [+0.24] TEST: Modify metric of address [ OK ] # 92.81 [+0.37] TEST: Prefix route removed on link down [ OK ] # 93.04 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 93.37 [+0.33] TEST: Set metric with peer route on local side [ OK ] # 93.48 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 93.76 [+0.28] TEST: Modify metric and peer address on local side [ OK ] # 93.87 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 95.08 [+1.21] # 95.08 [+0.00] IPv4 prefix route tests # 97.44 [+2.36] TEST: Default metric [ OK ] # 97.77 [+0.32] TEST: User specified metric on first device [ OK ] # 98.13 [+0.37] TEST: User specified metric on second device [ OK ] # 98.36 [+0.23] TEST: Delete of address on first device [ OK ] # 98.60 [+0.23] TEST: Modify metric of address [ OK ] # 98.84 [+0.24] TEST: Prefix route removed on link down [ OK ] # 99.07 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 99.57 [+0.50] TEST: Modify metric of .0/24 address [ OK ] # 99.92 [+0.36] TEST: Set metric of address with peer route [ OK ] # 100.18 [+0.26] TEST: Modify metric and peer address for peer route [ OK ] # 101.44 [+1.26] # 101.44 [+0.00] IPv6 routes with metrics # 107.10 [+5.66] TEST: Single path route with mtu metric [ OK ] # 107.48 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 107.87 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 108.08 [+0.22] TEST: MTU of second leg [ OK ] # 108.34 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 108.64 [+0.30] TEST: Using route with mtu metric [ OK ] # 108.83 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 110.95 [+2.11] # 110.95 [+0.00] IPv4 route add / append tests # 116.65 [+5.71] TEST: Single path route with mtu metric [ OK ] # 116.90 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 117.19 [+0.29] TEST: Using route with mtu metric [ OK ] # 117.41 [+0.22] TEST: Invalid metric (fails metric_convert) [ OK ] # 119.50 [+2.08] # 119.50 [+0.00] IPv4 route with IPv6 gateway tests # 127.20 [+7.71] TEST: Single path route with IPv6 gateway [ OK ] # 127.50 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 127.61 [+0.11] TEST: Single path route delete [ OK ] # 127.83 [+0.21] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 128.08 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 128.19 [+0.11] TEST: Multipath route delete exact match [ OK ] # 128.33 [+0.13] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 128.62 [+0.30] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 128.73 [+0.11] TEST: Multipath route delete exact match [ OK ] # 130.85 [+2.12] # 130.85 [+0.00] IPv4 rp_filter tests # 138.55 [+7.69] TEST: rp_filter passes local packets [ OK ] # 138.74 [+0.20] TEST: rp_filter passes loopback packets [ OK ] # 139.69 [+0.95] # 139.69 [+0.00] IPv4 delete address route tests # 143.11 [+3.42] Regular FIB info # 143.32 [+0.22] TEST: Route removed from VRF when source address deleted [ OK ] # 143.44 [+0.11] TEST: Route in default VRF not removed [ OK ] # 143.81 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 143.92 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 143.93 [+0.00] Identical FIB info with different table ID # 144.15 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 144.25 [+0.09] TEST: Route in default VRF not removed [ OK ] # 144.66 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 144.81 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 144.81 [+0.00] Table ID 0 # 144.97 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 146.15 [+1.18] # 146.15 [+0.00] IPv6 delete address route tests # 152.03 [+5.88] Single device using src address # 152.25 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.25 [+0.00] Two devices with the same source address # 152.46 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.68 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.68 [+0.00] VRF with single device using src address # 152.90 [+0.23] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.91 [+0.00] VRF with two devices using src address # 153.11 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 153.34 [+0.23] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 153.34 [+0.00] src address and nexthop dev in same VRF # 153.57 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 153.68 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 154.07 [+0.39] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 154.17 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 154.18 [+0.00] src address and nexthop device in different VRF # 154.38 [+0.20] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 154.48 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 154.76 [+0.28] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 154.90 [+0.13] TEST: Prefsrc removed in default VRF [ OK ] # 154.90 [+0.00] Table ID 0 # 155.07 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 155.07 [+0.00] Link local source route # 155.27 [+0.20] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.47 [+0.20] TEST: Prefsrc removed when delete ll addr [ OK ] # 155.58 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.92 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 157.67 [+1.75] # 157.67 [+0.00] IPv4 mangling tests # 166.18 [+8.51] TEST: Connection with correct parameters [ OK ] # 166.43 [+0.25] TEST: Connection with incorrect parameters [ OK ] # 167.52 [+1.09] TEST: Connection with correct parameters - mangling [ OK ] # 168.44 [+0.92] TEST: Connection with correct parameters - no mangling [ OK ] # 168.52 [+0.08] TEST: Connection check - server side [ OK ] # 170.94 [+2.42] # 170.94 [+0.00] IPv6 mangling tests # 179.64 [+8.71] TEST: Connection with correct parameters [ OK ] # 179.87 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 180.79 [+0.92] TEST: Connection with correct parameters - mangling [ OK ] # 181.77 [+0.98] TEST: Connection with correct parameters - no mangling [ OK ] # 181.88 [+0.11] TEST: Connection check - server side [ OK ] # 184.25 [+2.37] # 184.25 [+0.00] IPv4 broadcast neighbour tests # 186.91 [+2.65] TEST: Resolved neighbour for broadcast address [ OK ] # 187.01 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 187.12 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 187.22 [+0.10] TEST: Unresolved neighbour for network broadcast address [ OK ] # 189.55 [+2.33] # 189.55 [+0.00] Fib6 garbage collection test # 203.00 [+13.45] TEST: ipv6 route garbage collection [ OK ] # 216.57 [+13.57] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 230.19 [+13.61] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 243.95 [+13.76] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 258.50 [+14.55] TEST: ipv6 route garbage collection (RA message) [ OK ] # 259.37 [+0.86] # 259.37 [+0.00] IPv4 multipath list receive tests # 278.81 [+19.44] TEST: Multipath route hit ratio (1.00) [ OK ] # 280.80 [+2.00] # 280.80 [+0.00] IPv6 multipath list receive tests # 299.79 [+18.99] TEST: Multipath route hit ratio (1.00) [ OK ] # 301.96 [+2.17] # 301.96 [+0.00] Tests passed: 229 # 301.96 [+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__->