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.62 [+0.62] # 0.62 [+0.00] Single path route test # 1.81 [+1.19] Start point # 1.92 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.03 [+0.11] TEST: IPv6 fibmatch [ OK ] # 2.18 [+0.16] Nexthop device deleted # 2.28 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.40 [+0.11] TEST: IPv6 fibmatch - no route [ OK ] # 3.09 [+0.69] # 3.09 [+0.00] Multipath route test # 5.24 [+2.15] Start point # 5.34 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.46 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.61 [+0.15] One nexthop device deleted # 5.72 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.83 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 5.98 [+0.14] Second nexthop device deleted # 6.08 [+0.11] TEST: IPv6 - no route [ OK ] # 6.79 [+0.70] # 6.79 [+0.00] Single path, admin down # 8.29 [+1.50] Start point # 8.39 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.50 [+0.12] TEST: IPv6 fibmatch [ OK ] # 8.63 [+0.13] Route deleted on down # 8.74 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.85 [+0.10] TEST: IPv6 fibmatch [ OK ] # 9.39 [+0.55] # 9.39 [+0.00] Admin down multipath # 11.56 [+2.17] Verify start point # 11.66 [+0.10] TEST: IPv4 fibmatch [ OK ] # 11.77 [+0.11] TEST: IPv6 fibmatch [ OK ] # 11.88 [+0.10] One device down, one up # 12.00 [+0.12] TEST: IPv4 fibmatch on down device [ OK ] # 12.10 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.21 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.31 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.46 [+0.15] TEST: IPv4 flags on down device [ OK ] # 12.60 [+0.13] TEST: IPv6 flags on down device [ OK ] # 12.73 [+0.14] TEST: IPv4 flags on up device [ OK ] # 12.87 [+0.14] TEST: IPv6 flags on up device [ OK ] # 13.09 [+0.22] Other device down and up # 13.19 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 13.32 [+0.13] TEST: IPv6 fibmatch on down device [ OK ] # 13.43 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 13.54 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 13.68 [+0.15] TEST: IPv4 flags on down device [ OK ] # 13.81 [+0.13] TEST: IPv6 flags on down device [ OK ] # 13.94 [+0.13] TEST: IPv4 flags on up device [ OK ] # 14.08 [+0.14] TEST: IPv6 flags on up device [ OK ] # 14.20 [+0.12] Both devices down # 14.30 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.42 [+0.12] TEST: IPv6 fibmatch [ OK ] # 15.11 [+0.69] # 15.11 [+0.00] Local carrier tests - single path # 16.77 [+1.66] Start point # 16.88 [+0.11] TEST: IPv4 fibmatch [ OK ] # 16.99 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.12 [+0.13] TEST: IPv4 - no linkdown flag [ OK ] # 17.25 [+0.13] TEST: IPv6 - no linkdown flag [ OK ] # 18.44 [+1.19] Carrier off on nexthop # 18.55 [+0.12] TEST: IPv4 fibmatch [ OK ] # 18.67 [+0.12] TEST: IPv6 fibmatch [ OK ] # 18.78 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 18.90 [+0.12] TEST: IPv6 - linkdown flag set [ OK ] # 19.13 [+0.22] Route to local address with carrier down # 19.23 [+0.10] TEST: IPv4 fibmatch [ OK ] # 19.34 [+0.11] TEST: IPv6 fibmatch [ OK ] # 19.47 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 19.58 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 20.15 [+0.57] # 20.15 [+0.00] Single path route carrier test # 21.74 [+1.60] Start point # 21.84 [+0.10] TEST: IPv4 fibmatch [ OK ] # 21.97 [+0.12] TEST: IPv6 fibmatch [ OK ] # 22.11 [+0.15] TEST: IPv4 no linkdown flag [ OK ] # 22.25 [+0.14] TEST: IPv6 no linkdown flag [ OK ] # 23.44 [+1.19] Carrier down # 23.56 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.66 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.81 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 23.94 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 24.16 [+0.22] Second address added with carrier down # 24.28 [+0.12] TEST: IPv4 fibmatch [ OK ] # 24.40 [+0.12] TEST: IPv6 fibmatch [ OK ] # 24.50 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 24.62 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 29.88 [+5.26] # 29.88 [+0.00] IPv4 nexthop tests # 29.88 [+0.00] <<< write me >>> # 30.19 [+0.31] # 30.19 [+0.00] IPv6 nexthop tests # 30.32 [+0.13] TEST: Directly connected nexthop, unicast address [ OK ] # 30.44 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 30.58 [+0.14] TEST: Gateway is linklocal address [ OK ] # 30.70 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 30.83 [+0.13] TEST: Gateway can not be local unicast address [ OK ] # 30.96 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 31.09 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 31.21 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 31.34 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 31.47 [+0.13] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.59 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 31.72 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.83 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 31.96 [+0.13] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 33.18 [+1.22] # 33.18 [+0.00] FIB rule with suppress_prefixlength # 35.52 [+2.34] TEST: FIB rule suppress test [ OK ] # 37.61 [+2.08] # 37.61 [+0.00] Fib6 info length calculation in route notify test # 42.30 [+4.69] TEST: ipv6 route add notify [ OK ] # 44.45 [+2.16] # 44.45 [+0.00] Fib4 info length calculation in route notify test # 49.32 [+4.86] TEST: ipv4 route add notify [ OK ] # 55.23 [+5.92] # 55.23 [+0.00] IPv6 route add / append tests # 55.71 [+0.48] TEST: Attempt to add duplicate route - gw [ OK ] # 56.19 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 56.67 [+0.49] TEST: Attempt to add duplicate route - reject route [ OK ] # 57.32 [+0.65] TEST: Append nexthop to existing route - gw [ OK ] # 57.84 [+0.52] TEST: Add multipath route [ OK ] # 58.31 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 58.90 [+0.59] TEST: Route add with different metrics [ OK ] # 59.15 [+0.26] TEST: Route delete with metric [ OK ] # 59.16 [+0.00] # 59.16 [+0.00] IPv6 route replace tests # 59.74 [+0.58] TEST: Single path with single path [ OK ] # 60.35 [+0.61] TEST: Single path with multipath [ OK ] # 60.97 [+0.62] TEST: Single path with single path via multipath attribute [ OK ] # 61.62 [+0.65] TEST: Invalid nexthop [ OK ] # 62.10 [+0.48] TEST: Single path - replace of non-existent route [ OK ] # 62.73 [+0.63] TEST: Multipath with multipath [ OK ] # 63.33 [+0.60] TEST: Multipath with single path [ OK ] # 63.92 [+0.59] TEST: Multipath with single path via multipath attribute [ OK ] # 64.53 [+0.62] TEST: Multipath with dev-only [ OK ] # 65.17 [+0.64] TEST: Multipath - invalid first nexthop [ OK ] # 65.77 [+0.60] TEST: Multipath - invalid second nexthop [ OK ] # 66.26 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 66.26 [+0.00] # 66.26 [+0.00] IPv6 route with dsfield tests # 66.50 [+0.24] TEST: Reject route with dsfield [ OK ] # 74.54 [+8.04] # 74.54 [+0.00] IPv4 route add / append tests # 75.03 [+0.49] TEST: Attempt to add duplicate route - gw [ OK ] # 75.49 [+0.46] TEST: Attempt to add duplicate route - dev only [ OK ] # 75.97 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 76.56 [+0.60] TEST: Add new nexthop for existing prefix [ OK ] # 77.15 [+0.59] TEST: Append nexthop to existing route - gw [ OK ] # 77.73 [+0.58] TEST: Append nexthop to existing route - dev only [ OK ] # 78.31 [+0.58] TEST: Append nexthop to existing route - reject route [ OK ] # 78.79 [+0.48] TEST: Append nexthop to existing reject route - gw [ OK ] # 79.28 [+0.49] TEST: Append nexthop to existing reject route - dev only [ OK ] # 79.78 [+0.49] TEST: add multipath route [ OK ] # 80.26 [+0.49] TEST: Attempt to add duplicate multipath route [ OK ] # 80.84 [+0.58] TEST: Route add with different metrics [ OK ] # 81.10 [+0.25] TEST: Route delete with metric [ OK ] # 81.10 [+0.00] # 81.10 [+0.00] IPv4 route replace tests # 81.70 [+0.60] TEST: Single path with single path [ OK ] # 82.29 [+0.59] TEST: Single path with multipath [ OK ] # 82.89 [+0.60] TEST: Single path with reject route [ OK ] # 83.51 [+0.62] TEST: Single path with single path via multipath attribute [ OK ] # 84.10 [+0.59] TEST: Invalid nexthop [ OK ] # 84.58 [+0.48] TEST: Single path - replace of non-existent route [ OK ] # 85.18 [+0.61] TEST: Multipath with multipath [ OK ] # 85.79 [+0.61] TEST: Multipath with single path [ OK ] # 86.36 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 86.97 [+0.61] TEST: Multipath with reject route [ OK ] # 87.56 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 88.15 [+0.59] TEST: Multipath - invalid second nexthop [ OK ] # 88.62 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 90.49 [+1.87] TEST: Cached route removed from VRF port device [ OK ] # 90.49 [+0.00] # 90.49 [+0.00] IPv4 route with dsfield tests # 90.74 [+0.25] TEST: Reject route with dsfield 0x01 [ OK ] # 90.87 [+0.13] TEST: Reject route with dsfield 0x02 [ OK ] # 90.99 [+0.12] TEST: Reject route with dsfield 0x03 [ OK ] # 91.35 [+0.37] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 91.47 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 91.56 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 91.69 [+0.13] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 91.82 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 91.96 [+0.15] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 92.08 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 92.19 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 92.31 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 92.43 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 92.55 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 92.66 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 94.80 [+2.13] # 94.80 [+0.00] IPv6 prefix route tests # 97.26 [+2.46] TEST: Default metric [ OK ] # 97.64 [+0.38] TEST: User specified metric on first device [ OK ] # 98.02 [+0.38] TEST: User specified metric on second device [ OK ] # 98.26 [+0.24] TEST: Delete of address on first device [ OK ] # 98.51 [+0.25] TEST: Modify metric of address [ OK ] # 98.92 [+0.40] TEST: Prefix route removed on link down [ OK ] # 99.18 [+0.26] TEST: Prefix route with metric on link up [ OK ] # 99.56 [+0.38] TEST: Set metric with peer route on local side [ OK ] # 99.70 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 99.96 [+0.26] TEST: Modify metric and peer address on local side [ OK ] # 100.10 [+0.13] TEST: Modify metric and peer address on peer side [ OK ] # 101.29 [+1.20] # 101.29 [+0.00] IPv4 prefix route tests # 103.83 [+2.54] TEST: Default metric [ OK ] # 104.20 [+0.37] TEST: User specified metric on first device [ OK ] # 104.57 [+0.38] TEST: User specified metric on second device [ OK ] # 104.82 [+0.25] TEST: Delete of address on first device [ OK ] # 105.07 [+0.25] TEST: Modify metric of address [ OK ] # 105.30 [+0.23] TEST: Prefix route removed on link down [ OK ] # 105.55 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 106.05 [+0.50] TEST: Modify metric of .0/24 address [ OK ] # 106.41 [+0.36] TEST: Set metric of address with peer route [ OK ] # 106.66 [+0.25] TEST: Modify metric and peer address for peer route [ OK ] # 107.93 [+1.27] # 107.93 [+0.00] IPv6 routes with metrics # 114.02 [+6.08] TEST: Single path route with mtu metric [ OK ] # 114.39 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 114.79 [+0.40] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 115.05 [+0.25] TEST: MTU of second leg [ OK ] # 115.30 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 115.60 [+0.30] TEST: Using route with mtu metric [ OK ] # 115.81 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 117.93 [+2.12] # 117.93 [+0.00] IPv4 route add / append tests # 123.91 [+5.98] TEST: Single path route with mtu metric [ OK ] # 124.15 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 124.44 [+0.29] TEST: Using route with mtu metric [ OK ] # 124.66 [+0.22] TEST: Invalid metric (fails metric_convert) [ OK ] # 126.66 [+2.00] # 126.66 [+0.00] IPv4 route with IPv6 gateway tests # 134.59 [+7.93] TEST: Single path route with IPv6 gateway [ OK ] # 134.90 [+0.31] TEST: Single path route with IPv6 gateway - ping [ OK ] # 135.01 [+0.11] TEST: Single path route delete [ OK ] # 135.25 [+0.24] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 135.49 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 135.61 [+0.12] TEST: Multipath route delete exact match [ OK ] # 135.73 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 135.97 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 136.09 [+0.12] TEST: Multipath route delete exact match [ OK ] # 138.26 [+2.17] # 138.26 [+0.00] IPv4 rp_filter tests # 146.18 [+7.91] TEST: rp_filter passes local packets [ OK ] # 146.36 [+0.18] TEST: rp_filter passes loopback packets [ OK ] # 147.31 [+0.95] # 147.31 [+0.00] IPv4 delete address route tests # 150.90 [+3.59] Regular FIB info # 151.14 [+0.24] TEST: Route removed from VRF when source address deleted [ OK ] # 151.25 [+0.11] TEST: Route in default VRF not removed [ OK ] # 151.68 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 151.81 [+0.13] TEST: Route in VRF is not removed by address delete [ OK ] # 151.81 [+0.00] Identical FIB info with different table ID # 152.01 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 152.11 [+0.10] TEST: Route in default VRF not removed [ OK ] # 152.53 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 152.64 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 152.65 [+0.00] Table ID 0 # 152.88 [+0.23] TEST: Route removed in default VRF when source address deleted [ OK ] # 154.04 [+1.17] # 154.04 [+0.00] IPv6 delete address route tests # 160.07 [+6.03] Single device using src address # 160.29 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 160.29 [+0.00] Two devices with the same source address # 160.51 [+0.22] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 160.73 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 160.73 [+0.00] VRF with single device using src address # 160.93 [+0.20] TEST: Prefsrc removed when src address removed on other device [ OK ] # 160.94 [+0.00] VRF with two devices using src address # 161.16 [+0.22] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 161.39 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 161.39 [+0.00] src address and nexthop dev in same VRF # 161.60 [+0.21] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 161.71 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 162.15 [+0.44] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 162.26 [+0.11] TEST: Prefsrc in default VRF removed [ OK ] # 162.26 [+0.00] src address and nexthop device in different VRF # 162.48 [+0.22] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 162.62 [+0.13] TEST: Prefsrc not removed in default VRF [ OK ] # 162.92 [+0.30] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 163.03 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 163.03 [+0.00] Table ID 0 # 163.25 [+0.21] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 163.25 [+0.00] Link local source route # 163.48 [+0.23] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 163.70 [+0.22] TEST: Prefsrc removed when delete ll addr [ OK ] # 163.80 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 164.13 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 166.09 [+1.96] # 166.09 [+0.00] IPv4 mangling tests # 175.31 [+9.22] TEST: Connection with correct parameters [ OK ] # 175.56 [+0.24] TEST: Connection with incorrect parameters [ OK ] # 176.61 [+1.06] TEST: Connection with correct parameters - mangling [ OK ] # 177.56 [+0.95] TEST: Connection with correct parameters - no mangling [ OK ] # 177.65 [+0.09] TEST: Connection check - server side [ OK ] # 180.20 [+2.55] # 180.20 [+0.00] IPv6 mangling tests # 189.37 [+9.17] TEST: Connection with correct parameters [ OK ] # 189.65 [+0.27] TEST: Connection with incorrect parameters [ OK ] # 190.61 [+0.96] TEST: Connection with correct parameters - mangling [ OK ] # 191.59 [+0.98] TEST: Connection with correct parameters - no mangling [ OK ] # 191.67 [+0.08] TEST: Connection check - server side [ OK ] # 194.24 [+2.56] # 194.24 [+0.00] IPv4 broadcast neighbour tests # 197.27 [+3.03] TEST: Resolved neighbour for broadcast address [ OK ] # 197.39 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 197.51 [+0.13] TEST: Unresolved neighbour for broadcast address [ OK ] # 197.63 [+0.12] TEST: Unresolved neighbour for network broadcast address [ OK ] # 200.12 [+2.49] # 200.12 [+0.00] Fib6 garbage collection test # 213.79 [+13.67] TEST: ipv6 route garbage collection [ OK ] # 227.69 [+13.90] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 242.10 [+14.42] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 262.44 [+20.34] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 277.18 [+14.73] TEST: ipv6 route garbage collection (RA message) [ OK ] # 278.14 [+0.96] # 278.14 [+0.00] IPv4 multipath list receive tests # 288.41 [+10.27] Runtime error (func=(main), adr=9): Divide by zero # 288.52 [+0.10] (standard_in) 1: syntax error # 288.53 [+0.02] TEST: Multipath route hit ratio () [FAIL] # 290.94 [+2.41] # 290.94 [+0.00] IPv6 multipath list receive tests # 300.68 [+9.74] Runtime error (func=(main), adr=9): Divide by zero # 300.78 [+0.10] (standard_in) 1: syntax error # 300.80 [+0.01] TEST: Multipath route hit ratio () [FAIL] # 303.03 [+2.24] # 303.03 [+0.00] Tests passed: 227 # 303.04 [+0.00] Tests failed: 2 not ok 1 selftests: net: fib_tests.sh # exit=1 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__->