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.36 [+0.36] # 0.36 [+0.00] Single path route test # 1.12 [+0.76] Start point # 1.19 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.26 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.40 [+0.13] Nexthop device deleted # 1.46 [+0.06] TEST: IPv4 fibmatch - no route [ OK ] # 1.53 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.95 [+0.42] # 1.95 [+0.00] Multipath route test # 3.28 [+1.33] Start point # 3.35 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.42 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.53 [+0.11] One nexthop device deleted # 3.59 [+0.06] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.66 [+0.06] TEST: IPv6 - multipath down to single path [ OK ] # 3.77 [+0.11] Second nexthop device deleted # 3.84 [+0.07] TEST: IPv6 - no route [ OK ] # 4.27 [+0.43] # 4.27 [+0.00] Single path, admin down # 5.19 [+0.92] Start point # 5.26 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.32 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.39 [+0.07] Route deleted on down # 5.46 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.91 [+0.37] # 5.91 [+0.00] Admin down multipath # 7.24 [+1.34] Verify start point # 7.30 [+0.06] TEST: IPv4 fibmatch [ OK ] # 7.38 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.44 [+0.06] One device down, one up # 7.51 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.58 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.66 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 7.73 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.83 [+0.10] TEST: IPv4 flags on down device [ OK ] # 7.91 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.00 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.09 [+0.09] TEST: IPv6 flags on up device [ OK ] # 8.23 [+0.14] Other device down and up # 8.30 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.36 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.43 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.50 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.59 [+0.09] TEST: IPv4 flags on down device [ OK ] # 8.69 [+0.10] TEST: IPv6 flags on down device [ OK ] # 8.78 [+0.09] TEST: IPv4 flags on up device [ OK ] # 8.86 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.93 [+0.07] Both devices down # 9.00 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.07 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.57 [+0.50] # 9.57 [+0.00] Local carrier tests - single path # 10.59 [+1.01] Start point # 10.66 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.73 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.82 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 10.90 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 12.01 [+1.11] Carrier off on nexthop # 12.09 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.15 [+0.06] TEST: IPv6 fibmatch [ OK ] # 12.23 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 12.31 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.44 [+0.14] Route to local address with carrier down # 12.51 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.59 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.66 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 12.74 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 13.12 [+0.37] # 13.12 [+0.00] Single path route carrier test # 14.16 [+1.04] Start point # 14.23 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.30 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.38 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 14.44 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.55 [+1.11] Carrier down # 15.64 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.71 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.77 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.85 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.98 [+0.13] Second address added with carrier down # 16.05 [+0.07] TEST: IPv4 fibmatch [ OK ] # 16.11 [+0.06] TEST: IPv6 fibmatch [ OK ] # 16.17 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 16.25 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.92 [+3.66] # 19.92 [+0.00] IPv4 nexthop tests # 19.92 [+0.00] <<< write me >>> # 20.13 [+0.21] # 20.13 [+0.00] IPv6 nexthop tests # 20.21 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 20.29 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.37 [+0.08] TEST: Gateway is linklocal address [ OK ] # 20.44 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 20.52 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.59 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.67 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 20.74 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 20.83 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.91 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 21.00 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 21.08 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.16 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 21.23 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.08 [+0.85] # 22.08 [+0.00] FIB rule with suppress_prefixlength # 23.52 [+1.43] TEST: FIB rule suppress test [ OK ] # 24.84 [+1.33] # 24.84 [+0.00] Fib6 info length calculation in route notify test # 28.45 [+3.60] TEST: ipv6 route add notify [ OK ] # 29.79 [+1.34] # 29.79 [+0.00] Fib4 info length calculation in route notify test # 33.48 [+3.69] TEST: ipv4 route add notify [ OK ] # 37.17 [+3.69] # 37.17 [+0.00] IPv6 route add / append tests # 37.47 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 37.77 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 38.06 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 38.44 [+0.38] TEST: Append nexthop to existing route - gw [ OK ] # 38.75 [+0.31] TEST: Add multipath route [ OK ] # 39.04 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 39.41 [+0.37] TEST: Route add with different metrics [ OK ] # 39.57 [+0.16] TEST: Route delete with metric [ OK ] # 39.57 [+0.00] # 39.57 [+0.00] IPv6 route replace tests # 39.95 [+0.38] TEST: Single path with single path [ OK ] # 40.34 [+0.39] TEST: Single path with multipath [ OK ] # 40.75 [+0.41] TEST: Single path with single path via multipath attribute [ OK ] # 41.12 [+0.37] TEST: Invalid nexthop [ OK ] # 41.41 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 41.78 [+0.37] TEST: Multipath with multipath [ OK ] # 42.16 [+0.37] TEST: Multipath with single path [ OK ] # 42.53 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 42.91 [+0.38] TEST: Multipath with dev-only [ OK ] # 43.28 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 43.65 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 43.95 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 43.96 [+0.00] # 43.96 [+0.00] IPv6 route with dsfield tests # 44.11 [+0.15] TEST: Reject route with dsfield [ OK ] # 49.16 [+5.05] # 49.16 [+0.00] IPv4 route add / append tests # 49.46 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 49.75 [+0.28] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.04 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 50.40 [+0.37] TEST: Add new nexthop for existing prefix [ OK ] # 50.76 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 51.13 [+0.37] TEST: Append nexthop to existing route - dev only [ OK ] # 51.50 [+0.37] TEST: Append nexthop to existing route - reject route [ OK ] # 51.80 [+0.30] TEST: Append nexthop to existing reject route - gw [ OK ] # 52.10 [+0.30] TEST: Append nexthop to existing reject route - dev only [ OK ] # 52.38 [+0.28] TEST: add multipath route [ OK ] # 52.68 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 53.03 [+0.36] TEST: Route add with different metrics [ OK ] # 53.18 [+0.15] TEST: Route delete with metric [ OK ] # 53.18 [+0.00] # 53.18 [+0.00] IPv4 route replace tests # 53.54 [+0.36] TEST: Single path with single path [ OK ] # 53.90 [+0.36] TEST: Single path with multipath [ OK ] # 54.26 [+0.36] TEST: Single path with reject route [ OK ] # 54.64 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 55.02 [+0.38] TEST: Invalid nexthop [ OK ] # 55.31 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 55.69 [+0.38] TEST: Multipath with multipath [ OK ] # 56.05 [+0.36] TEST: Multipath with single path [ OK ] # 56.42 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 56.78 [+0.36] TEST: Multipath with reject route [ OK ] # 57.15 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 57.52 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 57.81 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 59.05 [+1.24] TEST: Cached route removed from VRF port device [ OK ] # 59.05 [+0.00] # 59.05 [+0.00] IPv4 route with dsfield tests # 59.21 [+0.16] TEST: Reject route with dsfield 0x01 [ OK ] # 59.29 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 59.36 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 59.59 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 59.65 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 59.72 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 59.79 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 59.86 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 59.93 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 60.00 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 60.07 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 60.13 [+0.06] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 60.19 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 60.26 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 60.33 [+0.06] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 61.77 [+1.44] # 61.77 [+0.00] IPv6 prefix route tests # 63.34 [+1.57] TEST: Default metric [ OK ] # 63.58 [+0.23] TEST: User specified metric on first device [ OK ] # 63.82 [+0.25] TEST: User specified metric on second device [ OK ] # 63.97 [+0.15] TEST: Delete of address on first device [ OK ] # 64.13 [+0.15] TEST: Modify metric of address [ OK ] # 64.38 [+0.25] TEST: Prefix route removed on link down [ OK ] # 64.56 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 64.80 [+0.24] TEST: Set metric with peer route on local side [ OK ] # 64.89 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 65.04 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 65.11 [+0.07] TEST: Modify metric and peer address on peer side [ OK ] # 65.92 [+0.81] # 65.92 [+0.00] IPv4 prefix route tests # 67.44 [+1.52] TEST: Default metric [ OK ] # 67.67 [+0.23] TEST: User specified metric on first device [ OK ] # 67.92 [+0.25] TEST: User specified metric on second device [ OK ] # 68.08 [+0.15] TEST: Delete of address on first device [ OK ] # 68.21 [+0.14] TEST: Modify metric of address [ OK ] # 68.36 [+0.14] TEST: Prefix route removed on link down [ OK ] # 68.51 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 68.81 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 69.04 [+0.23] TEST: Set metric of address with peer route [ OK ] # 69.19 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 70.00 [+0.81] # 70.00 [+0.00] IPv6 routes with metrics # 73.68 [+3.68] TEST: Single path route with mtu metric [ OK ] # 73.91 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 74.16 [+0.26] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 74.32 [+0.15] TEST: MTU of second leg [ OK ] # 74.50 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 74.68 [+0.18] TEST: Using route with mtu metric [ OK ] # 74.82 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 76.27 [+1.45] # 76.27 [+0.00] IPv4 route add / append tests # 79.95 [+3.68] TEST: Single path route with mtu metric [ OK ] # 80.11 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 80.29 [+0.18] TEST: Using route with mtu metric [ OK ] # 80.43 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 81.81 [+1.38] # 81.81 [+0.00] IPv4 route with IPv6 gateway tests # 87.52 [+5.72] TEST: Single path route with IPv6 gateway [ OK ] # 87.71 [+0.19] TEST: Single path route with IPv6 gateway - ping [ OK ] # 87.79 [+0.08] TEST: Single path route delete [ OK ] # 87.94 [+0.15] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 88.10 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 88.16 [+0.07] TEST: Multipath route delete exact match [ OK ] # 88.24 [+0.07] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 88.38 [+0.14] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 88.45 [+0.07] TEST: Multipath route delete exact match [ OK ] # 89.84 [+1.40] # 89.84 [+0.00] IPv4 rp_filter tests # 94.50 [+4.65] TEST: rp_filter passes local packets [ OK ] # 94.61 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 95.22 [+0.61] # 95.22 [+0.00] IPv4 delete address route tests # 97.38 [+2.17] Regular FIB info # 97.52 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 97.58 [+0.06] TEST: Route in default VRF not removed [ OK ] # 97.84 [+0.26] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.91 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 97.91 [+0.00] Identical FIB info with different table ID # 98.04 [+0.12] TEST: Route removed from VRF when source address deleted [ OK ] # 98.09 [+0.06] TEST: Route in default VRF not removed [ OK ] # 98.34 [+0.25] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.40 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 98.40 [+0.00] Table ID 0 # 98.52 [+0.12] TEST: Route removed in default VRF when source address deleted [ OK ] # 99.30 [+0.77] # 99.30 [+0.00] IPv6 delete address route tests # 102.94 [+3.64] Single device using src address # 103.07 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.08 [+0.00] Two devices with the same source address # 103.21 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.36 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.36 [+0.00] VRF with single device using src address # 103.50 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.50 [+0.00] VRF with two devices using src address # 103.62 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.76 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.76 [+0.00] src address and nexthop dev in same VRF # 103.89 [+0.13] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 103.95 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 104.21 [+0.26] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 104.28 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 104.28 [+0.00] src address and nexthop device in different VRF # 104.41 [+0.13] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 104.48 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 104.68 [+0.19] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 104.74 [+0.06] TEST: Prefsrc removed in default VRF [ OK ] # 104.74 [+0.00] Table ID 0 # 104.87 [+0.13] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 104.87 [+0.00] Link local source route # 104.99 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.12 [+0.13] TEST: Prefsrc removed when delete ll addr [ OK ] # 105.19 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.39 [+0.20] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 106.60 [+1.20] # 106.60 [+0.00] IPv4 mangling tests # 112.95 [+6.35] TEST: Connection with correct parameters [ OK ] # 113.08 [+0.13] TEST: Connection with incorrect parameters [ OK ] # 113.92 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 114.69 [+0.77] TEST: Connection with correct parameters - no mangling [ OK ] # 114.74 [+0.05] TEST: Connection check - server side [ OK ] # 116.39 [+1.65] # 116.39 [+0.00] IPv6 mangling tests # 122.76 [+6.37] TEST: Connection with correct parameters [ OK ] # 122.92 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 123.70 [+0.78] TEST: Connection with correct parameters - mangling [ OK ] # 124.50 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 124.56 [+0.06] TEST: Connection check - server side [ OK ] # 126.20 [+1.64] # 126.20 [+0.00] IPv4 broadcast neighbour tests # 127.95 [+1.74] TEST: Resolved neighbour for broadcast address [ OK ] # 128.02 [+0.07] TEST: Resolved neighbour for network broadcast address [ OK ] # 128.09 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 128.16 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 129.59 [+1.44] # 129.59 [+0.00] Fib6 garbage collection test # 142.56 [+12.97] TEST: ipv6 route garbage collection [ OK ] # 155.67 [+13.11] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 168.83 [+13.16] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 182.25 [+13.42] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 196.32 [+14.08] TEST: ipv6 route garbage collection (RA message) [ OK ] # 196.96 [+0.64] # 196.96 [+0.00] IPv4 multipath list receive tests # 209.04 [+12.08] TEST: Multipath route hit ratio (1.00) [ OK ] # 210.68 [+1.64] # 210.68 [+0.00] IPv6 multipath list receive tests # 222.46 [+11.78] TEST: Multipath route hit ratio (1.00) [ OK ] # 224.03 [+1.57] # 224.03 [+0.00] Tests passed: 229 # 224.03 [+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__->