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.34 [+0.34] # 0.34 [+0.00] Single path route test # 1.07 [+0.73] Start point # 1.13 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.20 [+0.06] TEST: IPv6 fibmatch [ OK ] # 1.32 [+0.12] Nexthop device deleted # 1.38 [+0.06] TEST: IPv4 fibmatch - no route [ OK ] # 1.45 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.86 [+0.41] # 1.86 [+0.00] Multipath route test # 3.15 [+1.29] Start point # 3.21 [+0.06] TEST: IPv4 fibmatch [ OK ] # 3.29 [+0.08] TEST: IPv6 fibmatch [ OK ] # 3.39 [+0.10] One nexthop device deleted # 3.47 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.54 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.66 [+0.12] Second nexthop device deleted # 3.72 [+0.06] TEST: IPv6 - no route [ OK ] # 4.18 [+0.46] # 4.18 [+0.00] Single path, admin down # 5.15 [+0.97] Start point # 5.22 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.28 [+0.06] TEST: IPv6 fibmatch [ OK ] # 5.35 [+0.07] Route deleted on down # 5.42 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.49 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.84 [+0.35] # 5.84 [+0.00] Admin down multipath # 7.15 [+1.31] Verify start point # 7.22 [+0.08] TEST: IPv4 fibmatch [ OK ] # 7.29 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.37 [+0.08] One device down, one up # 7.43 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 7.49 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.57 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.63 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.73 [+0.10] TEST: IPv4 flags on down device [ OK ] # 7.81 [+0.07] TEST: IPv6 flags on down device [ OK ] # 7.90 [+0.09] TEST: IPv4 flags on up device [ OK ] # 7.99 [+0.09] TEST: IPv6 flags on up device [ OK ] # 8.12 [+0.13] Other device down and up # 8.19 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.25 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 8.32 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.39 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.45 [+0.06] TEST: IPv4 flags on down device [ OK ] # 8.51 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.58 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.66 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.74 [+0.08] Both devices down # 8.80 [+0.06] TEST: IPv4 fibmatch [ OK ] # 8.86 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.34 [+0.48] # 9.34 [+0.00] Local carrier tests - single path # 10.30 [+0.96] Start point # 10.36 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.43 [+0.06] TEST: IPv6 fibmatch [ OK ] # 10.49 [+0.06] TEST: IPv4 - no linkdown flag [ OK ] # 10.55 [+0.06] TEST: IPv6 - no linkdown flag [ OK ] # 11.66 [+1.11] Carrier off on nexthop # 11.73 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.80 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.86 [+0.05] TEST: IPv4 - linkdown flag set [ OK ] # 11.91 [+0.06] TEST: IPv6 - linkdown flag set [ OK ] # 12.05 [+0.14] Route to local address with carrier down # 12.12 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.18 [+0.06] TEST: IPv6 fibmatch [ OK ] # 12.23 [+0.05] TEST: IPv4 linkdown flag set [ OK ] # 12.29 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 12.65 [+0.36] # 12.65 [+0.00] Single path route carrier test # 13.62 [+0.96] Start point # 13.68 [+0.06] TEST: IPv4 fibmatch [ OK ] # 13.74 [+0.06] TEST: IPv6 fibmatch [ OK ] # 13.81 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 13.88 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 14.98 [+1.10] Carrier down # 15.05 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.14 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.21 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.27 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 15.40 [+0.13] Second address added with carrier down # 15.47 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.63 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 15.69 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 19.23 [+3.54] # 19.23 [+0.00] IPv4 nexthop tests # 19.23 [+0.00] <<< write me >>> # 19.41 [+0.18] # 19.41 [+0.00] IPv6 nexthop tests # 19.49 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 19.56 [+0.07] TEST: Directly connected nexthop, unicast address with device [ OK ] # 19.63 [+0.08] TEST: Gateway is linklocal address [ OK ] # 19.70 [+0.07] TEST: Gateway is linklocal address, no device [ OK ] # 19.78 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 19.85 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 19.93 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 19.99 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 20.08 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.16 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.23 [+0.07] TEST: Redirect to VRF lookup [ OK ] # 20.31 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.39 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 20.48 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.28 [+0.81] # 21.28 [+0.00] FIB rule with suppress_prefixlength # 22.68 [+1.40] TEST: FIB rule suppress test [ OK ] # 23.93 [+1.25] # 23.93 [+0.00] Fib6 info length calculation in route notify test # 27.51 [+3.58] TEST: ipv6 route add notify [ OK ] # 28.81 [+1.30] # 28.81 [+0.00] Fib4 info length calculation in route notify test # 32.33 [+3.53] TEST: ipv4 route add notify [ OK ] # 35.78 [+3.44] # 35.78 [+0.00] IPv6 route add / append tests # 36.07 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 36.36 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 36.65 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 37.02 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 37.30 [+0.29] TEST: Add multipath route [ OK ] # 37.59 [+0.28] TEST: Attempt to add duplicate multipath route [ OK ] # 37.94 [+0.35] TEST: Route add with different metrics [ OK ] # 38.11 [+0.16] TEST: Route delete with metric [ OK ] # 38.11 [+0.01] # 38.11 [+0.00] IPv6 route replace tests # 38.48 [+0.36] TEST: Single path with single path [ OK ] # 38.85 [+0.38] TEST: Single path with multipath [ OK ] # 39.20 [+0.35] TEST: Single path with single path via multipath attribute [ OK ] # 39.58 [+0.38] TEST: Invalid nexthop [ OK ] # 39.86 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 40.23 [+0.38] TEST: Multipath with multipath [ OK ] # 40.59 [+0.36] TEST: Multipath with single path [ OK ] # 40.97 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 41.32 [+0.35] TEST: Multipath with dev-only [ OK ] # 41.70 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 42.07 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 42.36 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 42.36 [+0.00] # 42.36 [+0.00] IPv6 route with dsfield tests # 42.51 [+0.15] TEST: Reject route with dsfield [ OK ] # 47.40 [+4.90] # 47.40 [+0.00] IPv4 route add / append tests # 47.68 [+0.28] TEST: Attempt to add duplicate route - gw [ OK ] # 47.98 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.25 [+0.28] TEST: Attempt to add duplicate route - reject route [ OK ] # 48.62 [+0.36] TEST: Add new nexthop for existing prefix [ OK ] # 48.99 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 49.37 [+0.38] TEST: Append nexthop to existing route - dev only [ OK ] # 49.72 [+0.35] TEST: Append nexthop to existing route - reject route [ OK ] # 50.03 [+0.31] TEST: Append nexthop to existing reject route - gw [ OK ] # 50.34 [+0.31] TEST: Append nexthop to existing reject route - dev only [ OK ] # 50.64 [+0.30] TEST: add multipath route [ OK ] # 50.95 [+0.31] TEST: Attempt to add duplicate multipath route [ OK ] # 51.33 [+0.38] TEST: Route add with different metrics [ OK ] # 51.49 [+0.16] TEST: Route delete with metric [ OK ] # 51.49 [+0.00] # 51.49 [+0.00] IPv4 route replace tests # 51.86 [+0.37] TEST: Single path with single path [ OK ] # 52.26 [+0.40] TEST: Single path with multipath [ OK ] # 52.65 [+0.39] TEST: Single path with reject route [ OK ] # 53.05 [+0.39] TEST: Single path with single path via multipath attribute [ OK ] # 53.41 [+0.37] TEST: Invalid nexthop [ OK ] # 53.73 [+0.31] TEST: Single path - replace of non-existent route [ OK ] # 54.09 [+0.37] TEST: Multipath with multipath [ OK ] # 54.47 [+0.38] TEST: Multipath with single path [ OK ] # 54.85 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 55.22 [+0.37] TEST: Multipath with reject route [ OK ] # 55.57 [+0.36] TEST: Multipath - invalid first nexthop [ OK ] # 55.92 [+0.34] TEST: Multipath - invalid second nexthop [ OK ] # 56.20 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 57.37 [+1.17] TEST: Cached route removed from VRF port device [ OK ] # 57.37 [+0.00] # 57.37 [+0.00] IPv4 route with dsfield tests # 57.52 [+0.14] TEST: Reject route with dsfield 0x01 [ OK ] # 57.59 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 57.66 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 57.87 [+0.21] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 57.96 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 58.02 [+0.06] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 58.08 [+0.06] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 58.14 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 58.21 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 58.27 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 58.34 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 58.40 [+0.06] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 58.47 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 58.54 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 58.61 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 60.05 [+1.44] # 60.05 [+0.00] IPv6 prefix route tests # 61.53 [+1.49] TEST: Default metric [ OK ] # 61.76 [+0.23] TEST: User specified metric on first device [ OK ] # 61.99 [+0.23] TEST: User specified metric on second device [ OK ] # 62.13 [+0.14] TEST: Delete of address on first device [ OK ] # 62.28 [+0.15] TEST: Modify metric of address [ OK ] # 62.55 [+0.27] TEST: Prefix route removed on link down [ OK ] # 62.73 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 62.96 [+0.23] TEST: Set metric with peer route on local side [ OK ] # 63.03 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 63.18 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 63.27 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 64.06 [+0.79] # 64.06 [+0.00] IPv4 prefix route tests # 65.54 [+1.48] TEST: Default metric [ OK ] # 65.75 [+0.21] TEST: User specified metric on first device [ OK ] # 65.99 [+0.24] TEST: User specified metric on second device [ OK ] # 66.13 [+0.14] TEST: Delete of address on first device [ OK ] # 66.28 [+0.15] TEST: Modify metric of address [ OK ] # 66.41 [+0.13] TEST: Prefix route removed on link down [ OK ] # 66.56 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 66.86 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 67.09 [+0.23] TEST: Set metric of address with peer route [ OK ] # 67.23 [+0.14] TEST: Modify metric and peer address for peer route [ OK ] # 68.04 [+0.81] # 68.04 [+0.00] IPv6 routes with metrics # 71.79 [+3.75] TEST: Single path route with mtu metric [ OK ] # 72.02 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 72.25 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 72.40 [+0.15] TEST: MTU of second leg [ OK ] # 72.56 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 72.76 [+0.20] TEST: Using route with mtu metric [ OK ] # 72.90 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 74.42 [+1.52] # 74.42 [+0.00] IPv4 route add / append tests # 78.30 [+3.89] TEST: Single path route with mtu metric [ OK ] # 78.46 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 78.66 [+0.20] TEST: Using route with mtu metric [ OK ] # 78.80 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 80.38 [+1.58] # 80.38 [+0.00] IPv4 route with IPv6 gateway tests # 86.31 [+5.93] TEST: Single path route with IPv6 gateway [ OK ] # 86.52 [+0.21] TEST: Single path route with IPv6 gateway - ping [ OK ] # 86.60 [+0.07] TEST: Single path route delete [ OK ] # 86.75 [+0.15] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 86.91 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 86.99 [+0.08] TEST: Multipath route delete exact match [ OK ] # 87.07 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 87.24 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.33 [+0.09] TEST: Multipath route delete exact match [ OK ] # 88.89 [+1.56] # 88.89 [+0.00] IPv4 rp_filter tests # 93.75 [+4.86] TEST: rp_filter passes local packets [ OK ] # 93.87 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 94.48 [+0.61] # 94.48 [+0.00] IPv4 delete address route tests # 96.71 [+2.24] Regular FIB info # 96.85 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 96.91 [+0.06] TEST: Route in default VRF not removed [ OK ] # 97.18 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.26 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 97.26 [+0.00] Identical FIB info with different table ID # 97.39 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 97.45 [+0.06] TEST: Route in default VRF not removed [ OK ] # 97.71 [+0.26] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.78 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 97.78 [+0.00] Table ID 0 # 97.91 [+0.12] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.69 [+0.78] # 98.69 [+0.00] IPv6 delete address route tests # 102.45 [+3.76] Single device using src address # 102.59 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 102.59 [+0.00] Two devices with the same source address # 102.73 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 102.88 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 102.88 [+0.00] VRF with single device using src address # 103.03 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.03 [+0.00] VRF with two devices using src address # 103.16 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.29 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.30 [+0.00] src address and nexthop dev in same VRF # 103.42 [+0.13] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 103.51 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 103.76 [+0.25] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 103.82 [+0.06] TEST: Prefsrc in default VRF removed [ OK ] # 103.82 [+0.00] src address and nexthop device in different VRF # 103.94 [+0.12] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 104.01 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 104.21 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 104.28 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 104.28 [+0.00] Table ID 0 # 104.40 [+0.12] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 104.40 [+0.00] Link local source route # 104.55 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 104.68 [+0.13] TEST: Prefsrc removed when delete ll addr [ OK ] # 104.74 [+0.06] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 104.92 [+0.19] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 106.14 [+1.21] # 106.14 [+0.00] IPv4 mangling tests # 112.69 [+6.55] TEST: Connection with correct parameters [ OK ] # 112.82 [+0.13] TEST: Connection with incorrect parameters [ OK ] # 113.68 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 114.49 [+0.81] TEST: Connection with correct parameters - no mangling [ OK ] # 114.55 [+0.06] TEST: Connection check - server side [ OK ] # 116.25 [+1.70] # 116.25 [+0.00] IPv6 mangling tests # 122.76 [+6.51] TEST: Connection with correct parameters [ OK ] # 122.91 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 123.71 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 124.52 [+0.81] TEST: Connection with correct parameters - no mangling [ OK ] # 124.57 [+0.05] TEST: Connection check - server side [ OK ] # 126.39 [+1.81] # 126.39 [+0.00] IPv4 broadcast neighbour tests # 128.39 [+2.00] TEST: Resolved neighbour for broadcast address [ OK ] # 128.46 [+0.07] TEST: Resolved neighbour for network broadcast address [ OK ] # 128.54 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 128.61 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 130.13 [+1.52] # 130.13 [+0.00] Fib6 garbage collection test # 143.12 [+12.99] TEST: ipv6 route garbage collection [ OK ] # 156.37 [+13.26] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 169.61 [+13.24] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 182.90 [+13.29] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 196.98 [+14.09] TEST: ipv6 route garbage collection (RA message) [ OK ] # 197.61 [+0.62] # 197.61 [+0.00] IPv4 multipath list receive tests # 209.78 [+12.17] TEST: Multipath route hit ratio (1.00) [ OK ] # 211.37 [+1.59] # 211.37 [+0.00] IPv6 multipath list receive tests # 223.01 [+11.64] TEST: Multipath route hit ratio (.99) [ OK ] # 224.53 [+1.52] # 224.53 [+0.00] Tests passed: 229 # 224.53 [+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__->