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 # 1.29 [+1.29] # 1.29 [+0.00] Single path route test # 3.63 [+2.34] Start point # 3.81 [+0.18] TEST: IPv4 fibmatch [ OK ] # 4.02 [+0.21] TEST: IPv6 fibmatch [ OK ] # 4.27 [+0.25] Nexthop device deleted # 4.52 [+0.25] TEST: IPv4 fibmatch - no route [ OK ] # 4.76 [+0.24] TEST: IPv6 fibmatch - no route [ OK ] # 6.12 [+1.35] # 6.12 [+0.00] Multipath route test # 10.24 [+4.13] Start point # 10.50 [+0.25] TEST: IPv4 fibmatch [ OK ] # 10.70 [+0.21] TEST: IPv6 fibmatch [ OK ] # 10.93 [+0.23] One nexthop device deleted # 11.17 [+0.23] TEST: IPv4 - multipath route removed on delete [ OK ] # 11.36 [+0.19] TEST: IPv6 - multipath down to single path [ OK ] # 11.63 [+0.26] Second nexthop device deleted # 11.84 [+0.21] TEST: IPv6 - no route [ OK ] # 13.10 [+1.26] # 13.10 [+0.00] Single path, admin down # 16.08 [+2.99] Start point # 16.33 [+0.25] TEST: IPv4 fibmatch [ OK ] # 16.55 [+0.22] TEST: IPv6 fibmatch [ OK ] # 16.77 [+0.22] Route deleted on down # 17.00 [+0.23] TEST: IPv4 fibmatch [ OK ] # 17.20 [+0.20] TEST: IPv6 fibmatch [ OK ] # 18.19 [+0.99] # 18.19 [+0.00] Admin down multipath # 22.43 [+4.24] Verify start point # 22.69 [+0.25] TEST: IPv4 fibmatch [ OK ] # 22.88 [+0.20] TEST: IPv6 fibmatch [ OK ] # 23.11 [+0.23] One device down, one up # 23.32 [+0.21] TEST: IPv4 fibmatch on down device [ OK ] # 23.53 [+0.21] TEST: IPv6 fibmatch on down device [ OK ] # 23.74 [+0.21] TEST: IPv4 fibmatch on up device [ OK ] # 23.95 [+0.21] TEST: IPv6 fibmatch on up device [ OK ] # 24.18 [+0.22] TEST: IPv4 flags on down device [ OK ] # 24.34 [+0.16] TEST: IPv6 flags on down device [ OK ] # 24.50 [+0.16] TEST: IPv4 flags on up device [ OK ] # 24.63 [+0.13] TEST: IPv6 flags on up device [ OK ] # 25.04 [+0.41] Other device down and up # 25.26 [+0.22] TEST: IPv4 fibmatch on down device [ OK ] # 25.44 [+0.19] TEST: IPv6 fibmatch on down device [ OK ] # 25.63 [+0.19] TEST: IPv4 fibmatch on up device [ OK ] # 25.84 [+0.21] TEST: IPv6 fibmatch on up device [ OK ] # 26.00 [+0.16] TEST: IPv4 flags on down device [ OK ] # 26.19 [+0.19] TEST: IPv6 flags on down device [ OK ] # 26.36 [+0.17] TEST: IPv4 flags on up device [ OK ] # 26.51 [+0.15] TEST: IPv6 flags on up device [ OK ] # 26.73 [+0.22] Both devices down # 26.95 [+0.22] TEST: IPv4 fibmatch [ OK ] # 27.12 [+0.17] TEST: IPv6 fibmatch [ OK ] # 28.35 [+1.23] # 28.35 [+0.00] Local carrier tests - single path # 31.32 [+2.96] Start point # 31.53 [+0.21] TEST: IPv4 fibmatch [ OK ] # 31.75 [+0.22] TEST: IPv6 fibmatch [ OK ] # 31.93 [+0.18] TEST: IPv4 - no linkdown flag [ OK ] # 32.12 [+0.18] TEST: IPv6 - no linkdown flag [ OK ] # 33.46 [+1.35] Carrier off on nexthop # 33.63 [+0.17] TEST: IPv4 fibmatch [ OK ] # 33.82 [+0.19] TEST: IPv6 fibmatch [ OK ] # 34.03 [+0.21] TEST: IPv4 - linkdown flag set [ OK ] # 34.24 [+0.21] TEST: IPv6 - linkdown flag set [ OK ] # 34.59 [+0.36] Route to local address with carrier down # 34.77 [+0.18] TEST: IPv4 fibmatch [ OK ] # 34.96 [+0.19] TEST: IPv6 fibmatch [ OK ] # 35.16 [+0.20] TEST: IPv4 linkdown flag set [ OK ] # 35.33 [+0.17] TEST: IPv6 linkdown flag set [ OK ] # 36.24 [+0.92] # 36.24 [+0.00] Single path route carrier test # 39.54 [+3.30] Start point # 39.73 [+0.18] TEST: IPv4 fibmatch [ OK ] # 39.95 [+0.22] TEST: IPv6 fibmatch [ OK ] # 40.14 [+0.20] TEST: IPv4 no linkdown flag [ OK ] # 40.31 [+0.17] TEST: IPv6 no linkdown flag [ OK ] # 41.68 [+1.38] Carrier down # 41.86 [+0.18] TEST: IPv4 fibmatch [ OK ] # 42.08 [+0.22] TEST: IPv6 fibmatch [ OK ] # 42.25 [+0.17] TEST: IPv4 linkdown flag set [ OK ] # 42.43 [+0.18] TEST: IPv6 linkdown flag set [ OK ] # 42.86 [+0.42] Second address added with carrier down # 43.10 [+0.24] TEST: IPv4 fibmatch [ OK ] # 43.31 [+0.21] TEST: IPv6 fibmatch [ OK ] # 43.48 [+0.17] TEST: IPv4 linkdown flag set [ OK ] # 43.63 [+0.15] TEST: IPv6 linkdown flag set [ OK ] # 52.29 [+8.66] # 52.29 [+0.00] IPv4 nexthop tests # 52.29 [+0.00] <<< write me >>> # 52.76 [+0.46] # 52.76 [+0.00] IPv6 nexthop tests # 53.02 [+0.26] TEST: Directly connected nexthop, unicast address [ OK ] # 53.23 [+0.21] TEST: Directly connected nexthop, unicast address with device [ OK ] # 53.47 [+0.24] TEST: Gateway is linklocal address [ OK ] # 53.66 [+0.19] TEST: Gateway is linklocal address, no device [ OK ] # 53.91 [+0.25] TEST: Gateway can not be local unicast address [ OK ] # 54.13 [+0.22] TEST: Gateway can not be local unicast address, with device [ OK ] # 54.35 [+0.22] TEST: Gateway can not be a local linklocal address [ OK ] # 54.61 [+0.26] TEST: Gateway can be local address in a VRF [ OK ] # 54.82 [+0.21] TEST: Gateway can be local address in a VRF, with device [ OK ] # 55.03 [+0.21] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 55.23 [+0.19] TEST: Redirect to VRF lookup [ OK ] # 55.43 [+0.20] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 55.60 [+0.18] TEST: VRF route, gateway can not be a local address [ OK ] # 55.81 [+0.21] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 57.80 [+1.98] # 57.80 [+0.00] FIB rule with suppress_prefixlength # 61.91 [+4.11] TEST: FIB rule suppress test [ OK ] # 65.85 [+3.95] # 65.85 [+0.00] Fib6 info length calculation in route notify test # 72.35 [+6.49] TEST: ipv6 route add notify [ OK ] # 76.20 [+3.85] # 76.20 [+0.00] Fib4 info length calculation in route notify test # 82.92 [+6.73] TEST: ipv4 route add notify [ OK ] # 93.52 [+10.60] # 93.52 [+0.00] IPv6 route add / append tests # 94.31 [+0.79] TEST: Attempt to add duplicate route - gw [ OK ] # 95.14 [+0.83] TEST: Attempt to add duplicate route - dev only [ OK ] # 95.96 [+0.82] TEST: Attempt to add duplicate route - reject route [ OK ] # 96.92 [+0.95] TEST: Append nexthop to existing route - gw [ OK ] # 97.67 [+0.75] TEST: Add multipath route [ OK ] # 98.47 [+0.80] TEST: Attempt to add duplicate multipath route [ OK ] # 99.55 [+1.08] TEST: Route add with different metrics [ OK ] # 99.98 [+0.43] TEST: Route delete with metric [ OK ] # 99.98 [+0.00] # 99.98 [+0.00] IPv6 route replace tests # 100.93 [+0.94] TEST: Single path with single path [ OK ] # 102.09 [+1.16] TEST: Single path with multipath [ OK ] # 103.16 [+1.07] TEST: Single path with single path via multipath attribute [ OK ] # 104.21 [+1.05] TEST: Invalid nexthop [ OK ] # 105.06 [+0.85] TEST: Single path - replace of non-existent route [ OK ] # 106.08 [+1.02] TEST: Multipath with multipath [ OK ] # 107.09 [+1.02] TEST: Multipath with single path [ OK ] # 108.10 [+1.01] TEST: Multipath with single path via multipath attribute [ OK ] # 109.12 [+1.02] TEST: Multipath with dev-only [ OK ] # 110.16 [+1.05] TEST: Multipath - invalid first nexthop [ OK ] # 111.26 [+1.09] TEST: Multipath - invalid second nexthop [ OK ] # 112.05 [+0.79] TEST: Multipath - replace of non-existent route [ OK ] # 112.05 [+0.00] # 112.05 [+0.00] IPv6 route with dsfield tests # 112.49 [+0.44] TEST: Reject route with dsfield [ OK ] # 130.78 [+18.29] # 130.78 [+0.00] IPv4 route add / append tests # 132.14 [+1.36] TEST: Attempt to add duplicate route - gw [ OK ] # 133.37 [+1.23] TEST: Attempt to add duplicate route - dev only [ OK ] # 134.41 [+1.04] TEST: Attempt to add duplicate route - reject route [ OK ] # 135.59 [+1.18] TEST: Add new nexthop for existing prefix [ OK ] # 136.65 [+1.06] TEST: Append nexthop to existing route - gw [ OK ] # 137.80 [+1.15] TEST: Append nexthop to existing route - dev only [ OK ] # 138.84 [+1.05] TEST: Append nexthop to existing route - reject route [ OK ] # 139.70 [+0.85] TEST: Append nexthop to existing reject route - gw [ OK ] # 140.53 [+0.83] TEST: Append nexthop to existing reject route - dev only [ OK ] # 141.38 [+0.85] TEST: add multipath route [ OK ] # 142.18 [+0.80] TEST: Attempt to add duplicate multipath route [ OK ] # 143.18 [+1.00] TEST: Route add with different metrics [ OK ] # 143.64 [+0.46] TEST: Route delete with metric [ OK ] # 143.64 [+0.00] # 143.64 [+0.00] IPv4 route replace tests # 144.72 [+1.07] TEST: Single path with single path [ OK ] # 145.80 [+1.09] TEST: Single path with multipath [ OK ] # 146.88 [+1.07] TEST: Single path with reject route [ OK ] # 147.88 [+1.01] TEST: Single path with single path via multipath attribute [ OK ] # 148.89 [+1.01] TEST: Invalid nexthop [ OK ] # 149.73 [+0.84] TEST: Single path - replace of non-existent route [ OK ] # 150.77 [+1.04] TEST: Multipath with multipath [ OK ] # 151.84 [+1.07] TEST: Multipath with single path [ OK ] # 152.90 [+1.06] TEST: Multipath with single path via multipath attribute [ OK ] # 154.04 [+1.14] TEST: Multipath with reject route [ OK ] # 155.06 [+1.02] TEST: Multipath - invalid first nexthop [ OK ] # 156.11 [+1.05] TEST: Multipath - invalid second nexthop [ OK ] # 156.93 [+0.82] TEST: Multipath - replace of non-existent route [ OK ] # 159.78 [+2.85] TEST: Cached route removed from VRF port device [ OK ] # 159.78 [+0.00] # 159.78 [+0.00] IPv4 route with dsfield tests # 160.16 [+0.37] TEST: Reject route with dsfield 0x01 [ OK ] # 160.34 [+0.18] TEST: Reject route with dsfield 0x02 [ OK ] # 160.53 [+0.19] TEST: Reject route with dsfield 0x03 [ OK ] # 161.11 [+0.58] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 161.27 [+0.16] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 161.49 [+0.22] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 161.69 [+0.20] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 161.84 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 162.04 [+0.20] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 162.22 [+0.18] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 162.43 [+0.21] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 162.59 [+0.16] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 162.75 [+0.16] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 162.94 [+0.19] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 163.15 [+0.21] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 166.57 [+3.41] # 166.57 [+0.00] IPv6 prefix route tests # 171.01 [+4.44] TEST: Default metric [ OK ] # 171.62 [+0.61] TEST: User specified metric on first device [ OK ] # 172.28 [+0.65] TEST: User specified metric on second device [ OK ] # 172.67 [+0.40] TEST: Delete of address on first device [ OK ] # 173.15 [+0.48] TEST: Modify metric of address [ OK ] # 173.96 [+0.81] TEST: Prefix route removed on link down [ OK ] # 174.33 [+0.36] TEST: Prefix route with metric on link up [ OK ] # 174.91 [+0.58] TEST: Set metric with peer route on local side [ OK ] # 175.13 [+0.22] TEST: Set metric with peer route on peer side [ OK ] # 175.51 [+0.38] TEST: Modify metric and peer address on local side [ OK ] # 175.70 [+0.19] TEST: Modify metric and peer address on peer side [ OK ] # 177.68 [+1.98] # 177.68 [+0.00] IPv4 prefix route tests # 181.92 [+4.24] TEST: Default metric [ OK ] # 182.52 [+0.60] TEST: User specified metric on first device [ OK ] # 183.17 [+0.65] TEST: User specified metric on second device [ OK ] # 183.55 [+0.38] TEST: Delete of address on first device [ OK ] # 183.97 [+0.42] TEST: Modify metric of address [ OK ] # 184.35 [+0.38] TEST: Prefix route removed on link down [ OK ] # 184.78 [+0.43] TEST: Prefix route with metric on link up [ OK ] # 185.56 [+0.78] TEST: Modify metric of .0/24 address [ OK ] # 186.17 [+0.61] TEST: Set metric of address with peer route [ OK ] # 186.60 [+0.43] TEST: Modify metric and peer address for peer route [ OK ] # 188.73 [+2.13] # 188.73 [+0.00] IPv6 routes with metrics # 200.18 [+11.45] TEST: Single path route with mtu metric [ OK ] # 200.83 [+0.65] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 201.51 [+0.68] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 201.91 [+0.39] TEST: MTU of second leg [ OK ] # 202.36 [+0.45] TEST: Multipath route with mtu metric [ OK ] # 202.86 [+0.50] TEST: Using route with mtu metric [ OK ] # 203.20 [+0.34] TEST: Invalid metric (fails metric_convert) [ OK ] # 206.44 [+3.24] # 206.44 [+0.00] IPv4 route add / append tests # 217.19 [+10.76] TEST: Single path route with mtu metric [ OK ] # 217.58 [+0.39] TEST: Multipath route with mtu metric [ OK ] # 218.13 [+0.55] TEST: Using route with mtu metric [ OK ] # 218.49 [+0.36] TEST: Invalid metric (fails metric_convert) [ OK ] # 221.97 [+3.49] # 221.97 [+0.00] IPv4 route with IPv6 gateway tests # 234.85 [+12.87] TEST: Single path route with IPv6 gateway [ OK ] # 235.44 [+0.59] TEST: Single path route with IPv6 gateway - ping [ OK ] # 235.68 [+0.24] TEST: Single path route delete [ OK ] # 236.11 [+0.44] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 236.54 [+0.43] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 236.72 [+0.18] TEST: Multipath route delete exact match [ OK ] # 236.91 [+0.19] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 237.36 [+0.45] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 237.55 [+0.20] TEST: Multipath route delete exact match [ OK ] # 241.08 [+3.52] # 241.08 [+0.00] IPv4 rp_filter tests # 255.14 [+14.06] TEST: rp_filter passes local packets [ OK ] # 255.48 [+0.34] TEST: rp_filter passes loopback packets [ OK ] # 257.23 [+1.75] # 257.23 [+0.00] IPv4 delete address route tests # 263.91 [+6.68] Regular FIB info # 264.24 [+0.32] TEST: Route removed from VRF when source address deleted [ OK ] # 264.42 [+0.19] TEST: Route in default VRF not removed [ OK ] # 265.20 [+0.78] TEST: Route removed in default VRF when source address deleted [ OK ] # 265.35 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 265.35 [+0.00] Identical FIB info with different table ID # 265.70 [+0.34] TEST: Route removed from VRF when source address deleted [ OK ] # 265.90 [+0.20] TEST: Route in default VRF not removed [ OK ] # 266.64 [+0.74] TEST: Route removed in default VRF when source address deleted [ OK ] # 266.81 [+0.17] TEST: Route in VRF is not removed by address delete [ OK ] # 266.81 [+0.00] Table ID 0 # 267.15 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 269.22 [+2.08] # 269.22 [+0.00] IPv6 delete address route tests # 280.45 [+11.23] Single device using src address # 280.84 [+0.38] TEST: Prefsrc removed when src address removed on other device [ OK ] # 280.84 [+0.00] Two devices with the same source address # 281.20 [+0.36] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 281.58 [+0.38] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 281.58 [+0.00] VRF with single device using src address # 282.00 [+0.42] TEST: Prefsrc removed when src address removed on other device [ OK ] # 282.01 [+0.00] VRF with two devices using src address # 282.35 [+0.35] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 282.75 [+0.40] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 282.76 [+0.00] src address and nexthop dev in same VRF # 283.10 [+0.35] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 283.26 [+0.15] TEST: Prefsrc in default VRF not removed [ OK ] # 284.03 [+0.77] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 284.19 [+0.17] TEST: Prefsrc in default VRF removed [ OK ] # 284.20 [+0.00] src address and nexthop device in different VRF # 284.53 [+0.34] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 284.73 [+0.20] TEST: Prefsrc not removed in default VRF [ OK ] # 285.30 [+0.57] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 285.46 [+0.16] TEST: Prefsrc removed in default VRF [ OK ] # 285.46 [+0.00] Table ID 0 # 285.80 [+0.34] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 285.80 [+0.00] Link local source route # 286.20 [+0.40] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 286.60 [+0.40] TEST: Prefsrc removed when delete ll addr [ OK ] # 286.77 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 287.34 [+0.57] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 290.56 [+3.22] # 290.56 [+0.00] IPv4 mangling tests # 305.76 [+15.20] TEST: Connection with correct parameters [ OK ] # 306.14 [+0.38] TEST: Connection with incorrect parameters [ OK ] # 307.88 [+1.74] TEST: Connection with correct parameters - mangling [ OK ] # 309.22 [+1.34] TEST: Connection with correct parameters - no mangling [ OK ] # 309.37 [+0.14] TEST: Connection check - server side [ OK ] # 313.55 [+4.18] # 313.55 [+0.00] IPv6 mangling tests # 328.53 [+14.98] TEST: Connection with correct parameters [ OK ] # 328.97 [+0.44] TEST: Connection with incorrect parameters [ OK ] # 330.32 [+1.36] TEST: Connection with correct parameters - mangling [ OK ] # 331.78 [+1.46] TEST: Connection with correct parameters - no mangling [ OK ] # 331.96 [+0.17] TEST: Connection check - server side [ OK ] # 336.48 [+4.52] # 336.48 [+0.00] IPv4 broadcast neighbour tests # 341.79 [+5.30] TEST: Resolved neighbour for broadcast address [ OK ] # 342.00 [+0.21] TEST: Resolved neighbour for network broadcast address [ OK ] # 342.22 [+0.22] TEST: Unresolved neighbour for broadcast address [ OK ] # 342.45 [+0.23] TEST: Unresolved neighbour for network broadcast address [ OK ] # 346.99 [+4.54] # 346.99 [+0.00] Fib6 garbage collection test # 362.05 [+15.06] TEST: ipv6 route garbage collection [ OK ] # 377.43 [+15.38] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 392.59 [+15.16] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 408.03 [+15.44] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 423.78 [+15.75] TEST: ipv6 route garbage collection (RA message) [ OK ] # 425.64 [+1.85] # 425.64 [+0.00] IPv4 multipath list receive tests # 454.90 [+29.26] TEST: Multipath route hit ratio (1.00) [ OK ] # 458.35 [+3.46] # 458.35 [+0.00] IPv6 multipath list receive tests # 485.41 [+27.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 488.91 [+3.50] # 488.91 [+0.00] Tests passed: 229 # 488.91 [+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__->