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.29 [+0.29] # 0.29 [+0.00] Single path route test # 0.99 [+0.69] Start point # 1.05 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.12 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.22 [+0.10] Nexthop device deleted # 1.29 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.35 [+0.06] TEST: IPv6 fibmatch - no route [ OK ] # 1.78 [+0.43] # 1.78 [+0.00] Multipath route test # 3.03 [+1.25] Start point # 3.10 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.16 [+0.06] TEST: IPv6 fibmatch [ OK ] # 3.28 [+0.12] One nexthop device deleted # 3.34 [+0.06] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.42 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.52 [+0.10] Second nexthop device deleted # 3.59 [+0.07] TEST: IPv6 - no route [ OK ] # 4.00 [+0.42] # 4.00 [+0.00] Single path, admin down # 4.90 [+0.90] Start point # 4.98 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.04 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.11 [+0.07] Route deleted on down # 5.17 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.23 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.56 [+0.33] # 5.56 [+0.00] Admin down multipath # 6.86 [+1.29] Verify start point # 6.92 [+0.06] TEST: IPv4 fibmatch [ OK ] # 6.98 [+0.06] TEST: IPv6 fibmatch [ OK ] # 7.06 [+0.08] One device down, one up # 7.12 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 7.20 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 7.26 [+0.06] TEST: IPv4 fibmatch on up device [ OK ] # 7.33 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.40 [+0.07] TEST: IPv4 flags on down device [ OK ] # 7.47 [+0.07] TEST: IPv6 flags on down device [ OK ] # 7.54 [+0.07] TEST: IPv4 flags on up device [ OK ] # 7.62 [+0.08] TEST: IPv6 flags on up device [ OK ] # 7.76 [+0.14] Other device down and up # 7.83 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.89 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.96 [+0.06] TEST: IPv4 fibmatch on up device [ OK ] # 8.04 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.10 [+0.06] TEST: IPv4 flags on down device [ OK ] # 8.17 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.25 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.33 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.40 [+0.07] Both devices down # 8.47 [+0.07] TEST: IPv4 fibmatch [ OK ] # 8.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.02 [+0.49] # 9.02 [+0.00] Local carrier tests - single path # 10.02 [+1.00] Start point # 10.09 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.16 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.22 [+0.06] TEST: IPv4 - no linkdown flag [ OK ] # 10.28 [+0.06] TEST: IPv6 - no linkdown flag [ OK ] # 11.39 [+1.11] Carrier off on nexthop # 11.46 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.61 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 11.68 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 11.82 [+0.14] Route to local address with carrier down # 11.88 [+0.06] TEST: IPv4 fibmatch [ OK ] # 11.96 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.02 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 12.09 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 12.45 [+0.35] # 12.45 [+0.00] Single path route carrier test # 13.47 [+1.02] Start point # 13.54 [+0.07] TEST: IPv4 fibmatch [ OK ] # 13.60 [+0.07] TEST: IPv6 fibmatch [ OK ] # 13.68 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 13.75 [+0.06] TEST: IPv6 no linkdown flag [ OK ] # 14.86 [+1.12] Carrier down # 14.93 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.00 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.07 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 15.15 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.29 [+0.14] Second address added with carrier down # 15.35 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.42 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.49 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.56 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 19.14 [+3.57] # 19.14 [+0.00] IPv4 nexthop tests # 19.14 [+0.00] <<< write me >>> # 19.34 [+0.20] # 19.34 [+0.00] IPv6 nexthop tests # 19.41 [+0.07] TEST: Directly connected nexthop, unicast address [ OK ] # 19.48 [+0.07] TEST: Directly connected nexthop, unicast address with device [ OK ] # 19.57 [+0.08] TEST: Gateway is linklocal address [ OK ] # 19.64 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 19.72 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 19.79 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 19.86 [+0.07] TEST: Gateway can not be a local linklocal address [ OK ] # 19.94 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 20.01 [+0.07] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.09 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.15 [+0.07] TEST: Redirect to VRF lookup [ OK ] # 20.24 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.31 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 20.39 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.22 [+0.83] # 21.22 [+0.00] FIB rule with suppress_prefixlength # 22.64 [+1.42] TEST: FIB rule suppress test [ OK ] # 23.91 [+1.27] # 23.92 [+0.00] Fib6 info length calculation in route notify test # 27.48 [+3.56] TEST: ipv6 route add notify [ OK ] # 28.81 [+1.34] # 28.82 [+0.00] Fib4 info length calculation in route notify test # 32.44 [+3.63] TEST: ipv4 route add notify [ OK ] # 35.97 [+3.53] # 35.97 [+0.00] IPv6 route add / append tests # 36.27 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 36.56 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 36.86 [+0.30] TEST: Attempt to add duplicate route - reject route [ OK ] # 37.22 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 37.54 [+0.32] TEST: Add multipath route [ OK ] # 37.83 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 38.19 [+0.36] TEST: Route add with different metrics [ OK ] # 38.36 [+0.17] TEST: Route delete with metric [ OK ] # 38.36 [+0.00] # 38.36 [+0.00] IPv6 route replace tests # 38.75 [+0.39] TEST: Single path with single path [ OK ] # 39.17 [+0.42] TEST: Single path with multipath [ OK ] # 39.55 [+0.38] TEST: Single path with single path via multipath attribute [ OK ] # 39.93 [+0.38] TEST: Invalid nexthop [ OK ] # 40.22 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 40.60 [+0.38] TEST: Multipath with multipath [ OK ] # 40.99 [+0.38] TEST: Multipath with single path [ OK ] # 41.35 [+0.36] TEST: Multipath with single path via multipath attribute [ OK ] # 41.73 [+0.39] TEST: Multipath with dev-only [ OK ] # 42.10 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 42.48 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 42.78 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 42.79 [+0.00] # 42.79 [+0.00] IPv6 route with dsfield tests # 42.93 [+0.15] TEST: Reject route with dsfield [ OK ] # 47.96 [+5.02] # 47.96 [+0.00] IPv4 route add / append tests # 48.26 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 48.55 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.87 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.24 [+0.37] TEST: Add new nexthop for existing prefix [ OK ] # 49.61 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 49.97 [+0.36] TEST: Append nexthop to existing route - dev only [ OK ] # 50.35 [+0.37] TEST: Append nexthop to existing route - reject route [ OK ] # 50.66 [+0.31] TEST: Append nexthop to existing reject route - gw [ OK ] # 50.98 [+0.32] TEST: Append nexthop to existing reject route - dev only [ OK ] # 51.28 [+0.30] TEST: add multipath route [ OK ] # 51.56 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 51.92 [+0.36] TEST: Route add with different metrics [ OK ] # 52.09 [+0.17] TEST: Route delete with metric [ OK ] # 52.09 [+0.00] # 52.09 [+0.00] IPv4 route replace tests # 52.47 [+0.38] TEST: Single path with single path [ OK ] # 52.84 [+0.37] TEST: Single path with multipath [ OK ] # 53.21 [+0.37] TEST: Single path with reject route [ OK ] # 53.60 [+0.39] TEST: Single path with single path via multipath attribute [ OK ] # 53.96 [+0.37] TEST: Invalid nexthop [ OK ] # 54.26 [+0.30] TEST: Single path - replace of non-existent route [ OK ] # 54.64 [+0.38] TEST: Multipath with multipath [ OK ] # 55.00 [+0.36] TEST: Multipath with single path [ OK ] # 55.39 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 55.77 [+0.38] TEST: Multipath with reject route [ OK ] # 56.15 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 56.51 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 56.81 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 57.98 [+1.17] TEST: Cached route removed from VRF port device [ OK ] # 57.98 [+0.00] # 57.98 [+0.00] IPv4 route with dsfield tests # 58.13 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 58.22 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 58.29 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 58.50 [+0.22] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 58.57 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 58.66 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 58.74 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 58.81 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 58.89 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 58.97 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 59.03 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 59.11 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 59.18 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 59.24 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 59.32 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 60.80 [+1.49] # 60.80 [+0.00] IPv6 prefix route tests # 62.36 [+1.56] TEST: Default metric [ OK ] # 62.61 [+0.25] TEST: User specified metric on first device [ OK ] # 62.88 [+0.27] TEST: User specified metric on second device [ OK ] # 63.03 [+0.15] TEST: Delete of address on first device [ OK ] # 63.18 [+0.15] TEST: Modify metric of address [ OK ] # 63.45 [+0.27] TEST: Prefix route removed on link down [ OK ] # 63.60 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 63.84 [+0.24] TEST: Set metric with peer route on local side [ OK ] # 63.91 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 64.07 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 64.15 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 64.98 [+0.83] # 64.98 [+0.00] IPv4 prefix route tests # 66.49 [+1.51] TEST: Default metric [ OK ] # 66.71 [+0.22] TEST: User specified metric on first device [ OK ] # 66.94 [+0.24] TEST: User specified metric on second device [ OK ] # 67.10 [+0.15] TEST: Delete of address on first device [ OK ] # 67.25 [+0.15] TEST: Modify metric of address [ OK ] # 67.39 [+0.15] TEST: Prefix route removed on link down [ OK ] # 67.53 [+0.14] TEST: Prefix route with metric on link up [ OK ] # 67.84 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 68.09 [+0.25] TEST: Set metric of address with peer route [ OK ] # 68.24 [+0.16] TEST: Modify metric and peer address for peer route [ OK ] # 69.07 [+0.83] # 69.07 [+0.00] IPv6 routes with metrics # 72.90 [+3.83] TEST: Single path route with mtu metric [ OK ] # 73.15 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 73.38 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 73.54 [+0.15] TEST: MTU of second leg [ OK ] # 73.71 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 73.89 [+0.19] TEST: Using route with mtu metric [ OK ] # 74.03 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 75.57 [+1.54] # 75.57 [+0.00] IPv4 route add / append tests # 79.43 [+3.86] TEST: Single path route with mtu metric [ OK ] # 79.59 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 79.77 [+0.18] TEST: Using route with mtu metric [ OK ] # 79.90 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 81.45 [+1.55] # 81.45 [+0.00] IPv4 route with IPv6 gateway tests # 87.21 [+5.76] TEST: Single path route with IPv6 gateway [ OK ] # 87.40 [+0.19] TEST: Single path route with IPv6 gateway - ping [ OK ] # 87.49 [+0.08] TEST: Single path route delete [ OK ] # 87.64 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 87.80 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.88 [+0.08] TEST: Multipath route delete exact match [ OK ] # 87.97 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 88.13 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 88.21 [+0.08] TEST: Multipath route delete exact match [ OK ] # 89.68 [+1.47] # 89.68 [+0.00] IPv4 rp_filter tests # 94.68 [+5.00] TEST: rp_filter passes local packets [ OK ] # 94.80 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 95.44 [+0.64] # 95.44 [+0.00] IPv4 delete address route tests # 97.81 [+2.36] Regular FIB info # 97.94 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 98.02 [+0.08] TEST: Route in default VRF not removed [ OK ] # 98.30 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.37 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 98.37 [+0.00] Identical FIB info with different table ID # 98.51 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 98.58 [+0.07] TEST: Route in default VRF not removed [ OK ] # 98.86 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.95 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 98.95 [+0.00] Table ID 0 # 99.09 [+0.14] TEST: Route removed in default VRF when source address deleted [ OK ] # 99.93 [+0.84] # 99.93 [+0.00] IPv6 delete address route tests # 103.95 [+4.02] Single device using src address # 104.08 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 104.08 [+0.00] Two devices with the same source address # 104.24 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 104.40 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 104.40 [+0.00] VRF with single device using src address # 104.55 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 104.55 [+0.00] VRF with two devices using src address # 104.69 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 104.85 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 104.85 [+0.00] src address and nexthop dev in same VRF # 105.01 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 105.08 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 105.38 [+0.30] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 105.46 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 105.46 [+0.00] src address and nexthop device in different VRF # 105.62 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 105.69 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 105.93 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 106.01 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 106.01 [+0.00] Table ID 0 # 106.16 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 106.16 [+0.00] Link local source route # 106.31 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 106.45 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 106.55 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 106.78 [+0.23] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 108.13 [+1.34] # 108.13 [+0.00] IPv4 mangling tests # 114.92 [+6.80] TEST: Connection with correct parameters [ OK ] # 115.07 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 115.94 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 116.76 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 116.80 [+0.05] TEST: Connection check - server side [ OK ] # 118.58 [+1.77] # 118.58 [+0.00] IPv6 mangling tests # 125.24 [+6.66] TEST: Connection with correct parameters [ OK ] # 125.40 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 126.21 [+0.81] TEST: Connection with correct parameters - mangling [ OK ] # 127.04 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 127.08 [+0.05] TEST: Connection check - server side [ OK ] # 128.80 [+1.72] # 128.80 [+0.00] IPv4 broadcast neighbour tests # 130.64 [+1.84] TEST: Resolved neighbour for broadcast address [ OK ] # 130.72 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 130.80 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 130.87 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 132.47 [+1.60] # 132.47 [+0.00] Fib6 garbage collection test # 145.51 [+13.04] TEST: ipv6 route garbage collection [ OK ] # 158.74 [+13.23] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 171.93 [+13.19] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 185.17 [+13.25] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 199.20 [+14.03] TEST: ipv6 route garbage collection (RA message) [ OK ] # 199.81 [+0.61] # 199.81 [+0.00] IPv4 multipath list receive tests # 211.60 [+11.78] TEST: Multipath route hit ratio (1.00) [ OK ] # 213.01 [+1.41] # 213.01 [+0.00] IPv6 multipath list receive tests # 224.52 [+11.51] TEST: Multipath route hit ratio (1.00) [ OK ] # 226.02 [+1.50] # 226.02 [+0.00] Tests passed: 229 # 226.02 [+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__->