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.43 [+0.43] # 0.43 [+0.00] Single path route test # 1.31 [+0.88] Start point # 1.39 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.48 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.60 [+0.12] Nexthop device deleted # 1.68 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.76 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.27 [+0.50] # 2.27 [+0.00] Multipath route test # 3.87 [+1.61] Start point # 3.95 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.04 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.16 [+0.13] One nexthop device deleted # 4.24 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.32 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.43 [+0.11] Second nexthop device deleted # 4.52 [+0.09] TEST: IPv6 - no route [ OK ] # 5.02 [+0.51] # 5.02 [+0.00] Single path, admin down # 6.13 [+1.11] Start point # 6.21 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.28 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.37 [+0.08] Route deleted on down # 6.44 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.52 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.01 [+0.48] # 7.01 [+0.00] Admin down multipath # 8.85 [+1.84] Verify start point # 8.93 [+0.08] TEST: IPv4 fibmatch [ OK ] # 9.01 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.09 [+0.09] One device down, one up # 9.17 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.26 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.35 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.44 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 9.54 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.62 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.71 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.82 [+0.11] TEST: IPv6 flags on up device [ OK ] # 10.00 [+0.18] Other device down and up # 10.09 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.16 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 10.25 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.33 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.43 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.52 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.63 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.73 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.89 [+0.16] Both devices down # 11.00 [+0.11] TEST: IPv4 fibmatch [ OK ] # 11.16 [+0.16] TEST: IPv6 fibmatch [ OK ] # 11.78 [+0.62] # 11.78 [+0.00] Local carrier tests - single path # 13.02 [+1.24] Start point # 13.10 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.21 [+0.11] TEST: IPv6 fibmatch [ OK ] # 13.28 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 13.39 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 14.53 [+1.14] Carrier off on nexthop # 14.61 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.70 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.78 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 14.88 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 15.05 [+0.17] Route to local address with carrier down # 15.13 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.23 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.31 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 15.40 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 15.89 [+0.48] # 15.89 [+0.00] Single path route carrier test # 17.27 [+1.38] Start point # 17.36 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.45 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.53 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 17.62 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.76 [+1.14] Carrier down # 18.87 [+0.11] TEST: IPv4 fibmatch [ OK ] # 18.98 [+0.11] TEST: IPv6 fibmatch [ OK ] # 19.09 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 19.17 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.37 [+0.20] Second address added with carrier down # 19.47 [+0.10] TEST: IPv4 fibmatch [ OK ] # 19.56 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.65 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 19.76 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 24.94 [+5.19] # 24.94 [+0.00] IPv4 nexthop tests # 24.94 [+0.00] <<< write me >>> # 25.32 [+0.37] # 25.32 [+0.00] IPv6 nexthop tests # 25.44 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 25.55 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.68 [+0.13] TEST: Gateway is linklocal address [ OK ] # 25.84 [+0.16] TEST: Gateway is linklocal address, no device [ OK ] # 25.98 [+0.15] TEST: Gateway can not be local unicast address [ OK ] # 26.13 [+0.15] TEST: Gateway can not be local unicast address, with device [ OK ] # 26.25 [+0.12] TEST: Gateway can not be a local linklocal address [ OK ] # 26.37 [+0.13] TEST: Gateway can be local address in a VRF [ OK ] # 26.49 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.67 [+0.19] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 26.84 [+0.16] TEST: Redirect to VRF lookup [ OK ] # 26.97 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 27.14 [+0.17] TEST: VRF route, gateway can not be a local address [ OK ] # 27.30 [+0.16] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 28.65 [+1.35] # 28.65 [+0.00] FIB rule with suppress_prefixlength # 31.33 [+2.68] TEST: FIB rule suppress test [ OK ] # 33.45 [+2.12] # 33.45 [+0.00] Fib6 info length calculation in route notify test # 38.40 [+4.95] TEST: ipv6 route add notify [ OK ] # 40.31 [+1.91] # 40.31 [+0.00] Fib4 info length calculation in route notify test # 44.69 [+4.37] TEST: ipv4 route add notify [ OK ] # 49.41 [+4.73] # 49.41 [+0.00] IPv6 route add / append tests # 49.79 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 50.17 [+0.38] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.54 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 51.03 [+0.49] TEST: Append nexthop to existing route - gw [ OK ] # 51.40 [+0.37] TEST: Add multipath route [ OK ] # 51.77 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 52.22 [+0.45] TEST: Route add with different metrics [ OK ] # 52.43 [+0.21] TEST: Route delete with metric [ OK ] # 52.43 [+0.00] # 52.43 [+0.00] IPv6 route replace tests # 52.86 [+0.43] TEST: Single path with single path [ OK ] # 53.35 [+0.49] TEST: Single path with multipath [ OK ] # 53.78 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 54.23 [+0.44] TEST: Invalid nexthop [ OK ] # 54.57 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 55.01 [+0.44] TEST: Multipath with multipath [ OK ] # 55.46 [+0.45] TEST: Multipath with single path [ OK ] # 55.89 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 56.34 [+0.45] TEST: Multipath with dev-only [ OK ] # 56.79 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 57.25 [+0.46] TEST: Multipath - invalid second nexthop [ OK ] # 57.62 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 57.62 [+0.00] # 57.62 [+0.00] IPv6 route with dsfield tests # 57.79 [+0.17] TEST: Reject route with dsfield [ OK ] # 63.74 [+5.95] # 63.74 [+0.00] IPv4 route add / append tests # 64.09 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 64.43 [+0.34] TEST: Attempt to add duplicate route - dev only [ OK ] # 64.78 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 65.23 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 65.67 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 66.11 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 66.55 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 66.91 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 67.27 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 67.61 [+0.33] TEST: add multipath route [ OK ] # 67.97 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 68.41 [+0.44] TEST: Route add with different metrics [ OK ] # 68.59 [+0.19] TEST: Route delete with metric [ OK ] # 68.60 [+0.00] # 68.60 [+0.00] IPv4 route replace tests # 69.03 [+0.43] TEST: Single path with single path [ OK ] # 69.47 [+0.44] TEST: Single path with multipath [ OK ] # 69.90 [+0.42] TEST: Single path with reject route [ OK ] # 70.33 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 70.75 [+0.42] TEST: Invalid nexthop [ OK ] # 71.13 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 71.57 [+0.43] TEST: Multipath with multipath [ OK ] # 71.99 [+0.42] TEST: Multipath with single path [ OK ] # 72.42 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 72.84 [+0.43] TEST: Multipath with reject route [ OK ] # 73.28 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 73.71 [+0.42] TEST: Multipath - invalid second nexthop [ OK ] # 74.04 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 75.44 [+1.40] TEST: Cached route removed from VRF port device [ OK ] # 75.45 [+0.00] # 75.45 [+0.00] IPv4 route with dsfield tests # 75.62 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 75.75 [+0.13] TEST: Reject route with dsfield 0x02 [ OK ] # 75.84 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 76.09 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 76.18 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 76.27 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 76.36 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 76.46 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 76.54 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 76.61 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 76.69 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 76.78 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 76.85 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 76.94 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 77.02 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 78.64 [+1.63] # 78.64 [+0.00] IPv6 prefix route tests # 80.45 [+1.81] TEST: Default metric [ OK ] # 80.73 [+0.28] TEST: User specified metric on first device [ OK ] # 81.01 [+0.28] TEST: User specified metric on second device [ OK ] # 81.18 [+0.17] TEST: Delete of address on first device [ OK ] # 81.37 [+0.19] TEST: Modify metric of address [ OK ] # 81.66 [+0.29] TEST: Prefix route removed on link down [ OK ] # 81.84 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 82.10 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 82.17 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 82.36 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 82.45 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 83.34 [+0.89] # 83.34 [+0.00] IPv4 prefix route tests # 85.12 [+1.78] TEST: Default metric [ OK ] # 85.38 [+0.26] TEST: User specified metric on first device [ OK ] # 85.66 [+0.28] TEST: User specified metric on second device [ OK ] # 85.82 [+0.16] TEST: Delete of address on first device [ OK ] # 86.00 [+0.18] TEST: Modify metric of address [ OK ] # 86.22 [+0.22] TEST: Prefix route removed on link down [ OK ] # 86.40 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 86.75 [+0.35] TEST: Modify metric of .0/24 address [ OK ] # 87.01 [+0.26] TEST: Set metric of address with peer route [ OK ] # 87.19 [+0.17] TEST: Modify metric and peer address for peer route [ OK ] # 88.14 [+0.96] # 88.14 [+0.00] IPv6 routes with metrics # 92.52 [+4.38] TEST: Single path route with mtu metric [ OK ] # 92.80 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 93.08 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 93.29 [+0.21] TEST: MTU of second leg [ OK ] # 93.53 [+0.23] TEST: Multipath route with mtu metric [ OK ] # 93.74 [+0.21] TEST: Using route with mtu metric [ OK ] # 93.90 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 95.59 [+1.69] # 95.59 [+0.00] IPv4 route add / append tests # 99.95 [+4.36] TEST: Single path route with mtu metric [ OK ] # 100.13 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 100.34 [+0.21] TEST: Using route with mtu metric [ OK ] # 100.50 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 102.20 [+1.70] # 102.20 [+0.00] IPv4 route with IPv6 gateway tests # 108.66 [+6.45] TEST: Single path route with IPv6 gateway [ OK ] # 108.89 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 108.97 [+0.08] TEST: Single path route delete [ OK ] # 109.14 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 109.31 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 109.42 [+0.11] TEST: Multipath route delete exact match [ OK ] # 109.51 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 109.69 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 109.77 [+0.08] TEST: Multipath route delete exact match [ OK ] # 111.43 [+1.67] # 111.43 [+0.00] IPv4 rp_filter tests # 117.11 [+5.67] TEST: rp_filter passes local packets [ OK ] # 117.23 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 117.96 [+0.73] # 117.96 [+0.00] IPv4 delete address route tests # 120.59 [+2.62] Regular FIB info # 120.75 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 120.83 [+0.08] TEST: Route in default VRF not removed [ OK ] # 121.13 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.20 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 121.20 [+0.00] Identical FIB info with different table ID # 121.37 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 121.45 [+0.09] TEST: Route in default VRF not removed [ OK ] # 121.76 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.83 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 121.83 [+0.00] Table ID 0 # 121.99 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.94 [+0.95] # 122.94 [+0.00] IPv6 delete address route tests # 127.37 [+4.43] Single device using src address # 127.52 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.52 [+0.00] Two devices with the same source address # 127.68 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.83 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.84 [+0.00] VRF with single device using src address # 127.99 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 128.00 [+0.00] VRF with two devices using src address # 128.15 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 128.31 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 128.31 [+0.00] src address and nexthop dev in same VRF # 128.49 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 128.57 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 128.88 [+0.30] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.95 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 128.96 [+0.00] src address and nexthop device in different VRF # 129.11 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 129.20 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 129.42 [+0.23] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 129.50 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 129.50 [+0.00] Table ID 0 # 129.65 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.65 [+0.00] Link local source route # 129.81 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.96 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 130.05 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.27 [+0.22] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.78 [+1.51] # 131.78 [+0.00] IPv4 mangling tests # 139.21 [+7.43] TEST: Connection with correct parameters [ OK ] # 139.38 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 140.38 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 141.22 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 141.29 [+0.07] TEST: Connection check - server side [ OK ] # 143.23 [+1.94] # 143.23 [+0.00] IPv6 mangling tests # 150.52 [+7.30] TEST: Connection with correct parameters [ OK ] # 150.72 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 151.57 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 152.44 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 152.50 [+0.06] TEST: Connection check - server side [ OK ] # 154.50 [+2.00] # 154.50 [+0.00] IPv4 broadcast neighbour tests # 156.66 [+2.16] TEST: Resolved neighbour for broadcast address [ OK ] # 156.73 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 156.82 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 156.91 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 158.73 [+1.82] # 158.73 [+0.00] Fib6 garbage collection test # 171.93 [+13.20] TEST: ipv6 route garbage collection [ OK ] # 185.35 [+13.42] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 198.71 [+13.36] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 212.21 [+13.50] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 226.47 [+14.26] TEST: ipv6 route garbage collection (RA message) [ OK ] # 227.17 [+0.70] # 227.17 [+0.00] IPv4 multipath list receive tests # 242.97 [+15.80] TEST: Multipath route hit ratio (1.00) [ OK ] # 244.68 [+1.71] # 244.68 [+0.00] IPv6 multipath list receive tests # 260.58 [+15.90] TEST: Multipath route hit ratio (.99) [ OK ] # 262.38 [+1.80] # 262.38 [+0.00] Tests passed: 229 # 262.38 [+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__->