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.38 [+0.38] # 0.38 [+0.00] Single path route test # 1.23 [+0.85] Start point # 1.31 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.39 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.51 [+0.12] Nexthop device deleted # 1.59 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.67 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.19 [+0.51] # 2.19 [+0.00] Multipath route test # 3.73 [+1.54] Start point # 3.81 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.89 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.01 [+0.12] One nexthop device deleted # 4.09 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.17 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 4.29 [+0.11] Second nexthop device deleted # 4.36 [+0.07] TEST: IPv6 - no route [ OK ] # 4.88 [+0.52] # 4.88 [+0.00] Single path, admin down # 5.96 [+1.08] Start point # 6.03 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.11 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.19 [+0.08] Route deleted on down # 6.27 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.35 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.78 [+0.43] # 6.78 [+0.00] Admin down multipath # 8.32 [+1.54] Verify start point # 8.40 [+0.08] TEST: IPv4 fibmatch [ OK ] # 8.48 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.55 [+0.07] One device down, one up # 8.62 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.71 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 8.78 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.87 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.96 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.05 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.13 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.21 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.36 [+0.16] Other device down and up # 9.44 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 9.52 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.60 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.67 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.77 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.87 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.96 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.04 [+0.08] TEST: IPv6 flags on up device [ OK ] # 10.11 [+0.07] Both devices down # 10.21 [+0.09] TEST: IPv4 fibmatch [ OK ] # 10.28 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.82 [+0.54] # 10.82 [+0.00] Local carrier tests - single path # 11.98 [+1.16] Start point # 12.07 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.19 [+0.11] TEST: IPv6 fibmatch [ OK ] # 12.29 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 12.38 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 13.52 [+1.14] Carrier off on nexthop # 13.60 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.68 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.76 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 13.85 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 14.01 [+0.16] Route to local address with carrier down # 14.08 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.17 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.25 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.34 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 14.75 [+0.41] # 14.75 [+0.00] Single path route carrier test # 15.89 [+1.14] Start point # 15.98 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.05 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.13 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 16.21 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 17.32 [+1.11] Carrier down # 17.41 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.48 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.56 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.64 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 17.79 [+0.15] Second address added with carrier down # 17.87 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.95 [+0.07] TEST: IPv6 fibmatch [ OK ] # 18.02 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 18.08 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 22.10 [+4.01] # 22.10 [+0.00] IPv4 nexthop tests # 22.10 [+0.00] <<< write me >>> # 22.46 [+0.36] # 22.46 [+0.00] IPv6 nexthop tests # 22.62 [+0.16] TEST: Directly connected nexthop, unicast address [ OK ] # 22.78 [+0.15] TEST: Directly connected nexthop, unicast address with device [ OK ] # 22.95 [+0.17] TEST: Gateway is linklocal address [ OK ] # 23.09 [+0.14] TEST: Gateway is linklocal address, no device [ OK ] # 23.27 [+0.18] TEST: Gateway can not be local unicast address [ OK ] # 23.41 [+0.15] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.56 [+0.15] TEST: Gateway can not be a local linklocal address [ OK ] # 23.71 [+0.15] TEST: Gateway can be local address in a VRF [ OK ] # 23.86 [+0.15] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.96 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.09 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 24.18 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.28 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 24.38 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.32 [+0.93] # 25.32 [+0.00] FIB rule with suppress_prefixlength # 27.29 [+1.97] TEST: FIB rule suppress test [ OK ] # 28.99 [+1.70] # 28.99 [+0.00] Fib6 info length calculation in route notify test # 33.35 [+4.35] TEST: ipv6 route add notify [ OK ] # 35.63 [+2.29] # 35.63 [+0.00] Fib4 info length calculation in route notify test # 40.48 [+4.85] TEST: ipv4 route add notify [ OK ] # 46.20 [+5.72] # 46.20 [+0.00] IPv6 route add / append tests # 46.66 [+0.46] TEST: Attempt to add duplicate route - gw [ OK ] # 47.11 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 47.55 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 48.13 [+0.58] TEST: Append nexthop to existing route - gw [ OK ] # 48.61 [+0.48] TEST: Add multipath route [ OK ] # 49.04 [+0.42] TEST: Attempt to add duplicate multipath route [ OK ] # 49.57 [+0.53] TEST: Route add with different metrics [ OK ] # 49.79 [+0.22] TEST: Route delete with metric [ OK ] # 49.79 [+0.00] # 49.79 [+0.00] IPv6 route replace tests # 50.33 [+0.54] TEST: Single path with single path [ OK ] # 50.92 [+0.59] TEST: Single path with multipath [ OK ] # 51.49 [+0.56] TEST: Single path with single path via multipath attribute [ OK ] # 52.03 [+0.55] TEST: Invalid nexthop [ OK ] # 52.46 [+0.43] TEST: Single path - replace of non-existent route [ OK ] # 53.04 [+0.58] TEST: Multipath with multipath [ OK ] # 53.57 [+0.53] TEST: Multipath with single path [ OK ] # 54.15 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 54.65 [+0.50] TEST: Multipath with dev-only [ OK ] # 55.20 [+0.55] TEST: Multipath - invalid first nexthop [ OK ] # 55.75 [+0.56] TEST: Multipath - invalid second nexthop [ OK ] # 56.18 [+0.43] TEST: Multipath - replace of non-existent route [ OK ] # 56.18 [+0.00] # 56.18 [+0.00] IPv6 route with dsfield tests # 56.40 [+0.21] TEST: Reject route with dsfield [ OK ] # 63.27 [+6.88] # 63.27 [+0.00] IPv4 route add / append tests # 63.64 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 64.01 [+0.37] TEST: Attempt to add duplicate route - dev only [ OK ] # 64.36 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 64.82 [+0.46] TEST: Add new nexthop for existing prefix [ OK ] # 65.27 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 65.73 [+0.46] TEST: Append nexthop to existing route - dev only [ OK ] # 66.18 [+0.45] TEST: Append nexthop to existing route - reject route [ OK ] # 66.55 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 66.91 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 67.26 [+0.35] TEST: add multipath route [ OK ] # 67.62 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 68.06 [+0.44] TEST: Route add with different metrics [ OK ] # 68.25 [+0.19] TEST: Route delete with metric [ OK ] # 68.25 [+0.00] # 68.25 [+0.00] IPv4 route replace tests # 68.69 [+0.44] TEST: Single path with single path [ OK ] # 69.14 [+0.44] TEST: Single path with multipath [ OK ] # 69.58 [+0.44] TEST: Single path with reject route [ OK ] # 70.01 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 70.45 [+0.45] TEST: Invalid nexthop [ OK ] # 70.80 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 71.24 [+0.45] TEST: Multipath with multipath [ OK ] # 71.67 [+0.42] TEST: Multipath with single path [ OK ] # 72.10 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 72.54 [+0.44] TEST: Multipath with reject route [ OK ] # 72.98 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 73.41 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 73.77 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 75.16 [+1.39] TEST: Cached route removed from VRF port device [ OK ] # 75.16 [+0.00] # 75.16 [+0.00] IPv4 route with dsfield tests # 75.34 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 75.43 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 75.52 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 75.79 [+0.26] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 75.87 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 75.95 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 76.02 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 76.10 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 76.19 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 76.29 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 76.38 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 76.48 [+0.10] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 76.57 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 76.65 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 76.73 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 78.42 [+1.70] # 78.42 [+0.00] IPv6 prefix route tests # 80.22 [+1.80] TEST: Default metric [ OK ] # 80.49 [+0.27] TEST: User specified metric on first device [ OK ] # 80.78 [+0.29] TEST: User specified metric on second device [ OK ] # 80.96 [+0.18] TEST: Delete of address on first device [ OK ] # 81.14 [+0.18] TEST: Modify metric of address [ OK ] # 81.42 [+0.28] TEST: Prefix route removed on link down [ OK ] # 81.60 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 81.86 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 81.94 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 82.12 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 82.22 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 83.14 [+0.93] # 83.14 [+0.00] IPv4 prefix route tests # 84.87 [+1.72] TEST: Default metric [ OK ] # 85.14 [+0.27] TEST: User specified metric on first device [ OK ] # 85.40 [+0.26] TEST: User specified metric on second device [ OK ] # 85.58 [+0.18] TEST: Delete of address on first device [ OK ] # 85.76 [+0.18] TEST: Modify metric of address [ OK ] # 85.92 [+0.16] TEST: Prefix route removed on link down [ OK ] # 86.08 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 86.43 [+0.35] TEST: Modify metric of .0/24 address [ OK ] # 86.69 [+0.26] TEST: Set metric of address with peer route [ OK ] # 86.86 [+0.17] TEST: Modify metric and peer address for peer route [ OK ] # 87.75 [+0.89] # 87.75 [+0.00] IPv6 routes with metrics # 92.02 [+4.27] TEST: Single path route with mtu metric [ OK ] # 92.30 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 92.57 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 92.77 [+0.20] TEST: MTU of second leg [ OK ] # 92.95 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 93.17 [+0.22] TEST: Using route with mtu metric [ OK ] # 93.32 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 95.09 [+1.77] # 95.09 [+0.00] IPv4 route add / append tests # 99.47 [+4.38] TEST: Single path route with mtu metric [ OK ] # 99.63 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 99.85 [+0.22] TEST: Using route with mtu metric [ OK ] # 100.00 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 101.61 [+1.61] # 101.61 [+0.00] IPv4 route with IPv6 gateway tests # 107.82 [+6.21] TEST: Single path route with IPv6 gateway [ OK ] # 108.04 [+0.22] TEST: Single path route with IPv6 gateway - ping [ OK ] # 108.13 [+0.08] TEST: Single path route delete [ OK ] # 108.29 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 108.46 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.54 [+0.08] TEST: Multipath route delete exact match [ OK ] # 108.62 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 108.80 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.89 [+0.09] TEST: Multipath route delete exact match [ OK ] # 110.51 [+1.62] # 110.51 [+0.00] IPv4 rp_filter tests # 115.95 [+5.44] TEST: rp_filter passes local packets [ OK ] # 116.09 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 116.80 [+0.71] # 116.80 [+0.00] IPv4 delete address route tests # 119.38 [+2.58] Regular FIB info # 119.53 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 119.60 [+0.07] TEST: Route in default VRF not removed [ OK ] # 119.91 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.98 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 119.99 [+0.00] Identical FIB info with different table ID # 120.14 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 120.22 [+0.08] TEST: Route in default VRF not removed [ OK ] # 120.53 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.61 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 120.61 [+0.00] Table ID 0 # 120.76 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.67 [+0.91] # 121.67 [+0.00] IPv6 delete address route tests # 126.06 [+4.38] Single device using src address # 126.22 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.23 [+0.00] Two devices with the same source address # 126.39 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.56 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.56 [+0.00] VRF with single device using src address # 126.74 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.74 [+0.00] VRF with two devices using src address # 126.90 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.06 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.06 [+0.00] src address and nexthop dev in same VRF # 127.21 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 127.29 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 127.60 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 127.69 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 127.69 [+0.00] src address and nexthop device in different VRF # 127.83 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 127.90 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 128.15 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 128.23 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 128.23 [+0.00] Table ID 0 # 128.39 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 128.40 [+0.00] Link local source route # 128.54 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.70 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 128.78 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.02 [+0.24] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 130.47 [+1.45] # 130.47 [+0.00] IPv4 mangling tests # 137.66 [+7.20] TEST: Connection with correct parameters [ OK ] # 137.83 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 138.72 [+0.89] TEST: Connection with correct parameters - mangling [ OK ] # 139.56 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 139.62 [+0.06] TEST: Connection check - server side [ OK ] # 141.53 [+1.90] # 141.53 [+0.00] IPv6 mangling tests # 148.65 [+7.13] TEST: Connection with correct parameters [ OK ] # 148.84 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 149.67 [+0.83] TEST: Connection with correct parameters - mangling [ OK ] # 150.53 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 150.58 [+0.06] TEST: Connection check - server side [ OK ] # 152.49 [+1.91] # 152.49 [+0.00] IPv4 broadcast neighbour tests # 154.57 [+2.08] TEST: Resolved neighbour for broadcast address [ OK ] # 154.65 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 154.73 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 154.82 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 156.53 [+1.71] # 156.53 [+0.00] Fib6 garbage collection test # 169.66 [+13.13] TEST: ipv6 route garbage collection [ OK ] # 182.97 [+13.30] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 196.31 [+13.34] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 209.74 [+13.43] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 223.94 [+14.20] TEST: ipv6 route garbage collection (RA message) [ OK ] # 224.64 [+0.70] # 224.64 [+0.00] IPv4 multipath list receive tests # 240.17 [+15.53] TEST: Multipath route hit ratio (1.00) [ OK ] # 241.96 [+1.79] # 241.96 [+0.00] IPv6 multipath list receive tests # 257.53 [+15.57] TEST: Multipath route hit ratio (1.00) [ OK ] # 259.24 [+1.71] # 259.24 [+0.00] Tests passed: 229 # 259.24 [+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__->