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.56 [+0.56] # 0.56 [+0.00] Single path route test # 2.00 [+1.44] Start point # 2.12 [+0.12] TEST: IPv4 fibmatch [ OK ] # 2.23 [+0.11] TEST: IPv6 fibmatch [ OK ] # 2.36 [+0.13] Nexthop device deleted # 2.48 [+0.12] TEST: IPv4 fibmatch - no route [ OK ] # 2.58 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 3.36 [+0.78] # 3.36 [+0.00] Multipath route test # 5.62 [+2.26] Start point # 5.71 [+0.09] TEST: IPv4 fibmatch [ OK ] # 5.82 [+0.11] TEST: IPv6 fibmatch [ OK ] # 5.99 [+0.17] One nexthop device deleted # 6.09 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.25 [+0.16] TEST: IPv6 - multipath down to single path [ OK ] # 6.44 [+0.20] Second nexthop device deleted # 6.56 [+0.12] TEST: IPv6 - no route [ OK ] # 7.20 [+0.64] # 7.20 [+0.00] Single path, admin down # 8.62 [+1.42] Start point # 8.72 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.82 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.92 [+0.10] Route deleted on down # 9.02 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.11 [+0.09] TEST: IPv6 fibmatch [ OK ] # 9.62 [+0.51] # 9.62 [+0.00] Admin down multipath # 11.42 [+1.80] Verify start point # 11.51 [+0.09] TEST: IPv4 fibmatch [ OK ] # 11.59 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.69 [+0.10] One device down, one up # 11.78 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 11.87 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 11.96 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 12.04 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 12.15 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.23 [+0.09] TEST: IPv6 flags on down device [ OK ] # 12.34 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.45 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.63 [+0.18] Other device down and up # 12.71 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 12.80 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.89 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 12.98 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 13.06 [+0.09] TEST: IPv4 flags on down device [ OK ] # 13.16 [+0.10] TEST: IPv6 flags on down device [ OK ] # 13.27 [+0.11] TEST: IPv4 flags on up device [ OK ] # 13.36 [+0.08] TEST: IPv6 flags on up device [ OK ] # 13.46 [+0.11] Both devices down # 13.55 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.64 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.23 [+0.59] # 14.23 [+0.00] Local carrier tests - single path # 15.46 [+1.23] Start point # 15.56 [+0.10] TEST: IPv4 fibmatch [ OK ] # 15.64 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.74 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 15.82 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 16.95 [+1.12] Carrier off on nexthop # 17.04 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.12 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.22 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 17.31 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 17.47 [+0.16] Route to local address with carrier down # 17.56 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.65 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.75 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 17.82 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 18.27 [+0.45] # 18.27 [+0.00] Single path route carrier test # 19.48 [+1.21] Start point # 19.57 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.65 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.72 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 19.79 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 20.92 [+1.13] Carrier down # 21.01 [+0.09] TEST: IPv4 fibmatch [ OK ] # 21.09 [+0.08] TEST: IPv6 fibmatch [ OK ] # 21.18 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 21.27 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 21.43 [+0.16] Second address added with carrier down # 21.50 [+0.08] TEST: IPv4 fibmatch [ OK ] # 21.59 [+0.08] TEST: IPv6 fibmatch [ OK ] # 21.68 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 21.76 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 25.84 [+4.08] # 25.84 [+0.00] IPv4 nexthop tests # 25.84 [+0.00] <<< write me >>> # 26.04 [+0.20] # 26.04 [+0.00] IPv6 nexthop tests # 26.13 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 26.22 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 26.31 [+0.09] TEST: Gateway is linklocal address [ OK ] # 26.40 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 26.49 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 26.58 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 26.65 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 26.74 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 26.85 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.94 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 27.03 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 27.11 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 27.19 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 27.28 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 28.16 [+0.88] # 28.16 [+0.00] FIB rule with suppress_prefixlength # 29.85 [+1.68] TEST: FIB rule suppress test [ OK ] # 31.34 [+1.49] # 31.34 [+0.00] Fib6 info length calculation in route notify test # 35.23 [+3.89] TEST: ipv6 route add notify [ OK ] # 36.78 [+1.55] # 36.78 [+0.00] Fib4 info length calculation in route notify test # 40.66 [+3.87] TEST: ipv4 route add notify [ OK ] # 44.95 [+4.29] # 44.95 [+0.00] IPv6 route add / append tests # 45.28 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 45.63 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 45.97 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 46.41 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 46.77 [+0.36] TEST: Add multipath route [ OK ] # 47.10 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 47.53 [+0.43] TEST: Route add with different metrics [ OK ] # 47.73 [+0.20] TEST: Route delete with metric [ OK ] # 47.73 [+0.00] # 47.73 [+0.00] IPv6 route replace tests # 48.17 [+0.44] TEST: Single path with single path [ OK ] # 48.60 [+0.43] TEST: Single path with multipath [ OK ] # 49.03 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 49.45 [+0.42] TEST: Invalid nexthop [ OK ] # 49.79 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 50.24 [+0.45] TEST: Multipath with multipath [ OK ] # 50.65 [+0.41] TEST: Multipath with single path [ OK ] # 51.08 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 51.50 [+0.42] TEST: Multipath with dev-only [ OK ] # 51.94 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 52.36 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 52.70 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 52.70 [+0.00] # 52.70 [+0.00] IPv6 route with dsfield tests # 52.87 [+0.17] TEST: Reject route with dsfield [ OK ] # 58.68 [+5.80] # 58.68 [+0.00] IPv4 route add / append tests # 59.01 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 59.36 [+0.34] TEST: Attempt to add duplicate route - dev only [ OK ] # 59.69 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 60.12 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 60.56 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 60.98 [+0.42] TEST: Append nexthop to existing route - dev only [ OK ] # 61.42 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 61.76 [+0.34] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.11 [+0.35] TEST: Append nexthop to existing reject route - dev only [ OK ] # 62.46 [+0.36] TEST: add multipath route [ OK ] # 62.80 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 63.23 [+0.43] TEST: Route add with different metrics [ OK ] # 63.40 [+0.17] TEST: Route delete with metric [ OK ] # 63.41 [+0.00] # 63.41 [+0.00] IPv4 route replace tests # 63.84 [+0.43] TEST: Single path with single path [ OK ] # 64.26 [+0.42] TEST: Single path with multipath [ OK ] # 64.71 [+0.45] TEST: Single path with reject route [ OK ] # 65.13 [+0.42] TEST: Single path with single path via multipath attribute [ OK ] # 65.57 [+0.44] TEST: Invalid nexthop [ OK ] # 65.90 [+0.33] TEST: Single path - replace of non-existent route [ OK ] # 66.33 [+0.43] TEST: Multipath with multipath [ OK ] # 66.76 [+0.43] TEST: Multipath with single path [ OK ] # 67.20 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 67.63 [+0.43] TEST: Multipath with reject route [ OK ] # 68.05 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 68.48 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 68.82 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 70.21 [+1.39] TEST: Cached route removed from VRF port device [ OK ] # 70.21 [+0.00] # 70.21 [+0.00] IPv4 route with dsfield tests # 70.38 [+0.17] TEST: Reject route with dsfield 0x01 [ OK ] # 70.46 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 70.55 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 70.81 [+0.26] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 70.89 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 70.96 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 71.03 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 71.11 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 71.18 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.25 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.33 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.42 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.49 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 71.58 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 71.66 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.39 [+1.73] # 73.39 [+0.00] IPv6 prefix route tests # 75.14 [+1.76] TEST: Default metric [ OK ] # 75.43 [+0.29] TEST: User specified metric on first device [ OK ] # 75.71 [+0.28] TEST: User specified metric on second device [ OK ] # 75.89 [+0.18] TEST: Delete of address on first device [ OK ] # 76.06 [+0.17] TEST: Modify metric of address [ OK ] # 76.35 [+0.29] TEST: Prefix route removed on link down [ OK ] # 76.53 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 76.78 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 76.87 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 77.06 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 77.14 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 78.07 [+0.93] # 78.07 [+0.00] IPv4 prefix route tests # 79.95 [+1.89] TEST: Default metric [ OK ] # 80.22 [+0.27] TEST: User specified metric on first device [ OK ] # 80.50 [+0.28] TEST: User specified metric on second device [ OK ] # 80.68 [+0.18] TEST: Delete of address on first device [ OK ] # 80.86 [+0.18] TEST: Modify metric of address [ OK ] # 81.03 [+0.17] TEST: Prefix route removed on link down [ OK ] # 81.21 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 81.59 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 81.85 [+0.26] TEST: Set metric of address with peer route [ OK ] # 82.03 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 82.96 [+0.93] # 82.96 [+0.00] IPv6 routes with metrics # 87.41 [+4.45] TEST: Single path route with mtu metric [ OK ] # 87.69 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 87.96 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 88.16 [+0.19] TEST: MTU of second leg [ OK ] # 88.35 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 88.58 [+0.23] TEST: Using route with mtu metric [ OK ] # 88.74 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 90.45 [+1.71] # 90.46 [+0.00] IPv4 route add / append tests # 94.84 [+4.38] TEST: Single path route with mtu metric [ OK ] # 95.02 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 95.25 [+0.23] TEST: Using route with mtu metric [ OK ] # 95.40 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.06 [+1.66] # 97.06 [+0.00] IPv4 route with IPv6 gateway tests # 103.41 [+6.36] TEST: Single path route with IPv6 gateway [ OK ] # 103.65 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 103.74 [+0.09] TEST: Single path route delete [ OK ] # 103.92 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 104.11 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 104.19 [+0.08] TEST: Multipath route delete exact match [ OK ] # 104.29 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 104.47 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 104.56 [+0.09] TEST: Multipath route delete exact match [ OK ] # 106.20 [+1.65] # 106.20 [+0.00] IPv4 rp_filter tests # 111.85 [+5.65] TEST: rp_filter passes local packets [ OK ] # 111.99 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 112.74 [+0.74] # 112.74 [+0.00] IPv4 delete address route tests # 115.47 [+2.73] Regular FIB info # 115.64 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 115.71 [+0.07] TEST: Route in default VRF not removed [ OK ] # 116.04 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 116.13 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 116.14 [+0.00] Identical FIB info with different table ID # 116.29 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 116.38 [+0.09] TEST: Route in default VRF not removed [ OK ] # 116.71 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 116.80 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 116.80 [+0.00] Table ID 0 # 116.96 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.89 [+0.93] # 117.89 [+0.00] IPv6 delete address route tests # 122.45 [+4.55] Single device using src address # 122.61 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 122.62 [+0.00] Two devices with the same source address # 122.77 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 122.95 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 122.95 [+0.00] VRF with single device using src address # 123.12 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 123.12 [+0.00] VRF with two devices using src address # 123.29 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 123.45 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 123.45 [+0.00] src address and nexthop dev in same VRF # 123.62 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 123.72 [+0.10] TEST: Prefsrc in default VRF not removed [ OK ] # 124.03 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 124.12 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 124.13 [+0.00] src address and nexthop device in different VRF # 124.30 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 124.37 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 124.62 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 124.70 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 124.70 [+0.00] Table ID 0 # 124.89 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 124.89 [+0.00] Link local source route # 125.04 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 125.22 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 125.30 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 125.55 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 127.07 [+1.52] # 127.07 [+0.00] IPv4 mangling tests # 134.37 [+7.31] TEST: Connection with correct parameters [ OK ] # 134.56 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 135.49 [+0.93] TEST: Connection with correct parameters - mangling [ OK ] # 136.32 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 136.39 [+0.07] TEST: Connection check - server side [ OK ] # 138.27 [+1.88] # 138.27 [+0.00] IPv6 mangling tests # 145.76 [+7.49] TEST: Connection with correct parameters [ OK ] # 145.98 [+0.22] TEST: Connection with incorrect parameters [ OK ] # 146.81 [+0.83] TEST: Connection with correct parameters - mangling [ OK ] # 147.69 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 147.75 [+0.06] TEST: Connection check - server side [ OK ] # 149.80 [+2.05] # 149.80 [+0.00] IPv4 broadcast neighbour tests # 152.19 [+2.39] TEST: Resolved neighbour for broadcast address [ OK ] # 152.29 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 152.37 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 152.46 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 154.26 [+1.80] # 154.26 [+0.00] Fib6 garbage collection test # 167.44 [+13.18] TEST: ipv6 route garbage collection [ OK ] # 180.84 [+13.40] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 194.24 [+13.40] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 207.78 [+13.54] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 222.03 [+14.26] TEST: ipv6 route garbage collection (RA message) [ OK ] # 222.74 [+0.71] # 222.74 [+0.00] IPv4 multipath list receive tests # 239.06 [+16.31] TEST: Multipath route hit ratio (1.00) [ OK ] # 240.88 [+1.82] # 240.88 [+0.00] IPv6 multipath list receive tests # 256.86 [+15.98] TEST: Multipath route hit ratio (1.00) [ OK ] # 258.65 [+1.78] # 258.65 [+0.00] Tests passed: 229 # 258.65 [+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__->