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.44 [+1.01] Start point # 1.52 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.61 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.74 [+0.13] Nexthop device deleted # 1.84 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.93 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.51 [+0.58] # 2.51 [+0.00] Multipath route test # 4.17 [+1.65] Start point # 4.26 [+0.09] TEST: IPv4 fibmatch [ OK ] # 4.34 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.47 [+0.12] One nexthop device deleted # 4.55 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.64 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 4.78 [+0.14] Second nexthop device deleted # 4.86 [+0.09] TEST: IPv6 - no route [ OK ] # 5.42 [+0.55] # 5.42 [+0.00] Single path, admin down # 6.65 [+1.24] Start point # 6.76 [+0.11] TEST: IPv4 fibmatch [ OK ] # 6.85 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.97 [+0.12] Route deleted on down # 7.08 [+0.11] TEST: IPv4 fibmatch [ OK ] # 7.17 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.67 [+0.49] # 7.67 [+0.00] Admin down multipath # 9.33 [+1.67] Verify start point # 9.42 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.51 [+0.09] TEST: IPv6 fibmatch [ OK ] # 9.59 [+0.08] One device down, one up # 9.68 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 9.76 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.85 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.94 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.02 [+0.08] TEST: IPv4 flags on down device [ OK ] # 10.12 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.20 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.29 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.48 [+0.18] Other device down and up # 10.57 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.64 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.72 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.80 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.93 [+0.12] TEST: IPv4 flags on down device [ OK ] # 11.01 [+0.09] TEST: IPv6 flags on down device [ OK ] # 11.13 [+0.12] TEST: IPv4 flags on up device [ OK ] # 11.23 [+0.10] TEST: IPv6 flags on up device [ OK ] # 11.32 [+0.09] Both devices down # 11.40 [+0.09] TEST: IPv4 fibmatch [ OK ] # 11.48 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.06 [+0.58] # 12.06 [+0.00] Local carrier tests - single path # 13.28 [+1.22] Start point # 13.37 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.46 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.55 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 13.63 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 14.75 [+1.12] Carrier off on nexthop # 14.84 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.92 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.01 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 15.09 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 15.24 [+0.15] Route to local address with carrier down # 15.34 [+0.09] TEST: IPv4 fibmatch [ OK ] # 15.42 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.49 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 15.58 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 16.04 [+0.46] # 16.04 [+0.00] Single path route carrier test # 17.23 [+1.19] Start point # 17.31 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.40 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.48 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 17.56 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.69 [+1.13] Carrier down # 18.78 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.86 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.96 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 19.03 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 19.18 [+0.15] Second address added with carrier down # 19.27 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.35 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.43 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.52 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 23.71 [+4.19] # 23.71 [+0.00] IPv4 nexthop tests # 23.71 [+0.00] <<< write me >>> # 23.94 [+0.23] # 23.94 [+0.00] IPv6 nexthop tests # 24.04 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 24.13 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 24.23 [+0.10] TEST: Gateway is linklocal address [ OK ] # 24.32 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 24.41 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 24.51 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.60 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 24.70 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 24.79 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.89 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.99 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 25.07 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 25.17 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 25.26 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 26.23 [+0.97] # 26.23 [+0.00] FIB rule with suppress_prefixlength # 27.97 [+1.74] TEST: FIB rule suppress test [ OK ] # 29.54 [+1.57] # 29.54 [+0.00] Fib6 info length calculation in route notify test # 33.50 [+3.95] TEST: ipv6 route add notify [ OK ] # 35.11 [+1.61] # 35.11 [+0.00] Fib4 info length calculation in route notify test # 39.05 [+3.95] TEST: ipv4 route add notify [ OK ] # 43.35 [+4.30] # 43.35 [+0.00] IPv6 route add / append tests # 43.71 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 44.07 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 44.43 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.90 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 45.26 [+0.36] TEST: Add multipath route [ OK ] # 45.62 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 46.07 [+0.45] TEST: Route add with different metrics [ OK ] # 46.27 [+0.20] TEST: Route delete with metric [ OK ] # 46.28 [+0.00] # 46.28 [+0.00] IPv6 route replace tests # 46.73 [+0.45] TEST: Single path with single path [ OK ] # 47.20 [+0.47] TEST: Single path with multipath [ OK ] # 47.65 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 48.10 [+0.45] TEST: Invalid nexthop [ OK ] # 48.48 [+0.38] TEST: Single path - replace of non-existent route [ OK ] # 48.95 [+0.47] TEST: Multipath with multipath [ OK ] # 49.40 [+0.46] TEST: Multipath with single path [ OK ] # 49.86 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 50.36 [+0.50] TEST: Multipath with dev-only [ OK ] # 50.87 [+0.51] TEST: Multipath - invalid first nexthop [ OK ] # 51.41 [+0.54] TEST: Multipath - invalid second nexthop [ OK ] # 51.78 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 51.79 [+0.00] # 51.79 [+0.00] IPv6 route with dsfield tests # 51.98 [+0.20] TEST: Reject route with dsfield [ OK ] # 58.16 [+6.18] # 58.16 [+0.00] IPv4 route add / append tests # 58.53 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 58.88 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 59.25 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 59.69 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 60.16 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 60.62 [+0.47] TEST: Append nexthop to existing route - dev only [ OK ] # 61.07 [+0.45] TEST: Append nexthop to existing route - reject route [ OK ] # 61.44 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 61.80 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 62.17 [+0.37] TEST: add multipath route [ OK ] # 62.52 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 62.96 [+0.45] TEST: Route add with different metrics [ OK ] # 63.15 [+0.19] TEST: Route delete with metric [ OK ] # 63.15 [+0.00] # 63.15 [+0.00] IPv4 route replace tests # 63.60 [+0.45] TEST: Single path with single path [ OK ] # 64.04 [+0.44] TEST: Single path with multipath [ OK ] # 64.50 [+0.46] TEST: Single path with reject route [ OK ] # 64.94 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 65.39 [+0.45] TEST: Invalid nexthop [ OK ] # 65.74 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 66.19 [+0.45] TEST: Multipath with multipath [ OK ] # 66.64 [+0.45] TEST: Multipath with single path [ OK ] # 67.09 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 67.55 [+0.46] TEST: Multipath with reject route [ OK ] # 67.99 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 68.44 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 68.80 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 70.23 [+1.43] TEST: Cached route removed from VRF port device [ OK ] # 70.23 [+0.00] # 70.23 [+0.00] IPv4 route with dsfield tests # 70.41 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 70.50 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 70.59 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 70.84 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 70.93 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 71.01 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 71.11 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 71.20 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 71.30 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.39 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.50 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.58 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.67 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 71.77 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 71.87 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.63 [+1.76] # 73.63 [+0.00] IPv6 prefix route tests # 75.49 [+1.86] TEST: Default metric [ OK ] # 75.78 [+0.29] TEST: User specified metric on first device [ OK ] # 76.07 [+0.29] TEST: User specified metric on second device [ OK ] # 76.25 [+0.18] TEST: Delete of address on first device [ OK ] # 76.45 [+0.20] TEST: Modify metric of address [ OK ] # 76.77 [+0.32] TEST: Prefix route removed on link down [ OK ] # 76.96 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 77.25 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 77.34 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 77.53 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 77.64 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 78.61 [+0.97] # 78.61 [+0.00] IPv4 prefix route tests # 80.43 [+1.82] TEST: Default metric [ OK ] # 80.71 [+0.28] TEST: User specified metric on first device [ OK ] # 80.98 [+0.27] TEST: User specified metric on second device [ OK ] # 81.17 [+0.20] TEST: Delete of address on first device [ OK ] # 81.35 [+0.18] TEST: Modify metric of address [ OK ] # 81.53 [+0.18] TEST: Prefix route removed on link down [ OK ] # 81.71 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 82.09 [+0.37] TEST: Modify metric of .0/24 address [ OK ] # 82.36 [+0.28] TEST: Set metric of address with peer route [ OK ] # 82.55 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 83.50 [+0.96] # 83.50 [+0.00] IPv6 routes with metrics # 88.05 [+4.54] TEST: Single path route with mtu metric [ OK ] # 88.33 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 88.63 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 88.81 [+0.19] TEST: MTU of second leg [ OK ] # 89.01 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 89.24 [+0.23] TEST: Using route with mtu metric [ OK ] # 89.41 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 91.11 [+1.70] # 91.11 [+0.00] IPv4 route add / append tests # 95.63 [+4.52] TEST: Single path route with mtu metric [ OK ] # 95.83 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 96.04 [+0.22] TEST: Using route with mtu metric [ OK ] # 96.20 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.92 [+1.71] # 97.92 [+0.00] IPv4 route with IPv6 gateway tests # 104.38 [+6.46] TEST: Single path route with IPv6 gateway [ OK ] # 104.62 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 104.71 [+0.09] TEST: Single path route delete [ OK ] # 104.88 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 105.06 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 105.16 [+0.10] TEST: Multipath route delete exact match [ OK ] # 105.25 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 105.46 [+0.21] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 105.54 [+0.09] TEST: Multipath route delete exact match [ OK ] # 107.27 [+1.72] # 107.27 [+0.00] IPv4 rp_filter tests # 113.34 [+6.08] TEST: rp_filter passes local packets [ OK ] # 113.49 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 114.30 [+0.81] # 114.30 [+0.00] IPv4 delete address route tests # 117.21 [+2.91] Regular FIB info # 117.37 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 117.48 [+0.11] TEST: Route in default VRF not removed [ OK ] # 117.85 [+0.36] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.94 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 117.94 [+0.00] Identical FIB info with different table ID # 118.13 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 118.21 [+0.08] TEST: Route in default VRF not removed [ OK ] # 118.56 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.64 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 118.65 [+0.00] Table ID 0 # 118.84 [+0.20] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.86 [+1.02] # 119.86 [+0.00] IPv6 delete address route tests # 124.67 [+4.80] Single device using src address # 124.83 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 124.83 [+0.00] Two devices with the same source address # 124.99 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.17 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.17 [+0.00] VRF with single device using src address # 125.33 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.33 [+0.00] VRF with two devices using src address # 125.51 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.67 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.68 [+0.00] src address and nexthop dev in same VRF # 125.86 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 125.94 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 126.28 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 126.38 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 126.38 [+0.00] src address and nexthop device in different VRF # 126.57 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 126.66 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 126.93 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 127.01 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 127.02 [+0.00] Table ID 0 # 127.18 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 127.18 [+0.00] Link local source route # 127.36 [+0.18] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 127.55 [+0.19] TEST: Prefsrc removed when delete ll addr [ OK ] # 127.64 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 127.90 [+0.26] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 129.41 [+1.51] # 129.41 [+0.00] IPv4 mangling tests # 137.03 [+7.62] TEST: Connection with correct parameters [ OK ] # 137.21 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 138.16 [+0.95] TEST: Connection with correct parameters - mangling [ OK ] # 139.02 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 139.07 [+0.06] TEST: Connection check - server side [ OK ] # 141.09 [+2.02] # 141.09 [+0.00] IPv6 mangling tests # 148.58 [+7.50] TEST: Connection with correct parameters [ OK ] # 148.78 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 149.64 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 150.52 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 150.57 [+0.05] TEST: Connection check - server side [ OK ] # 152.45 [+1.88] # 152.45 [+0.00] IPv4 broadcast neighbour tests # 154.66 [+2.21] TEST: Resolved neighbour for broadcast address [ OK ] # 154.75 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 154.84 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 154.93 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 156.80 [+1.86] # 156.80 [+0.00] Fib6 garbage collection test # 170.01 [+13.21] TEST: ipv6 route garbage collection [ OK ] # 183.46 [+13.46] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 196.88 [+13.42] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 210.43 [+13.55] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 225.02 [+14.59] TEST: ipv6 route garbage collection (RA message) [ OK ] # 225.92 [+0.90] # 225.92 [+0.00] IPv4 multipath list receive tests # 246.20 [+20.28] TEST: Multipath route hit ratio (1.00) [ OK ] # 248.14 [+1.94] # 248.14 [+0.00] IPv6 multipath list receive tests # 264.53 [+16.39] TEST: Multipath route hit ratio (1.00) [ OK ] # 266.33 [+1.79] # 266.33 [+0.00] Tests passed: 229 # 266.33 [+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__->