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.32 [+0.32] # 0.32 [+0.00] Single path route test # 1.03 [+0.71] Start point # 1.09 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.16 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.27 [+0.12] Nexthop device deleted # 1.33 [+0.06] TEST: IPv4 fibmatch - no route [ OK ] # 1.40 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.82 [+0.42] # 1.82 [+0.00] Multipath route test # 3.11 [+1.29] Start point # 3.18 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.25 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.36 [+0.11] One nexthop device deleted # 3.42 [+0.06] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.49 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.60 [+0.11] Second nexthop device deleted # 3.67 [+0.07] TEST: IPv6 - no route [ OK ] # 4.09 [+0.42] # 4.09 [+0.00] Single path, admin down # 4.97 [+0.88] Start point # 5.04 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.10 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.18 [+0.08] Route deleted on down # 5.24 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.32 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.67 [+0.36] # 5.67 [+0.00] Admin down multipath # 6.97 [+1.30] Verify start point # 7.05 [+0.08] TEST: IPv4 fibmatch [ OK ] # 7.11 [+0.06] TEST: IPv6 fibmatch [ OK ] # 7.18 [+0.07] One device down, one up # 7.24 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 7.31 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.38 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.45 [+0.06] TEST: IPv6 fibmatch on up device [ OK ] # 7.54 [+0.09] TEST: IPv4 flags on down device [ OK ] # 7.61 [+0.07] TEST: IPv6 flags on down device [ OK ] # 7.70 [+0.09] TEST: IPv4 flags on up device [ OK ] # 7.77 [+0.07] TEST: IPv6 flags on up device [ OK ] # 7.90 [+0.13] Other device down and up # 7.96 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 8.03 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 8.09 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.17 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.24 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.30 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.38 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.45 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.52 [+0.07] Both devices down # 8.59 [+0.07] TEST: IPv4 fibmatch [ OK ] # 8.65 [+0.06] TEST: IPv6 fibmatch [ OK ] # 9.11 [+0.46] # 9.11 [+0.00] Local carrier tests - single path # 10.09 [+0.98] Start point # 10.15 [+0.06] TEST: IPv4 fibmatch [ OK ] # 10.22 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.27 [+0.05] TEST: IPv4 - no linkdown flag [ OK ] # 10.34 [+0.07] TEST: IPv6 - no linkdown flag [ OK ] # 11.44 [+1.10] Carrier off on nexthop # 11.51 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.58 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.65 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 11.73 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 11.86 [+0.13] Route to local address with carrier down # 11.92 [+0.06] TEST: IPv4 fibmatch [ OK ] # 11.99 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.05 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 12.11 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 12.47 [+0.37] # 12.48 [+0.00] Single path route carrier test # 13.43 [+0.95] Start point # 13.50 [+0.07] TEST: IPv4 fibmatch [ OK ] # 13.57 [+0.07] TEST: IPv6 fibmatch [ OK ] # 13.63 [+0.06] TEST: IPv4 no linkdown flag [ OK ] # 13.70 [+0.06] TEST: IPv6 no linkdown flag [ OK ] # 14.81 [+1.11] Carrier down # 14.88 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.94 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.02 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.07 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 15.20 [+0.13] Second address added with carrier down # 15.27 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.34 [+0.06] TEST: IPv6 fibmatch [ OK ] # 15.40 [+0.06] TEST: IPv4 linkdown flag set [ OK ] # 15.46 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 19.03 [+3.57] # 19.03 [+0.00] IPv4 nexthop tests # 19.03 [+0.00] <<< write me >>> # 19.21 [+0.19] # 19.21 [+0.00] IPv6 nexthop tests # 19.30 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 19.37 [+0.07] TEST: Directly connected nexthop, unicast address with device [ OK ] # 19.44 [+0.08] TEST: Gateway is linklocal address [ OK ] # 19.52 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 19.60 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 19.66 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 19.74 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 19.81 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 19.89 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 19.97 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.04 [+0.07] TEST: Redirect to VRF lookup [ OK ] # 20.11 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.19 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 20.26 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.02 [+0.75] # 21.02 [+0.00] FIB rule with suppress_prefixlength # 22.44 [+1.42] TEST: FIB rule suppress test [ OK ] # 23.69 [+1.25] # 23.69 [+0.00] Fib6 info length calculation in route notify test # 27.24 [+3.56] TEST: ipv6 route add notify [ OK ] # 28.52 [+1.27] # 28.52 [+0.00] Fib4 info length calculation in route notify test # 32.06 [+3.54] TEST: ipv4 route add notify [ OK ] # 35.57 [+3.51] # 35.57 [+0.00] IPv6 route add / append tests # 35.84 [+0.27] TEST: Attempt to add duplicate route - gw [ OK ] # 36.13 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 36.42 [+0.28] TEST: Attempt to add duplicate route - reject route [ OK ] # 36.79 [+0.38] TEST: Append nexthop to existing route - gw [ OK ] # 37.09 [+0.30] TEST: Add multipath route [ OK ] # 37.39 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 37.74 [+0.35] TEST: Route add with different metrics [ OK ] # 37.89 [+0.15] TEST: Route delete with metric [ OK ] # 37.89 [+0.00] # 37.89 [+0.00] IPv6 route replace tests # 38.27 [+0.38] TEST: Single path with single path [ OK ] # 38.64 [+0.37] TEST: Single path with multipath [ OK ] # 39.00 [+0.36] TEST: Single path with single path via multipath attribute [ OK ] # 39.36 [+0.35] TEST: Invalid nexthop [ OK ] # 39.64 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 40.01 [+0.37] TEST: Multipath with multipath [ OK ] # 40.37 [+0.36] TEST: Multipath with single path [ OK ] # 40.74 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 41.08 [+0.34] TEST: Multipath with dev-only [ OK ] # 41.47 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 41.82 [+0.35] TEST: Multipath - invalid second nexthop [ OK ] # 42.10 [+0.28] TEST: Multipath - replace of non-existent route [ OK ] # 42.11 [+0.00] # 42.11 [+0.00] IPv6 route with dsfield tests # 42.25 [+0.14] TEST: Reject route with dsfield [ OK ] # 47.22 [+4.97] # 47.22 [+0.00] IPv4 route add / append tests # 47.49 [+0.28] TEST: Attempt to add duplicate route - gw [ OK ] # 47.79 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.07 [+0.28] TEST: Attempt to add duplicate route - reject route [ OK ] # 48.42 [+0.35] TEST: Add new nexthop for existing prefix [ OK ] # 48.78 [+0.36] TEST: Append nexthop to existing route - gw [ OK ] # 49.14 [+0.35] TEST: Append nexthop to existing route - dev only [ OK ] # 49.51 [+0.37] TEST: Append nexthop to existing route - reject route [ OK ] # 49.80 [+0.30] TEST: Append nexthop to existing reject route - gw [ OK ] # 50.09 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 50.39 [+0.30] TEST: add multipath route [ OK ] # 50.68 [+0.28] TEST: Attempt to add duplicate multipath route [ OK ] # 51.03 [+0.35] TEST: Route add with different metrics [ OK ] # 51.17 [+0.15] TEST: Route delete with metric [ OK ] # 51.17 [+0.00] # 51.18 [+0.00] IPv4 route replace tests # 51.55 [+0.37] TEST: Single path with single path [ OK ] # 51.90 [+0.35] TEST: Single path with multipath [ OK ] # 52.25 [+0.36] TEST: Single path with reject route [ OK ] # 52.62 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 52.98 [+0.36] TEST: Invalid nexthop [ OK ] # 53.27 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 53.63 [+0.36] TEST: Multipath with multipath [ OK ] # 53.98 [+0.35] TEST: Multipath with single path [ OK ] # 54.34 [+0.36] TEST: Multipath with single path via multipath attribute [ OK ] # 54.70 [+0.37] TEST: Multipath with reject route [ OK ] # 55.07 [+0.36] TEST: Multipath - invalid first nexthop [ OK ] # 55.42 [+0.35] TEST: Multipath - invalid second nexthop [ OK ] # 55.71 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 56.86 [+1.15] TEST: Cached route removed from VRF port device [ OK ] # 56.87 [+0.00] # 56.87 [+0.00] IPv4 route with dsfield tests # 57.01 [+0.14] TEST: Reject route with dsfield 0x01 [ OK ] # 57.08 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 57.15 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 57.37 [+0.22] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 57.44 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 57.51 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 57.58 [+0.06] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 57.65 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 57.71 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 57.78 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 57.85 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 57.91 [+0.06] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 57.99 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 58.05 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 58.12 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 59.48 [+1.35] # 59.48 [+0.00] IPv6 prefix route tests # 61.00 [+1.52] TEST: Default metric [ OK ] # 61.24 [+0.24] TEST: User specified metric on first device [ OK ] # 61.48 [+0.24] TEST: User specified metric on second device [ OK ] # 61.63 [+0.15] TEST: Delete of address on first device [ OK ] # 61.77 [+0.15] TEST: Modify metric of address [ OK ] # 62.04 [+0.27] TEST: Prefix route removed on link down [ OK ] # 62.19 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 62.41 [+0.22] TEST: Set metric with peer route on local side [ OK ] # 62.50 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 62.66 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 62.73 [+0.07] TEST: Modify metric and peer address on peer side [ OK ] # 63.55 [+0.81] # 63.55 [+0.00] IPv4 prefix route tests # 65.04 [+1.49] TEST: Default metric [ OK ] # 65.27 [+0.23] TEST: User specified metric on first device [ OK ] # 65.49 [+0.22] TEST: User specified metric on second device [ OK ] # 65.63 [+0.14] TEST: Delete of address on first device [ OK ] # 65.77 [+0.14] TEST: Modify metric of address [ OK ] # 65.91 [+0.15] TEST: Prefix route removed on link down [ OK ] # 66.05 [+0.14] TEST: Prefix route with metric on link up [ OK ] # 66.34 [+0.28] TEST: Modify metric of .0/24 address [ OK ] # 66.57 [+0.23] TEST: Set metric of address with peer route [ OK ] # 66.72 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 67.52 [+0.80] # 67.52 [+0.00] IPv6 routes with metrics # 71.13 [+3.61] TEST: Single path route with mtu metric [ OK ] # 71.35 [+0.22] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 71.58 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 71.74 [+0.17] TEST: MTU of second leg [ OK ] # 71.91 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 72.10 [+0.20] TEST: Using route with mtu metric [ OK ] # 72.23 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 73.69 [+1.46] # 73.69 [+0.00] IPv4 route add / append tests # 77.31 [+3.62] TEST: Single path route with mtu metric [ OK ] # 77.47 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 77.65 [+0.18] TEST: Using route with mtu metric [ OK ] # 77.78 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 79.21 [+1.42] # 79.21 [+0.00] IPv4 route with IPv6 gateway tests # 84.78 [+5.58] TEST: Single path route with IPv6 gateway [ OK ] # 84.98 [+0.20] TEST: Single path route with IPv6 gateway - ping [ OK ] # 85.06 [+0.08] TEST: Single path route delete [ OK ] # 85.19 [+0.14] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 85.35 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 85.42 [+0.07] TEST: Multipath route delete exact match [ OK ] # 85.49 [+0.07] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 85.65 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 85.73 [+0.09] TEST: Multipath route delete exact match [ OK ] # 87.24 [+1.51] # 87.24 [+0.00] IPv4 rp_filter tests # 91.94 [+4.70] TEST: rp_filter passes local packets [ OK ] # 92.06 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 92.69 [+0.63] # 92.69 [+0.00] IPv4 delete address route tests # 94.91 [+2.23] Regular FIB info # 95.06 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 95.12 [+0.06] TEST: Route in default VRF not removed [ OK ] # 95.39 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 95.45 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 95.45 [+0.00] Identical FIB info with different table ID # 95.59 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 95.67 [+0.08] TEST: Route in default VRF not removed [ OK ] # 95.94 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 96.01 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 96.01 [+0.00] Table ID 0 # 96.15 [+0.14] TEST: Route removed in default VRF when source address deleted [ OK ] # 96.94 [+0.79] # 96.94 [+0.00] IPv6 delete address route tests # 100.65 [+3.71] Single device using src address # 100.78 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 100.78 [+0.00] Two devices with the same source address # 100.92 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 101.05 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 101.05 [+0.00] VRF with single device using src address # 101.18 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 101.18 [+0.00] VRF with two devices using src address # 101.32 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 101.45 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 101.45 [+0.00] src address and nexthop dev in same VRF # 101.58 [+0.12] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 101.65 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 101.91 [+0.26] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 101.98 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 101.98 [+0.00] src address and nexthop device in different VRF # 102.13 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 102.20 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 102.40 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 102.47 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 102.47 [+0.00] Table ID 0 # 102.61 [+0.14] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 102.61 [+0.00] Link local source route # 102.75 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 102.89 [+0.13] TEST: Prefsrc removed when delete ll addr [ OK ] # 102.96 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 103.17 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 104.40 [+1.23] # 104.40 [+0.00] IPv4 mangling tests # 110.87 [+6.47] TEST: Connection with correct parameters [ OK ] # 111.01 [+0.14] TEST: Connection with incorrect parameters [ OK ] # 111.87 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 112.67 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 112.72 [+0.05] TEST: Connection check - server side [ OK ] # 114.43 [+1.72] # 114.43 [+0.00] IPv6 mangling tests # 120.89 [+6.46] TEST: Connection with correct parameters [ OK ] # 121.04 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 121.83 [+0.79] TEST: Connection with correct parameters - mangling [ OK ] # 122.62 [+0.79] TEST: Connection with correct parameters - no mangling [ OK ] # 122.67 [+0.05] TEST: Connection check - server side [ OK ] # 124.31 [+1.64] # 124.32 [+0.00] IPv4 broadcast neighbour tests # 126.07 [+1.76] TEST: Resolved neighbour for broadcast address [ OK ] # 126.15 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 126.22 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 126.29 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 127.76 [+1.47] # 127.76 [+0.00] Fib6 garbage collection test # 140.72 [+12.96] TEST: ipv6 route garbage collection [ OK ] # 153.87 [+13.15] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 167.03 [+13.16] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 180.27 [+13.24] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 194.31 [+14.04] TEST: ipv6 route garbage collection (RA message) [ OK ] # 194.89 [+0.58] # 194.89 [+0.00] IPv4 multipath list receive tests # 206.28 [+11.39] TEST: Multipath route hit ratio (1.00) [ OK ] # 207.84 [+1.56] # 207.84 [+0.00] IPv6 multipath list receive tests # 218.88 [+11.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 220.36 [+1.48] # 220.36 [+0.00] Tests passed: 229 # 220.36 [+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__->