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 # 1.43 [+1.43] # 1.43 [+0.00] Single path route test # 4.20 [+2.77] Start point # 4.42 [+0.22] TEST: IPv4 fibmatch [ OK ] # 4.70 [+0.29] TEST: IPv6 fibmatch [ OK ] # 4.98 [+0.28] Nexthop device deleted # 5.25 [+0.27] TEST: IPv4 fibmatch - no route [ OK ] # 5.51 [+0.25] TEST: IPv6 fibmatch - no route [ OK ] # 7.38 [+1.88] # 7.38 [+0.00] Multipath route test # 12.10 [+4.72] Start point # 12.35 [+0.25] TEST: IPv4 fibmatch [ OK ] # 12.66 [+0.31] TEST: IPv6 fibmatch [ OK ] # 12.98 [+0.31] One nexthop device deleted # 13.25 [+0.27] TEST: IPv4 - multipath route removed on delete [ OK ] # 13.57 [+0.33] TEST: IPv6 - multipath down to single path [ OK ] # 13.97 [+0.40] Second nexthop device deleted # 14.35 [+0.38] TEST: IPv6 - no route [ OK ] # 16.61 [+2.26] # 16.61 [+0.00] Single path, admin down # 26.24 [+9.63] Start point # 26.60 [+0.37] TEST: IPv4 fibmatch [ OK ] # 26.89 [+0.28] TEST: IPv6 fibmatch [ OK ] # 27.19 [+0.31] Route deleted on down # 27.53 [+0.34] TEST: IPv4 fibmatch [ OK ] # 27.79 [+0.27] TEST: IPv6 fibmatch [ OK ] # 29.37 [+1.57] # 29.37 [+0.00] Admin down multipath # 35.12 [+5.75] Verify start point # 35.46 [+0.35] TEST: IPv4 fibmatch [ OK ] # 35.85 [+0.39] TEST: IPv6 fibmatch [ OK ] # 36.04 [+0.19] One device down, one up # 36.33 [+0.29] TEST: IPv4 fibmatch on down device [ OK ] # 36.63 [+0.30] TEST: IPv6 fibmatch on down device [ OK ] # 36.84 [+0.20] TEST: IPv4 fibmatch on up device [ OK ] # 37.11 [+0.27] TEST: IPv6 fibmatch on up device [ OK ] # 37.37 [+0.25] TEST: IPv4 flags on down device [ OK ] # 37.66 [+0.29] TEST: IPv6 flags on down device [ OK ] # 37.90 [+0.25] TEST: IPv4 flags on up device [ OK ] # 38.29 [+0.39] TEST: IPv6 flags on up device [ OK ] # 38.86 [+0.57] Other device down and up # 39.07 [+0.21] TEST: IPv4 fibmatch on down device [ OK ] # 39.45 [+0.39] TEST: IPv6 fibmatch on down device [ OK ] # 39.79 [+0.34] TEST: IPv4 fibmatch on up device [ OK ] # 40.17 [+0.38] TEST: IPv6 fibmatch on up device [ OK ] # 40.53 [+0.36] TEST: IPv4 flags on down device [ OK ] # 40.84 [+0.31] TEST: IPv6 flags on down device [ OK ] # 41.09 [+0.26] TEST: IPv4 flags on up device [ OK ] # 41.48 [+0.39] TEST: IPv6 flags on up device [ OK ] # 41.78 [+0.30] Both devices down # 42.14 [+0.36] TEST: IPv4 fibmatch [ OK ] # 42.37 [+0.23] TEST: IPv6 fibmatch [ OK ] # 44.37 [+1.99] # 44.37 [+0.00] Local carrier tests - single path # 48.82 [+4.46] Start point # 49.13 [+0.30] TEST: IPv4 fibmatch [ OK ] # 49.42 [+0.29] TEST: IPv6 fibmatch [ OK ] # 49.82 [+0.39] TEST: IPv4 - no linkdown flag [ OK ] # 50.18 [+0.37] TEST: IPv6 - no linkdown flag [ OK ] # 51.71 [+1.52] Carrier off on nexthop # 52.04 [+0.33] TEST: IPv4 fibmatch [ OK ] # 52.42 [+0.39] TEST: IPv6 fibmatch [ OK ] # 52.69 [+0.27] TEST: IPv4 - linkdown flag set [ OK ] # 53.07 [+0.38] TEST: IPv6 - linkdown flag set [ OK ] # 53.61 [+0.55] Route to local address with carrier down # 53.85 [+0.24] TEST: IPv4 fibmatch [ OK ] # 54.12 [+0.27] TEST: IPv6 fibmatch [ OK ] # 54.51 [+0.38] TEST: IPv4 linkdown flag set [ OK ] # 54.95 [+0.45] TEST: IPv6 linkdown flag set [ OK ] # 56.40 [+1.45] # 56.41 [+0.00] Single path route carrier test # 60.61 [+4.20] Start point # 60.84 [+0.24] TEST: IPv4 fibmatch [ OK ] # 61.15 [+0.31] TEST: IPv6 fibmatch [ OK ] # 61.46 [+0.31] TEST: IPv4 no linkdown flag [ OK ] # 61.66 [+0.20] TEST: IPv6 no linkdown flag [ OK ] # 63.08 [+1.42] Carrier down # 63.36 [+0.28] TEST: IPv4 fibmatch [ OK ] # 63.60 [+0.24] TEST: IPv6 fibmatch [ OK ] # 63.93 [+0.33] TEST: IPv4 linkdown flag set [ OK ] # 64.19 [+0.26] TEST: IPv6 linkdown flag set [ OK ] # 64.65 [+0.46] Second address added with carrier down # 65.01 [+0.36] TEST: IPv4 fibmatch [ OK ] # 65.35 [+0.33] TEST: IPv6 fibmatch [ OK ] # 65.82 [+0.47] TEST: IPv4 linkdown flag set [ OK ] # 66.11 [+0.30] TEST: IPv6 linkdown flag set [ OK ] # 75.98 [+9.87] # 75.98 [+0.00] IPv4 nexthop tests # 75.98 [+0.00] <<< write me >>> # 76.18 [+0.19] # 76.18 [+0.00] IPv6 nexthop tests # 76.26 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 76.33 [+0.07] TEST: Directly connected nexthop, unicast address with device [ OK ] # 76.42 [+0.09] TEST: Gateway is linklocal address [ OK ] # 76.49 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 76.57 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 76.66 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 76.75 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 76.82 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 76.91 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 76.98 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 77.06 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 77.14 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 77.22 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 77.29 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 78.23 [+0.93] # 78.23 [+0.00] FIB rule with suppress_prefixlength # 79.61 [+1.39] TEST: FIB rule suppress test [ OK ] # 80.88 [+1.27] # 80.88 [+0.00] Fib6 info length calculation in route notify test # 84.58 [+3.70] TEST: ipv6 route add notify [ OK ] # 85.84 [+1.26] # 85.84 [+0.00] Fib4 info length calculation in route notify test # 89.37 [+3.53] TEST: ipv4 route add notify [ OK ] # 92.78 [+3.41] # 92.78 [+0.00] IPv6 route add / append tests # 93.07 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 93.35 [+0.28] TEST: Attempt to add duplicate route - dev only [ OK ] # 93.64 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 94.00 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 94.31 [+0.30] TEST: Add multipath route [ OK ] # 94.59 [+0.28] TEST: Attempt to add duplicate multipath route [ OK ] # 94.95 [+0.35] TEST: Route add with different metrics [ OK ] # 95.11 [+0.16] TEST: Route delete with metric [ OK ] # 95.11 [+0.00] # 95.11 [+0.00] IPv6 route replace tests # 95.48 [+0.37] TEST: Single path with single path [ OK ] # 95.85 [+0.37] TEST: Single path with multipath [ OK ] # 96.20 [+0.35] TEST: Single path with single path via multipath attribute [ OK ] # 96.56 [+0.37] TEST: Invalid nexthop [ OK ] # 96.86 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 97.22 [+0.36] TEST: Multipath with multipath [ OK ] # 97.58 [+0.37] TEST: Multipath with single path [ OK ] # 97.94 [+0.36] TEST: Multipath with single path via multipath attribute [ OK ] # 98.31 [+0.36] TEST: Multipath with dev-only [ OK ] # 98.66 [+0.35] TEST: Multipath - invalid first nexthop [ OK ] # 99.03 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 99.30 [+0.27] TEST: Multipath - replace of non-existent route [ OK ] # 99.30 [+0.00] # 99.30 [+0.00] IPv6 route with dsfield tests # 99.45 [+0.15] TEST: Reject route with dsfield [ OK ] # 104.49 [+5.04] # 104.49 [+0.00] IPv4 route add / append tests # 104.82 [+0.33] TEST: Attempt to add duplicate route - gw [ OK ] # 105.11 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 105.44 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 105.80 [+0.36] TEST: Add new nexthop for existing prefix [ OK ] # 106.18 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 106.53 [+0.36] TEST: Append nexthop to existing route - dev only [ OK ] # 106.89 [+0.36] TEST: Append nexthop to existing route - reject route [ OK ] # 107.20 [+0.31] TEST: Append nexthop to existing reject route - gw [ OK ] # 107.49 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 107.79 [+0.29] TEST: add multipath route [ OK ] # 108.08 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 108.48 [+0.40] TEST: Route add with different metrics [ OK ] # 108.65 [+0.17] TEST: Route delete with metric [ OK ] # 108.65 [+0.00] # 108.65 [+0.00] IPv4 route replace tests # 109.02 [+0.37] TEST: Single path with single path [ OK ] # 109.39 [+0.37] TEST: Single path with multipath [ OK ] # 109.77 [+0.38] TEST: Single path with reject route [ OK ] # 110.17 [+0.40] TEST: Single path with single path via multipath attribute [ OK ] # 110.57 [+0.40] TEST: Invalid nexthop [ OK ] # 110.89 [+0.32] TEST: Single path - replace of non-existent route [ OK ] # 111.30 [+0.41] TEST: Multipath with multipath [ OK ] # 111.69 [+0.39] TEST: Multipath with single path [ OK ] # 112.06 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 112.48 [+0.42] TEST: Multipath with reject route [ OK ] # 112.84 [+0.36] TEST: Multipath - invalid first nexthop [ OK ] # 113.21 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 113.50 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 114.68 [+1.18] TEST: Cached route removed from VRF port device [ OK ] # 114.68 [+0.00] # 114.68 [+0.00] IPv4 route with dsfield tests # 114.82 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 114.91 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 114.98 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 115.21 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 115.29 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 115.35 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 115.43 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 115.50 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 115.59 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 115.65 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 115.72 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 115.79 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 115.87 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 115.95 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 116.01 [+0.06] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 117.50 [+1.49] # 117.50 [+0.00] IPv6 prefix route tests # 119.03 [+1.53] TEST: Default metric [ OK ] # 119.25 [+0.22] TEST: User specified metric on first device [ OK ] # 119.48 [+0.23] TEST: User specified metric on second device [ OK ] # 119.63 [+0.14] TEST: Delete of address on first device [ OK ] # 119.78 [+0.15] TEST: Modify metric of address [ OK ] # 120.04 [+0.26] TEST: Prefix route removed on link down [ OK ] # 120.19 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 120.42 [+0.23] TEST: Set metric with peer route on local side [ OK ] # 120.49 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 120.65 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 120.73 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 121.50 [+0.77] # 121.50 [+0.00] IPv4 prefix route tests # 122.95 [+1.45] TEST: Default metric [ OK ] # 123.17 [+0.21] TEST: User specified metric on first device [ OK ] # 123.39 [+0.22] TEST: User specified metric on second device [ OK ] # 123.54 [+0.15] TEST: Delete of address on first device [ OK ] # 123.69 [+0.15] TEST: Modify metric of address [ OK ] # 123.83 [+0.14] TEST: Prefix route removed on link down [ OK ] # 123.97 [+0.14] TEST: Prefix route with metric on link up [ OK ] # 124.27 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 124.49 [+0.21] TEST: Set metric of address with peer route [ OK ] # 124.64 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 125.47 [+0.83] # 125.47 [+0.00] IPv6 routes with metrics # 129.05 [+3.59] TEST: Single path route with mtu metric [ OK ] # 129.28 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 129.52 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 129.68 [+0.15] TEST: MTU of second leg [ OK ] # 129.83 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 130.01 [+0.18] TEST: Using route with mtu metric [ OK ] # 130.14 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 131.54 [+1.40] # 131.54 [+0.00] IPv4 route add / append tests # 135.12 [+3.58] TEST: Single path route with mtu metric [ OK ] # 135.26 [+0.14] TEST: Multipath route with mtu metric [ OK ] # 135.45 [+0.18] TEST: Using route with mtu metric [ OK ] # 135.57 [+0.12] TEST: Invalid metric (fails metric_convert) [ OK ] # 137.01 [+1.44] # 137.01 [+0.00] IPv4 route with IPv6 gateway tests # 142.53 [+5.52] TEST: Single path route with IPv6 gateway [ OK ] # 142.71 [+0.18] TEST: Single path route with IPv6 gateway - ping [ OK ] # 142.79 [+0.08] TEST: Single path route delete [ OK ] # 142.92 [+0.13] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 143.07 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 143.14 [+0.07] TEST: Multipath route delete exact match [ OK ] # 143.21 [+0.07] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 143.36 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 143.44 [+0.08] TEST: Multipath route delete exact match [ OK ] # 144.89 [+1.45] # 144.89 [+0.00] IPv4 rp_filter tests # 149.58 [+4.69] TEST: rp_filter passes local packets [ OK ] # 149.70 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 150.33 [+0.63] # 150.34 [+0.00] IPv4 delete address route tests # 152.58 [+2.25] Regular FIB info # 152.71 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 152.79 [+0.08] TEST: Route in default VRF not removed [ OK ] # 153.06 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 153.13 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 153.13 [+0.00] Identical FIB info with different table ID # 153.27 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 153.34 [+0.07] TEST: Route in default VRF not removed [ OK ] # 153.60 [+0.26] TEST: Route removed in default VRF when source address deleted [ OK ] # 153.65 [+0.05] TEST: Route in VRF is not removed by address delete [ OK ] # 153.66 [+0.00] Table ID 0 # 153.80 [+0.14] TEST: Route removed in default VRF when source address deleted [ OK ] # 154.56 [+0.76] # 154.56 [+0.00] IPv6 delete address route tests # 158.25 [+3.69] Single device using src address # 158.39 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 158.39 [+0.00] Two devices with the same source address # 158.52 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 158.67 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 158.67 [+0.00] VRF with single device using src address # 158.80 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 158.81 [+0.00] VRF with two devices using src address # 158.94 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 159.09 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 159.09 [+0.00] src address and nexthop dev in same VRF # 159.23 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 159.30 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 159.56 [+0.27] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 159.62 [+0.06] TEST: Prefsrc in default VRF removed [ OK ] # 159.62 [+0.00] src address and nexthop device in different VRF # 159.75 [+0.13] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 159.82 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 160.02 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 160.09 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 160.09 [+0.00] Table ID 0 # 160.21 [+0.13] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 160.22 [+0.00] Link local source route # 160.36 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 160.49 [+0.12] TEST: Prefsrc removed when delete ll addr [ OK ] # 160.55 [+0.06] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 160.76 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 161.98 [+1.22] # 161.98 [+0.00] IPv4 mangling tests # 168.45 [+6.47] TEST: Connection with correct parameters [ OK ] # 168.59 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 169.45 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 170.27 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 170.32 [+0.04] TEST: Connection check - server side [ OK ] # 171.99 [+1.67] # 171.99 [+0.00] IPv6 mangling tests # 178.49 [+6.50] TEST: Connection with correct parameters [ OK ] # 178.64 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 179.45 [+0.81] TEST: Connection with correct parameters - mangling [ OK ] # 180.25 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 180.30 [+0.04] TEST: Connection check - server side [ OK ] # 181.99 [+1.69] # 181.99 [+0.00] IPv4 broadcast neighbour tests # 183.75 [+1.76] TEST: Resolved neighbour for broadcast address [ OK ] # 183.83 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 183.91 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 183.99 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 185.47 [+1.48] # 185.47 [+0.00] Fib6 garbage collection test # 198.44 [+12.97] TEST: ipv6 route garbage collection [ OK ] # 211.60 [+13.16] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 224.79 [+13.19] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 238.00 [+13.21] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 252.03 [+14.03] TEST: ipv6 route garbage collection (RA message) [ OK ] # 252.64 [+0.61] # 252.64 [+0.00] IPv4 multipath list receive tests # 263.99 [+11.35] TEST: Multipath route hit ratio (1.00) [ OK ] # 265.45 [+1.46] # 265.45 [+0.00] IPv6 multipath list receive tests # 276.58 [+11.13] TEST: Multipath route hit ratio (1.00) [ OK ] # 278.12 [+1.55] # 278.12 [+0.00] Tests passed: 229 # 278.12 [+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__->