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.72 [+0.72] # 0.72 [+0.00] Single path route test # 2.35 [+1.63] Start point # 2.48 [+0.14] TEST: IPv4 fibmatch [ OK ] # 2.60 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.79 [+0.19] Nexthop device deleted # 2.94 [+0.16] TEST: IPv4 fibmatch - no route [ OK ] # 3.11 [+0.17] TEST: IPv6 fibmatch - no route [ OK ] # 4.05 [+0.94] # 4.05 [+0.00] Multipath route test # 7.10 [+3.06] Start point # 7.29 [+0.19] TEST: IPv4 fibmatch [ OK ] # 7.45 [+0.16] TEST: IPv6 fibmatch [ OK ] # 7.66 [+0.21] One nexthop device deleted # 7.79 [+0.13] TEST: IPv4 - multipath route removed on delete [ OK ] # 7.96 [+0.17] TEST: IPv6 - multipath down to single path [ OK ] # 8.15 [+0.20] Second nexthop device deleted # 8.32 [+0.16] TEST: IPv6 - no route [ OK ] # 9.23 [+0.92] # 9.23 [+0.00] Single path, admin down # 11.08 [+1.85] Start point # 11.26 [+0.17] TEST: IPv4 fibmatch [ OK ] # 11.43 [+0.17] TEST: IPv6 fibmatch [ OK ] # 11.56 [+0.13] Route deleted on down # 11.71 [+0.15] TEST: IPv4 fibmatch [ OK ] # 11.85 [+0.14] TEST: IPv6 fibmatch [ OK ] # 12.57 [+0.72] # 12.57 [+0.00] Admin down multipath # 15.42 [+2.84] Verify start point # 15.55 [+0.13] TEST: IPv4 fibmatch [ OK ] # 15.69 [+0.15] TEST: IPv6 fibmatch [ OK ] # 15.87 [+0.17] One device down, one up # 16.03 [+0.17] TEST: IPv4 fibmatch on down device [ OK ] # 16.17 [+0.14] TEST: IPv6 fibmatch on down device [ OK ] # 16.35 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 16.50 [+0.15] TEST: IPv6 fibmatch on up device [ OK ] # 16.68 [+0.19] TEST: IPv4 flags on down device [ OK ] # 16.89 [+0.21] TEST: IPv6 flags on down device [ OK ] # 17.08 [+0.19] TEST: IPv4 flags on up device [ OK ] # 17.27 [+0.19] TEST: IPv6 flags on up device [ OK ] # 17.61 [+0.34] Other device down and up # 17.75 [+0.14] TEST: IPv4 fibmatch on down device [ OK ] # 17.89 [+0.14] TEST: IPv6 fibmatch on down device [ OK ] # 18.07 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 18.25 [+0.18] TEST: IPv6 fibmatch on up device [ OK ] # 18.40 [+0.16] TEST: IPv4 flags on down device [ OK ] # 18.62 [+0.21] TEST: IPv6 flags on down device [ OK ] # 18.75 [+0.13] TEST: IPv4 flags on up device [ OK ] # 18.93 [+0.18] TEST: IPv6 flags on up device [ OK ] # 19.09 [+0.16] Both devices down # 19.25 [+0.16] TEST: IPv4 fibmatch [ OK ] # 19.41 [+0.16] TEST: IPv6 fibmatch [ OK ] # 20.36 [+0.95] # 20.36 [+0.00] Local carrier tests - single path # 22.43 [+2.06] Start point # 22.56 [+0.13] TEST: IPv4 fibmatch [ OK ] # 22.71 [+0.15] TEST: IPv6 fibmatch [ OK ] # 22.84 [+0.13] TEST: IPv4 - no linkdown flag [ OK ] # 23.02 [+0.18] TEST: IPv6 - no linkdown flag [ OK ] # 24.27 [+1.26] Carrier off on nexthop # 24.43 [+0.15] TEST: IPv4 fibmatch [ OK ] # 24.60 [+0.18] TEST: IPv6 fibmatch [ OK ] # 24.75 [+0.14] TEST: IPv4 - linkdown flag set [ OK ] # 24.90 [+0.15] TEST: IPv6 - linkdown flag set [ OK ] # 25.17 [+0.27] Route to local address with carrier down # 25.31 [+0.14] TEST: IPv4 fibmatch [ OK ] # 25.48 [+0.17] TEST: IPv6 fibmatch [ OK ] # 25.61 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 25.78 [+0.17] TEST: IPv6 linkdown flag set [ OK ] # 26.51 [+0.73] # 26.51 [+0.00] Single path route carrier test # 28.72 [+2.21] Start point # 28.86 [+0.14] TEST: IPv4 fibmatch [ OK ] # 29.01 [+0.15] TEST: IPv6 fibmatch [ OK ] # 29.14 [+0.13] TEST: IPv4 no linkdown flag [ OK ] # 29.34 [+0.21] TEST: IPv6 no linkdown flag [ OK ] # 30.60 [+1.25] Carrier down # 30.80 [+0.21] TEST: IPv4 fibmatch [ OK ] # 30.96 [+0.15] TEST: IPv6 fibmatch [ OK ] # 31.13 [+0.18] TEST: IPv4 linkdown flag set [ OK ] # 31.32 [+0.19] TEST: IPv6 linkdown flag set [ OK ] # 31.63 [+0.31] Second address added with carrier down # 31.79 [+0.16] TEST: IPv4 fibmatch [ OK ] # 31.93 [+0.14] TEST: IPv6 fibmatch [ OK ] # 32.08 [+0.15] TEST: IPv4 linkdown flag set [ OK ] # 32.24 [+0.16] TEST: IPv6 linkdown flag set [ OK ] # 39.00 [+6.76] # 39.00 [+0.00] IPv4 nexthop tests # 39.00 [+0.00] <<< write me >>> # 39.45 [+0.45] # 39.45 [+0.00] IPv6 nexthop tests # 39.67 [+0.22] TEST: Directly connected nexthop, unicast address [ OK ] # 39.86 [+0.18] TEST: Directly connected nexthop, unicast address with device [ OK ] # 40.03 [+0.18] TEST: Gateway is linklocal address [ OK ] # 40.21 [+0.18] TEST: Gateway is linklocal address, no device [ OK ] # 40.41 [+0.19] TEST: Gateway can not be local unicast address [ OK ] # 40.56 [+0.16] TEST: Gateway can not be local unicast address, with device [ OK ] # 40.78 [+0.22] TEST: Gateway can not be a local linklocal address [ OK ] # 40.95 [+0.17] TEST: Gateway can be local address in a VRF [ OK ] # 41.15 [+0.20] TEST: Gateway can be local address in a VRF, with device [ OK ] # 41.40 [+0.25] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 41.62 [+0.22] TEST: Redirect to VRF lookup [ OK ] # 41.82 [+0.20] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 42.04 [+0.22] TEST: VRF route, gateway can not be a local address [ OK ] # 42.19 [+0.15] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 43.77 [+1.57] # 43.77 [+0.00] FIB rule with suppress_prefixlength # 47.20 [+3.43] TEST: FIB rule suppress test [ OK ] # 50.11 [+2.90] # 50.11 [+0.00] Fib6 info length calculation in route notify test # 55.62 [+5.51] TEST: ipv6 route add notify [ OK ] # 58.34 [+2.72] # 58.34 [+0.00] Fib4 info length calculation in route notify test # 63.86 [+5.52] TEST: ipv4 route add notify [ OK ] # 71.60 [+7.74] # 71.60 [+0.00] IPv6 route add / append tests # 72.25 [+0.65] TEST: Attempt to add duplicate route - gw [ OK ] # 72.82 [+0.57] TEST: Attempt to add duplicate route - dev only [ OK ] # 73.44 [+0.62] TEST: Attempt to add duplicate route - reject route [ OK ] # 74.20 [+0.76] TEST: Append nexthop to existing route - gw [ OK ] # 74.87 [+0.68] TEST: Add multipath route [ OK ] # 75.42 [+0.54] TEST: Attempt to add duplicate multipath route [ OK ] # 76.25 [+0.83] TEST: Route add with different metrics [ OK ] # 76.64 [+0.38] TEST: Route delete with metric [ OK ] # 76.64 [+0.00] # 76.64 [+0.00] IPv6 route replace tests # 77.40 [+0.77] TEST: Single path with single path [ OK ] # 78.19 [+0.78] TEST: Single path with multipath [ OK ] # 78.94 [+0.75] TEST: Single path with single path via multipath attribute [ OK ] # 79.67 [+0.74] TEST: Invalid nexthop [ OK ] # 80.21 [+0.54] TEST: Single path - replace of non-existent route [ OK ] # 80.96 [+0.74] TEST: Multipath with multipath [ OK ] # 81.65 [+0.69] TEST: Multipath with single path [ OK ] # 82.43 [+0.78] TEST: Multipath with single path via multipath attribute [ OK ] # 83.26 [+0.82] TEST: Multipath with dev-only [ OK ] # 84.08 [+0.83] TEST: Multipath - invalid first nexthop [ OK ] # 84.92 [+0.84] TEST: Multipath - invalid second nexthop [ OK ] # 85.50 [+0.57] TEST: Multipath - replace of non-existent route [ OK ] # 85.50 [+0.00] # 85.50 [+0.00] IPv6 route with dsfield tests # 85.80 [+0.30] TEST: Reject route with dsfield [ OK ] # 96.66 [+10.86] # 96.66 [+0.00] IPv4 route add / append tests # 97.37 [+0.71] TEST: Attempt to add duplicate route - gw [ OK ] # 97.98 [+0.61] TEST: Attempt to add duplicate route - dev only [ OK ] # 98.56 [+0.58] TEST: Attempt to add duplicate route - reject route [ OK ] # 99.38 [+0.82] TEST: Add new nexthop for existing prefix [ OK ] # 100.08 [+0.70] TEST: Append nexthop to existing route - gw [ OK ] # 100.84 [+0.76] TEST: Append nexthop to existing route - dev only [ OK ] # 101.65 [+0.80] TEST: Append nexthop to existing route - reject route [ OK ] # 102.36 [+0.71] TEST: Append nexthop to existing reject route - gw [ OK ] # 102.97 [+0.61] TEST: Append nexthop to existing reject route - dev only [ OK ] # 103.57 [+0.60] TEST: add multipath route [ OK ] # 104.18 [+0.61] TEST: Attempt to add duplicate multipath route [ OK ] # 105.07 [+0.89] TEST: Route add with different metrics [ OK ] # 105.39 [+0.32] TEST: Route delete with metric [ OK ] # 105.40 [+0.00] # 105.40 [+0.00] IPv4 route replace tests # 106.26 [+0.86] TEST: Single path with single path [ OK ] # 107.06 [+0.80] TEST: Single path with multipath [ OK ] # 107.87 [+0.81] TEST: Single path with reject route [ OK ] # 108.68 [+0.81] TEST: Single path with single path via multipath attribute [ OK ] # 109.68 [+1.00] TEST: Invalid nexthop [ OK ] # 110.45 [+0.76] TEST: Single path - replace of non-existent route [ OK ] # 111.22 [+0.77] TEST: Multipath with multipath [ OK ] # 112.03 [+0.81] TEST: Multipath with single path [ OK ] # 112.90 [+0.87] TEST: Multipath with single path via multipath attribute [ OK ] # 113.74 [+0.84] TEST: Multipath with reject route [ OK ] # 114.65 [+0.91] TEST: Multipath - invalid first nexthop [ OK ] # 115.49 [+0.85] TEST: Multipath - invalid second nexthop [ OK ] # 116.06 [+0.56] TEST: Multipath - replace of non-existent route [ OK ] # 118.60 [+2.55] TEST: Cached route removed from VRF port device [ OK ] # 118.61 [+0.00] # 118.61 [+0.00] IPv4 route with dsfield tests # 118.92 [+0.31] TEST: Reject route with dsfield 0x01 [ OK ] # 119.08 [+0.16] TEST: Reject route with dsfield 0x02 [ OK ] # 119.30 [+0.22] TEST: Reject route with dsfield 0x03 [ OK ] # 119.85 [+0.54] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 120.02 [+0.17] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 120.18 [+0.15] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 120.35 [+0.17] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 120.49 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 120.69 [+0.21] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 120.82 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 120.96 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 121.08 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 121.23 [+0.15] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 121.38 [+0.15] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 121.51 [+0.13] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 124.24 [+2.73] # 124.25 [+0.00] IPv6 prefix route tests # 127.64 [+3.39] TEST: Default metric [ OK ] # 128.12 [+0.48] TEST: User specified metric on first device [ OK ] # 128.58 [+0.46] TEST: User specified metric on second device [ OK ] # 128.94 [+0.36] TEST: Delete of address on first device [ OK ] # 129.28 [+0.33] TEST: Modify metric of address [ OK ] # 129.86 [+0.58] TEST: Prefix route removed on link down [ OK ] # 130.20 [+0.34] TEST: Prefix route with metric on link up [ OK ] # 130.75 [+0.55] TEST: Set metric with peer route on local side [ OK ] # 130.97 [+0.21] TEST: Set metric with peer route on peer side [ OK ] # 131.32 [+0.36] TEST: Modify metric and peer address on local side [ OK ] # 131.56 [+0.23] TEST: Modify metric and peer address on peer side [ OK ] # 133.33 [+1.77] # 133.33 [+0.00] IPv4 prefix route tests # 136.76 [+3.43] TEST: Default metric [ OK ] # 137.33 [+0.57] TEST: User specified metric on first device [ OK ] # 137.78 [+0.45] TEST: User specified metric on second device [ OK ] # 138.09 [+0.30] TEST: Delete of address on first device [ OK ] # 138.41 [+0.32] TEST: Modify metric of address [ OK ] # 138.70 [+0.29] TEST: Prefix route removed on link down [ OK ] # 139.05 [+0.35] TEST: Prefix route with metric on link up [ OK ] # 139.64 [+0.59] TEST: Modify metric of .0/24 address [ OK ] # 140.12 [+0.48] TEST: Set metric of address with peer route [ OK ] # 140.44 [+0.32] TEST: Modify metric and peer address for peer route [ OK ] # 142.00 [+1.56] # 142.00 [+0.00] IPv6 routes with metrics # 150.35 [+8.35] TEST: Single path route with mtu metric [ OK ] # 150.80 [+0.45] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 151.32 [+0.52] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 151.63 [+0.31] TEST: MTU of second leg [ OK ] # 151.95 [+0.32] TEST: Multipath route with mtu metric [ OK ] # 152.32 [+0.37] TEST: Using route with mtu metric [ OK ] # 152.60 [+0.28] TEST: Invalid metric (fails metric_convert) [ OK ] # 155.20 [+2.60] # 155.21 [+0.00] IPv4 route add / append tests # 162.70 [+7.50] TEST: Single path route with mtu metric [ OK ] # 163.01 [+0.30] TEST: Multipath route with mtu metric [ OK ] # 163.39 [+0.39] TEST: Using route with mtu metric [ OK ] # 163.66 [+0.27] TEST: Invalid metric (fails metric_convert) [ OK ] # 166.28 [+2.62] # 166.28 [+0.00] IPv4 route with IPv6 gateway tests # 175.65 [+9.36] TEST: Single path route with IPv6 gateway [ OK ] # 176.05 [+0.40] TEST: Single path route with IPv6 gateway - ping [ OK ] # 176.20 [+0.15] TEST: Single path route delete [ OK ] # 176.52 [+0.32] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 176.88 [+0.36] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 177.03 [+0.16] TEST: Multipath route delete exact match [ OK ] # 177.18 [+0.15] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 177.52 [+0.34] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 177.66 [+0.13] TEST: Multipath route delete exact match [ OK ] # 180.35 [+2.69] # 180.35 [+0.00] IPv4 rp_filter tests # 190.60 [+10.25] TEST: rp_filter passes local packets [ OK ] # 190.83 [+0.23] TEST: rp_filter passes loopback packets [ OK ] # 192.09 [+1.25] # 192.09 [+0.00] IPv4 delete address route tests # 196.83 [+4.74] Regular FIB info # 197.17 [+0.35] TEST: Route removed from VRF when source address deleted [ OK ] # 197.31 [+0.14] TEST: Route in default VRF not removed [ OK ] # 197.87 [+0.56] TEST: Route removed in default VRF when source address deleted [ OK ] # 198.04 [+0.17] TEST: Route in VRF is not removed by address delete [ OK ] # 198.04 [+0.00] Identical FIB info with different table ID # 198.34 [+0.30] TEST: Route removed from VRF when source address deleted [ OK ] # 198.54 [+0.20] TEST: Route in default VRF not removed [ OK ] # 199.04 [+0.50] TEST: Route removed in default VRF when source address deleted [ OK ] # 199.22 [+0.18] TEST: Route in VRF is not removed by address delete [ OK ] # 199.23 [+0.00] Table ID 0 # 199.54 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 201.04 [+1.50] # 201.04 [+0.00] IPv6 delete address route tests # 209.31 [+8.27] Single device using src address # 209.64 [+0.33] TEST: Prefsrc removed when src address removed on other device [ OK ] # 209.65 [+0.00] Two devices with the same source address # 210.00 [+0.35] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 210.27 [+0.27] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 210.27 [+0.00] VRF with single device using src address # 210.53 [+0.26] TEST: Prefsrc removed when src address removed on other device [ OK ] # 210.54 [+0.00] VRF with two devices using src address # 210.82 [+0.28] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 211.12 [+0.31] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 211.13 [+0.00] src address and nexthop dev in same VRF # 211.41 [+0.28] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 211.53 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 212.11 [+0.59] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 212.26 [+0.15] TEST: Prefsrc in default VRF removed [ OK ] # 212.27 [+0.00] src address and nexthop device in different VRF # 212.62 [+0.35] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 212.82 [+0.20] TEST: Prefsrc not removed in default VRF [ OK ] # 213.33 [+0.51] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 213.49 [+0.16] TEST: Prefsrc removed in default VRF [ OK ] # 213.49 [+0.00] Table ID 0 # 213.80 [+0.31] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 213.81 [+0.01] Link local source route # 214.13 [+0.31] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 214.42 [+0.29] TEST: Prefsrc removed when delete ll addr [ OK ] # 214.60 [+0.19] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 215.07 [+0.46] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 217.71 [+2.64] # 217.71 [+0.00] IPv4 mangling tests # 229.66 [+11.96] TEST: Connection with correct parameters [ OK ] # 229.94 [+0.28] TEST: Connection with incorrect parameters [ OK ] # 231.37 [+1.43] TEST: Connection with correct parameters - mangling [ OK ] # 232.41 [+1.05] TEST: Connection with correct parameters - no mangling [ OK ] # 232.53 [+0.12] TEST: Connection check - server side [ OK ] # 235.78 [+3.25] # 235.78 [+0.00] IPv6 mangling tests # 247.21 [+11.44] TEST: Connection with correct parameters [ OK ] # 247.71 [+0.50] TEST: Connection with incorrect parameters [ OK ] # 250.14 [+2.43] TEST: Connection with correct parameters - mangling [ OK ] # 252.69 [+2.55] TEST: Connection with correct parameters - no mangling [ OK ] # 252.91 [+0.21] TEST: Connection check - server side [ OK ] # 257.88 [+4.98] # 257.88 [+0.00] IPv4 broadcast neighbour tests # 262.60 [+4.72] TEST: Resolved neighbour for broadcast address [ OK ] # 262.77 [+0.17] TEST: Resolved neighbour for network broadcast address [ OK ] # 262.98 [+0.20] TEST: Unresolved neighbour for broadcast address [ OK ] # 263.13 [+0.16] TEST: Unresolved neighbour for network broadcast address [ OK ] # 266.63 [+3.49] # 266.63 [+0.00] Fib6 garbage collection test # 280.79 [+14.16] TEST: ipv6 route garbage collection [ OK ] # 295.23 [+14.44] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 309.80 [+14.56] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 324.39 [+14.60] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 339.58 [+15.18] TEST: ipv6 route garbage collection (RA message) [ OK ] # 341.00 [+1.42] # 341.00 [+0.00] IPv4 multipath list receive tests # 365.98 [+24.99] TEST: Multipath route hit ratio (1.00) [ OK ] # 368.76 [+2.77] # 368.76 [+0.00] IPv6 multipath list receive tests # 391.43 [+22.67] TEST: Multipath route hit ratio (1.00) [ OK ] # 394.23 [+2.80] # 394.23 [+0.00] Tests passed: 229 # 394.23 [+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__->