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.12 [+1.12] # 1.12 [+0.00] Single path route test # 3.09 [+1.97] Start point # 3.25 [+0.16] TEST: IPv4 fibmatch [ OK ] # 3.40 [+0.16] TEST: IPv6 fibmatch [ OK ] # 3.62 [+0.22] Nexthop device deleted # 3.79 [+0.17] TEST: IPv4 fibmatch - no route [ OK ] # 3.94 [+0.16] TEST: IPv6 fibmatch - no route [ OK ] # 4.91 [+0.96] # 4.91 [+0.00] Multipath route test # 8.17 [+3.26] Start point # 8.34 [+0.17] TEST: IPv4 fibmatch [ OK ] # 8.48 [+0.14] TEST: IPv6 fibmatch [ OK ] # 8.67 [+0.19] One nexthop device deleted # 8.83 [+0.16] TEST: IPv4 - multipath route removed on delete [ OK ] # 9.00 [+0.17] TEST: IPv6 - multipath down to single path [ OK ] # 9.20 [+0.20] Second nexthop device deleted # 9.36 [+0.16] TEST: IPv6 - no route [ OK ] # 10.31 [+0.95] # 10.31 [+0.00] Single path, admin down # 12.68 [+2.37] Start point # 12.86 [+0.17] TEST: IPv4 fibmatch [ OK ] # 13.02 [+0.16] TEST: IPv6 fibmatch [ OK ] # 13.18 [+0.17] Route deleted on down # 13.34 [+0.16] TEST: IPv4 fibmatch [ OK ] # 13.51 [+0.16] TEST: IPv6 fibmatch [ OK ] # 14.37 [+0.86] # 14.37 [+0.00] Admin down multipath # 17.84 [+3.48] Verify start point # 18.00 [+0.16] TEST: IPv4 fibmatch [ OK ] # 18.17 [+0.17] TEST: IPv6 fibmatch [ OK ] # 18.34 [+0.17] One device down, one up # 18.51 [+0.17] TEST: IPv4 fibmatch on down device [ OK ] # 18.67 [+0.16] TEST: IPv6 fibmatch on down device [ OK ] # 18.84 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 19.01 [+0.17] TEST: IPv6 fibmatch on up device [ OK ] # 19.18 [+0.17] TEST: IPv4 flags on down device [ OK ] # 19.38 [+0.20] TEST: IPv6 flags on down device [ OK ] # 19.52 [+0.14] TEST: IPv4 flags on up device [ OK ] # 19.69 [+0.18] TEST: IPv6 flags on up device [ OK ] # 20.04 [+0.34] Other device down and up # 20.21 [+0.17] TEST: IPv4 fibmatch on down device [ OK ] # 20.37 [+0.17] TEST: IPv6 fibmatch on down device [ OK ] # 20.54 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 20.71 [+0.16] TEST: IPv6 fibmatch on up device [ OK ] # 20.84 [+0.13] TEST: IPv4 flags on down device [ OK ] # 20.99 [+0.16] TEST: IPv6 flags on down device [ OK ] # 21.15 [+0.16] TEST: IPv4 flags on up device [ OK ] # 21.32 [+0.17] TEST: IPv6 flags on up device [ OK ] # 21.49 [+0.17] Both devices down # 21.67 [+0.18] TEST: IPv4 fibmatch [ OK ] # 21.87 [+0.20] TEST: IPv6 fibmatch [ OK ] # 23.07 [+1.20] # 23.07 [+0.00] Local carrier tests - single path # 26.05 [+2.97] Start point # 26.25 [+0.20] TEST: IPv4 fibmatch [ OK ] # 26.47 [+0.22] TEST: IPv6 fibmatch [ OK ] # 26.65 [+0.19] TEST: IPv4 - no linkdown flag [ OK ] # 26.83 [+0.17] TEST: IPv6 - no linkdown flag [ OK ] # 28.16 [+1.34] Carrier off on nexthop # 28.34 [+0.18] TEST: IPv4 fibmatch [ OK ] # 28.53 [+0.19] TEST: IPv6 fibmatch [ OK ] # 28.70 [+0.17] TEST: IPv4 - linkdown flag set [ OK ] # 28.84 [+0.15] TEST: IPv6 - linkdown flag set [ OK ] # 29.20 [+0.36] Route to local address with carrier down # 29.38 [+0.18] TEST: IPv4 fibmatch [ OK ] # 29.59 [+0.21] TEST: IPv6 fibmatch [ OK ] # 29.76 [+0.17] TEST: IPv4 linkdown flag set [ OK ] # 29.93 [+0.17] TEST: IPv6 linkdown flag set [ OK ] # 30.79 [+0.86] # 30.79 [+0.00] Single path route carrier test # 33.87 [+3.08] Start point # 34.08 [+0.21] TEST: IPv4 fibmatch [ OK ] # 34.29 [+0.21] TEST: IPv6 fibmatch [ OK ] # 34.47 [+0.18] TEST: IPv4 no linkdown flag [ OK ] # 34.70 [+0.23] TEST: IPv6 no linkdown flag [ OK ] # 36.00 [+1.30] Carrier down # 36.18 [+0.18] TEST: IPv4 fibmatch [ OK ] # 36.38 [+0.20] TEST: IPv6 fibmatch [ OK ] # 36.55 [+0.17] TEST: IPv4 linkdown flag set [ OK ] # 36.71 [+0.17] TEST: IPv6 linkdown flag set [ OK ] # 37.07 [+0.36] Second address added with carrier down # 37.24 [+0.18] TEST: IPv4 fibmatch [ OK ] # 37.42 [+0.18] TEST: IPv6 fibmatch [ OK ] # 37.56 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 37.73 [+0.17] TEST: IPv6 linkdown flag set [ OK ] # 45.83 [+8.10] # 45.83 [+0.00] IPv4 nexthop tests # 45.83 [+0.00] <<< write me >>> # 46.19 [+0.36] # 46.19 [+0.00] IPv6 nexthop tests # 46.37 [+0.18] TEST: Directly connected nexthop, unicast address [ OK ] # 46.56 [+0.19] TEST: Directly connected nexthop, unicast address with device [ OK ] # 46.74 [+0.18] TEST: Gateway is linklocal address [ OK ] # 46.92 [+0.17] TEST: Gateway is linklocal address, no device [ OK ] # 47.11 [+0.19] TEST: Gateway can not be local unicast address [ OK ] # 47.29 [+0.18] TEST: Gateway can not be local unicast address, with device [ OK ] # 47.50 [+0.21] TEST: Gateway can not be a local linklocal address [ OK ] # 47.72 [+0.21] TEST: Gateway can be local address in a VRF [ OK ] # 47.93 [+0.21] TEST: Gateway can be local address in a VRF, with device [ OK ] # 48.13 [+0.20] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 48.32 [+0.19] TEST: Redirect to VRF lookup [ OK ] # 48.54 [+0.22] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 48.74 [+0.20] TEST: VRF route, gateway can not be a local address [ OK ] # 48.95 [+0.21] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 50.80 [+1.85] # 50.80 [+0.00] FIB rule with suppress_prefixlength # 54.56 [+3.76] TEST: FIB rule suppress test [ OK ] # 57.72 [+3.16] # 57.72 [+0.00] Fib6 info length calculation in route notify test # 63.66 [+5.94] TEST: ipv6 route add notify [ OK ] # 66.92 [+3.26] # 66.92 [+0.00] Fib4 info length calculation in route notify test # 72.65 [+5.73] TEST: ipv4 route add notify [ OK ] # 81.15 [+8.50] # 81.15 [+0.00] IPv6 route add / append tests # 81.83 [+0.67] TEST: Attempt to add duplicate route - gw [ OK ] # 82.49 [+0.66] TEST: Attempt to add duplicate route - dev only [ OK ] # 83.20 [+0.72] TEST: Attempt to add duplicate route - reject route [ OK ] # 84.02 [+0.82] TEST: Append nexthop to existing route - gw [ OK ] # 84.72 [+0.70] TEST: Add multipath route [ OK ] # 85.44 [+0.72] TEST: Attempt to add duplicate multipath route [ OK ] # 86.28 [+0.84] TEST: Route add with different metrics [ OK ] # 86.61 [+0.33] TEST: Route delete with metric [ OK ] # 86.62 [+0.00] # 86.62 [+0.00] IPv6 route replace tests # 87.44 [+0.82] TEST: Single path with single path [ OK ] # 88.31 [+0.87] TEST: Single path with multipath [ OK ] # 89.13 [+0.82] TEST: Single path with single path via multipath attribute [ OK ] # 89.97 [+0.84] TEST: Invalid nexthop [ OK ] # 90.64 [+0.67] TEST: Single path - replace of non-existent route [ OK ] # 91.45 [+0.82] TEST: Multipath with multipath [ OK ] # 92.26 [+0.81] TEST: Multipath with single path [ OK ] # 93.09 [+0.83] TEST: Multipath with single path via multipath attribute [ OK ] # 93.92 [+0.83] TEST: Multipath with dev-only [ OK ] # 94.77 [+0.85] TEST: Multipath - invalid first nexthop [ OK ] # 95.62 [+0.85] TEST: Multipath - invalid second nexthop [ OK ] # 96.28 [+0.66] TEST: Multipath - replace of non-existent route [ OK ] # 96.28 [+0.00] # 96.28 [+0.00] IPv6 route with dsfield tests # 96.63 [+0.34] TEST: Reject route with dsfield [ OK ] # 108.05 [+11.42] # 108.05 [+0.00] IPv4 route add / append tests # 108.68 [+0.64] TEST: Attempt to add duplicate route - gw [ OK ] # 109.35 [+0.67] TEST: Attempt to add duplicate route - dev only [ OK ] # 110.00 [+0.65] TEST: Attempt to add duplicate route - reject route [ OK ] # 110.85 [+0.84] TEST: Add new nexthop for existing prefix [ OK ] # 111.66 [+0.81] TEST: Append nexthop to existing route - gw [ OK ] # 112.49 [+0.83] TEST: Append nexthop to existing route - dev only [ OK ] # 113.33 [+0.84] TEST: Append nexthop to existing route - reject route [ OK ] # 113.99 [+0.66] TEST: Append nexthop to existing reject route - gw [ OK ] # 114.65 [+0.66] TEST: Append nexthop to existing reject route - dev only [ OK ] # 115.32 [+0.67] TEST: add multipath route [ OK ] # 115.97 [+0.65] TEST: Attempt to add duplicate multipath route [ OK ] # 116.79 [+0.82] TEST: Route add with different metrics [ OK ] # 117.14 [+0.35] TEST: Route delete with metric [ OK ] # 117.15 [+0.00] # 117.15 [+0.00] IPv4 route replace tests # 117.97 [+0.82] TEST: Single path with single path [ OK ] # 118.81 [+0.84] TEST: Single path with multipath [ OK ] # 119.63 [+0.82] TEST: Single path with reject route [ OK ] # 120.46 [+0.82] TEST: Single path with single path via multipath attribute [ OK ] # 121.28 [+0.82] TEST: Invalid nexthop [ OK ] # 121.93 [+0.65] TEST: Single path - replace of non-existent route [ OK ] # 122.76 [+0.82] TEST: Multipath with multipath [ OK ] # 123.57 [+0.81] TEST: Multipath with single path [ OK ] # 124.37 [+0.81] TEST: Multipath with single path via multipath attribute [ OK ] # 125.19 [+0.82] TEST: Multipath with reject route [ OK ] # 126.03 [+0.84] TEST: Multipath - invalid first nexthop [ OK ] # 126.86 [+0.83] TEST: Multipath - invalid second nexthop [ OK ] # 127.57 [+0.72] TEST: Multipath - replace of non-existent route [ OK ] # 130.03 [+2.46] TEST: Cached route removed from VRF port device [ OK ] # 130.04 [+0.00] # 130.04 [+0.00] IPv4 route with dsfield tests # 130.37 [+0.34] TEST: Reject route with dsfield 0x01 [ OK ] # 130.55 [+0.17] TEST: Reject route with dsfield 0x02 [ OK ] # 130.71 [+0.16] TEST: Reject route with dsfield 0x03 [ OK ] # 131.17 [+0.46] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 131.33 [+0.16] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 131.45 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 131.60 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 131.75 [+0.16] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 131.88 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 132.04 [+0.16] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 132.18 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 132.32 [+0.14] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 132.47 [+0.15] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 132.60 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 132.74 [+0.13] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 135.48 [+2.75] # 135.48 [+0.00] IPv6 prefix route tests # 139.08 [+3.60] TEST: Default metric [ OK ] # 139.56 [+0.48] TEST: User specified metric on first device [ OK ] # 140.06 [+0.50] TEST: User specified metric on second device [ OK ] # 140.39 [+0.33] TEST: Delete of address on first device [ OK ] # 140.71 [+0.32] TEST: Modify metric of address [ OK ] # 141.31 [+0.60] TEST: Prefix route removed on link down [ OK ] # 141.63 [+0.32] TEST: Prefix route with metric on link up [ OK ] # 142.10 [+0.47] TEST: Set metric with peer route on local side [ OK ] # 142.24 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 142.55 [+0.31] TEST: Modify metric and peer address on local side [ OK ] # 142.70 [+0.15] TEST: Modify metric and peer address on peer side [ OK ] # 144.45 [+1.75] # 144.45 [+0.00] IPv4 prefix route tests # 147.93 [+3.48] TEST: Default metric [ OK ] # 148.42 [+0.49] TEST: User specified metric on first device [ OK ] # 148.92 [+0.50] TEST: User specified metric on second device [ OK ] # 149.25 [+0.33] TEST: Delete of address on first device [ OK ] # 149.58 [+0.33] TEST: Modify metric of address [ OK ] # 149.90 [+0.33] TEST: Prefix route removed on link down [ OK ] # 150.23 [+0.32] TEST: Prefix route with metric on link up [ OK ] # 150.89 [+0.66] TEST: Modify metric of .0/24 address [ OK ] # 151.40 [+0.50] TEST: Set metric of address with peer route [ OK ] # 151.73 [+0.33] TEST: Modify metric and peer address for peer route [ OK ] # 153.49 [+1.76] # 153.49 [+0.00] IPv6 routes with metrics # 162.47 [+8.98] TEST: Single path route with mtu metric [ OK ] # 162.98 [+0.51] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 163.49 [+0.51] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 163.81 [+0.32] TEST: MTU of second leg [ OK ] # 164.14 [+0.33] TEST: Multipath route with mtu metric [ OK ] # 164.61 [+0.46] TEST: Using route with mtu metric [ OK ] # 164.90 [+0.29] TEST: Invalid metric (fails metric_convert) [ OK ] # 167.80 [+2.90] # 167.80 [+0.00] IPv4 route add / append tests # 176.86 [+9.07] TEST: Single path route with mtu metric [ OK ] # 177.20 [+0.34] TEST: Multipath route with mtu metric [ OK ] # 177.66 [+0.46] TEST: Using route with mtu metric [ OK ] # 177.96 [+0.30] TEST: Invalid metric (fails metric_convert) [ OK ] # 180.82 [+2.86] # 180.82 [+0.00] IPv4 route with IPv6 gateway tests # 191.94 [+11.12] TEST: Single path route with IPv6 gateway [ OK ] # 192.39 [+0.45] TEST: Single path route with IPv6 gateway - ping [ OK ] # 192.56 [+0.17] TEST: Single path route delete [ OK ] # 192.90 [+0.34] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 193.24 [+0.34] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 193.42 [+0.18] TEST: Multipath route delete exact match [ OK ] # 193.59 [+0.17] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 193.93 [+0.34] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 194.10 [+0.17] TEST: Multipath route delete exact match [ OK ] # 196.88 [+2.79] # 196.88 [+0.00] IPv4 rp_filter tests # 208.84 [+11.95] TEST: rp_filter passes local packets [ OK ] # 209.13 [+0.29] TEST: rp_filter passes loopback packets [ OK ] # 210.49 [+1.36] # 210.49 [+0.00] IPv4 delete address route tests # 215.97 [+5.48] Regular FIB info # 216.29 [+0.32] TEST: Route removed from VRF when source address deleted [ OK ] # 216.42 [+0.14] TEST: Route in default VRF not removed [ OK ] # 217.05 [+0.63] TEST: Route removed in default VRF when source address deleted [ OK ] # 217.20 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 217.20 [+0.00] Identical FIB info with different table ID # 217.50 [+0.29] TEST: Route removed from VRF when source address deleted [ OK ] # 217.66 [+0.16] TEST: Route in default VRF not removed [ OK ] # 218.25 [+0.60] TEST: Route removed in default VRF when source address deleted [ OK ] # 218.40 [+0.15] TEST: Route in VRF is not removed by address delete [ OK ] # 218.40 [+0.00] Table ID 0 # 218.69 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 220.42 [+1.72] # 220.42 [+0.00] IPv6 delete address route tests # 229.63 [+9.22] Single device using src address # 229.92 [+0.29] TEST: Prefsrc removed when src address removed on other device [ OK ] # 229.93 [+0.00] Two devices with the same source address # 230.21 [+0.29] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 230.53 [+0.31] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 230.53 [+0.00] VRF with single device using src address # 230.86 [+0.33] TEST: Prefsrc removed when src address removed on other device [ OK ] # 230.87 [+0.00] VRF with two devices using src address # 231.15 [+0.28] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 231.45 [+0.31] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 231.46 [+0.01] src address and nexthop dev in same VRF # 231.76 [+0.30] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 231.88 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 232.48 [+0.60] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 232.62 [+0.13] TEST: Prefsrc in default VRF removed [ OK ] # 232.62 [+0.00] src address and nexthop device in different VRF # 232.92 [+0.30] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 233.07 [+0.15] TEST: Prefsrc not removed in default VRF [ OK ] # 233.52 [+0.44] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 233.66 [+0.14] TEST: Prefsrc removed in default VRF [ OK ] # 233.66 [+0.00] Table ID 0 # 233.96 [+0.30] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 233.96 [+0.00] Link local source route # 234.27 [+0.31] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 234.57 [+0.29] TEST: Prefsrc removed when delete ll addr [ OK ] # 234.69 [+0.13] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 235.15 [+0.46] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 237.84 [+2.69] # 237.84 [+0.00] IPv4 mangling tests # 250.09 [+12.24] TEST: Connection with correct parameters [ OK ] # 250.40 [+0.31] TEST: Connection with incorrect parameters [ OK ] # 251.69 [+1.29] TEST: Connection with correct parameters - mangling [ OK ] # 252.88 [+1.20] TEST: Connection with correct parameters - no mangling [ OK ] # 253.00 [+0.12] TEST: Connection check - server side [ OK ] # 256.45 [+3.45] # 256.45 [+0.00] IPv6 mangling tests # 269.02 [+12.56] TEST: Connection with correct parameters [ OK ] # 269.39 [+0.37] TEST: Connection with incorrect parameters [ OK ] # 270.59 [+1.20] TEST: Connection with correct parameters - mangling [ OK ] # 271.83 [+1.24] TEST: Connection with correct parameters - no mangling [ OK ] # 271.96 [+0.13] TEST: Connection check - server side [ OK ] # 275.45 [+3.49] # 275.45 [+0.00] IPv4 broadcast neighbour tests # 279.82 [+4.37] TEST: Resolved neighbour for broadcast address [ OK ] # 280.00 [+0.18] TEST: Resolved neighbour for network broadcast address [ OK ] # 280.17 [+0.16] TEST: Unresolved neighbour for broadcast address [ OK ] # 280.33 [+0.16] TEST: Unresolved neighbour for network broadcast address [ OK ] # 284.08 [+3.75] # 284.08 [+0.00] Fib6 garbage collection test # 298.54 [+14.46] TEST: ipv6 route garbage collection [ OK ] # 313.46 [+14.92] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 328.32 [+14.86] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 343.61 [+15.29] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 358.91 [+15.30] TEST: ipv6 route garbage collection (RA message) [ OK ] # 360.26 [+1.36] # 360.26 [+0.00] IPv4 multipath list receive tests # 384.82 [+24.56] TEST: Multipath route hit ratio (1.00) [ OK ] # 387.87 [+3.05] # 387.87 [+0.00] IPv6 multipath list receive tests # 411.29 [+23.41] TEST: Multipath route hit ratio (1.00) [ OK ] # 414.39 [+3.10] # 414.39 [+0.00] Tests passed: 229 # 414.39 [+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__->