make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fib_tests.sh TESTT_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: fib_tests.sh # 0.03 [+0.03] # 0.03 [+0.00] Single path route test # 0.11 [+0.08] Start point # 0.12 [+0.01] TEST: IPv4 fibmatch [ OK ] # 0.12 [+0.01] TEST: IPv6 fibmatch [ OK ] # 0.16 [+0.04] Nexthop device deleted # 0.17 [+0.01] TEST: IPv4 fibmatch - no route [ OK ] # 0.18 [+0.01] TEST: IPv6 fibmatch - no route [ OK ] # 0.23 [+0.05] # 0.23 [+0.00] Multipath route test # 0.37 [+0.14] Start point # 0.37 [+0.01] TEST: IPv4 fibmatch [ OK ] # 0.38 [+0.01] TEST: IPv6 fibmatch [ OK ] # 0.40 [+0.02] One nexthop device deleted # 0.41 [+0.01] TEST: IPv4 - multipath route removed on delete [ OK ] # 0.42 [+0.01] TEST: IPv6 - multipath down to single path [ OK ] # 0.46 [+0.04] Second nexthop device deleted # 0.47 [+0.01] TEST: IPv6 - no route [ OK ] # 0.52 [+0.05] # 0.52 [+0.00] Single path, admin down # 0.62 [+0.10] Start point # 0.62 [+0.01] TEST: IPv4 fibmatch [ OK ] # 0.63 [+0.01] TEST: IPv6 fibmatch [ OK ] # 0.64 [+0.01] Route deleted on down # 0.64 [+0.01] TEST: IPv4 fibmatch [ OK ] # 0.65 [+0.01] TEST: IPv6 fibmatch [ OK ] # 0.70 [+0.05] # 0.70 [+0.00] Admin down multipath # 0.84 [+0.14] Verify start point # 0.85 [+0.01] TEST: IPv4 fibmatch [ OK ] # 0.86 [+0.01] TEST: IPv6 fibmatch [ OK ] # 0.87 [+0.01] One device down, one up # 0.88 [+0.01] TEST: IPv4 fibmatch on down device [ OK ] # 0.88 [+0.01] TEST: IPv6 fibmatch on down device [ OK ] # 0.89 [+0.01] TEST: IPv4 fibmatch on up device [ OK ] # 0.90 [+0.01] TEST: IPv6 fibmatch on up device [ OK ] # 0.91 [+0.01] TEST: IPv4 flags on down device [ OK ] # 0.92 [+0.01] TEST: IPv6 flags on down device [ OK ] # 0.93 [+0.01] TEST: IPv4 flags on up device [ OK ] # 0.94 [+0.01] TEST: IPv6 flags on up device [ OK ] # 0.95 [+0.02] Other device down and up # 0.96 [+0.01] TEST: IPv4 fibmatch on down device [ OK ] # 0.97 [+0.01] TEST: IPv6 fibmatch on down device [ OK ] # 0.98 [+0.01] TEST: IPv4 fibmatch on up device [ OK ] # 0.98 [+0.01] TEST: IPv6 fibmatch on up device [ OK ] # 0.99 [+0.01] TEST: IPv4 flags on down device [ OK ] # 1.00 [+0.01] TEST: IPv6 flags on down device [ OK ] # 1.01 [+0.01] TEST: IPv4 flags on up device [ OK ] # 1.02 [+0.01] TEST: IPv6 flags on up device [ OK ] # 1.02 [+0.01] Both devices down # 1.03 [+0.01] TEST: IPv4 fibmatch [ OK ] # 1.04 [+0.01] TEST: IPv6 fibmatch [ OK ] # 1.10 [+0.06] # 1.10 [+0.00] Local carrier tests - single path # 1.20 [+0.11] Start point # 1.21 [+0.01] TEST: IPv4 fibmatch [ OK ] # 1.22 [+0.01] TEST: IPv6 fibmatch [ OK ] # 1.23 [+0.01] TEST: IPv4 - no linkdown flag [ OK ] # 1.23 [+0.01] TEST: IPv6 - no linkdown flag [ OK ] # 2.24 [+1.01] Carrier off on nexthop # 2.25 [+0.01] TEST: IPv4 fibmatch [ OK ] # 2.26 [+0.01] TEST: IPv6 fibmatch [ OK ] # 2.27 [+0.01] TEST: IPv4 - linkdown flag set [ OK ] # 2.28 [+0.01] TEST: IPv6 - linkdown flag set [ OK ] # 2.30 [+0.02] Route to local address with carrier down # 2.30 [+0.01] TEST: IPv4 fibmatch [ OK ] # 2.31 [+0.01] TEST: IPv6 fibmatch [ OK ] # 2.32 [+0.01] TEST: IPv4 linkdown flag set [ OK ] # 2.33 [+0.01] TEST: IPv6 linkdown flag set [ OK ] # 2.39 [+0.07] # 2.39 [+0.00] Single path route carrier test # 2.50 [+0.11] Start point # 2.51 [+0.01] TEST: IPv4 fibmatch [ OK ] # 2.52 [+0.01] TEST: IPv6 fibmatch [ OK ] # 2.53 [+0.01] TEST: IPv4 no linkdown flag [ OK ] # 2.53 [+0.01] TEST: IPv6 no linkdown flag [ OK ] # 3.55 [+1.01] Carrier down # 3.56 [+0.01] TEST: IPv4 fibmatch [ OK ] # 3.56 [+0.01] TEST: IPv6 fibmatch [ OK ] # 3.57 [+0.01] TEST: IPv4 linkdown flag set [ OK ] # 3.58 [+0.01] TEST: IPv6 linkdown flag set [ OK ] # 3.59 [+0.01] Second address added with carrier down # 3.60 [+0.01] TEST: IPv4 fibmatch [ OK ] # 3.61 [+0.01] TEST: IPv6 fibmatch [ OK ] # 3.62 [+0.01] TEST: IPv4 linkdown flag set [ OK ] # 3.62 [+0.01] TEST: IPv6 linkdown flag set [ OK ] # 4.95 [+1.33] # 4.95 [+0.00] IPv4 nexthop tests # 4.95 [+0.00] <<< write me >>> # 4.97 [+0.02] # 4.97 [+0.00] IPv6 nexthop tests # 4.98 [+0.01] TEST: Directly connected nexthop, unicast address [ OK ] # 4.99 [+0.01] TEST: Directly connected nexthop, unicast address with device [ OK ] # 5.00 [+0.01] TEST: Gateway is linklocal address [ OK ] # 5.01 [+0.01] TEST: Gateway is linklocal address, no device [ OK ] # 5.01 [+0.01] TEST: Gateway can not be local unicast address [ OK ] # 5.02 [+0.01] TEST: Gateway can not be local unicast address, with device [ OK ] # 5.03 [+0.01] TEST: Gateway can not be a local linklocal address [ OK ] # 5.04 [+0.01] TEST: Gateway can be local address in a VRF [ OK ] # 5.05 [+0.01] TEST: Gateway can be local address in a VRF, with device [ OK ] # 5.06 [+0.01] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 5.06 [+0.01] TEST: Redirect to VRF lookup [ OK ] # 5.07 [+0.01] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 5.08 [+0.01] TEST: VRF route, gateway can not be a local address [ OK ] # 5.09 [+0.01] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 5.24 [+0.15] # 5.24 [+0.00] FIB rule with suppress_prefixlength # 5.43 [+0.19] TEST: FIB rule suppress test [ OK ] # 5.60 [+0.17] # 5.60 [+0.00] Fib6 info length calculation in route notify test # 7.78 [+2.18] TEST: ipv6 route add notify [ OK ] # 7.97 [+0.19] # 7.97 [+0.00] Fib4 info length calculation in route notify test # 10.16 [+2.20] TEST: ipv4 route add notify [ OK ] # 10.60 [+0.44] # 10.61 [+0.00] IPv6 route add / append tests # 10.64 [+0.03] TEST: Attempt to add duplicate route - gw [ OK ] # 10.67 [+0.03] TEST: Attempt to add duplicate route - dev only [ OK ] # 10.71 [+0.03] TEST: Attempt to add duplicate route - reject route [ OK ] # 10.75 [+0.04] TEST: Append nexthop to existing route - gw [ OK ] # 10.78 [+0.04] TEST: Add multipath route [ OK ] # 10.82 [+0.04] TEST: Attempt to add duplicate multipath route [ OK ] # 10.86 [+0.04] TEST: Route add with different metrics [ OK ] # 10.88 [+0.02] TEST: Route delete with metric [ OK ] # 10.88 [+0.00] # 10.88 [+0.00] IPv6 route replace tests # 10.92 [+0.04] TEST: Single path with single path [ OK ] # 10.96 [+0.04] TEST: Single path with multipath [ OK ] # 11.01 [+0.04] TEST: Single path with single path via multipath attribute [ OK ] # 11.05 [+0.04] TEST: Invalid nexthop [ OK ] # 11.09 [+0.04] TEST: Single path - replace of non-existent route [ OK ] # 11.13 [+0.04] TEST: Multipath with multipath [ OK ] # 11.17 [+0.04] TEST: Multipath with single path [ OK ] # 11.22 [+0.04] TEST: Multipath with single path via multipath attribute [ OK ] # 11.26 [+0.04] TEST: Multipath with dev-only [ OK ] # 11.30 [+0.04] TEST: Multipath - invalid first nexthop [ OK ] # 11.34 [+0.04] TEST: Multipath - invalid second nexthop [ OK ] # 11.38 [+0.03] TEST: Multipath - replace of non-existent route [ OK ] # 11.38 [+0.00] # 11.38 [+0.00] IPv6 route with dsfield tests # 11.40 [+0.02] TEST: Reject route with dsfield [ OK ] # 12.06 [+0.66] # 12.06 [+0.00] IPv4 route add / append tests # 12.09 [+0.04] TEST: Attempt to add duplicate route - gw [ OK ] # 12.13 [+0.04] TEST: Attempt to add duplicate route - dev only [ OK ] # 12.17 [+0.04] TEST: Attempt to add duplicate route - reject route [ OK ] # 12.22 [+0.05] TEST: Add new nexthop for existing prefix [ OK ] # 12.27 [+0.05] TEST: Append nexthop to existing route - gw [ OK ] # 12.32 [+0.04] TEST: Append nexthop to existing route - dev only [ OK ] # 12.36 [+0.04] TEST: Append nexthop to existing route - reject route [ OK ] # 12.40 [+0.04] TEST: Append nexthop to existing reject route - gw [ OK ] # 12.43 [+0.03] TEST: Append nexthop to existing reject route - dev only [ OK ] # 12.47 [+0.04] TEST: add multipath route [ OK ] # 12.50 [+0.03] TEST: Attempt to add duplicate multipath route [ OK ] # 12.54 [+0.04] TEST: Route add with different metrics [ OK ] # 12.56 [+0.02] TEST: Route delete with metric [ OK ] # 12.56 [+0.00] # 12.56 [+0.00] IPv4 route replace tests # 12.61 [+0.04] TEST: Single path with single path [ OK ] # 12.65 [+0.04] TEST: Single path with multipath [ OK ] # 12.69 [+0.04] TEST: Single path with reject route [ OK ] # 12.74 [+0.05] TEST: Single path with single path via multipath attribute [ OK ] # 12.78 [+0.04] TEST: Invalid nexthop [ OK ] # 12.81 [+0.03] TEST: Single path - replace of non-existent route [ OK ] # 12.86 [+0.05] TEST: Multipath with multipath [ OK ] # 12.90 [+0.04] TEST: Multipath with single path [ OK ] # 12.95 [+0.04] TEST: Multipath with single path via multipath attribute [ OK ] # 12.99 [+0.04] TEST: Multipath with reject route [ OK ] # 13.03 [+0.04] TEST: Multipath - invalid first nexthop [ OK ] # 13.07 [+0.04] TEST: Multipath - invalid second nexthop [ OK ] # 13.11 [+0.04] TEST: Multipath - replace of non-existent route [ OK ] # 13.27 [+0.16] TEST: Cached route removed from VRF port device [ OK ] # 13.27 [+0.00] # 13.27 [+0.00] IPv4 route with dsfield tests # 13.29 [+0.02] TEST: Reject route with dsfield 0x01 [ OK ] # 13.30 [+0.01] TEST: Reject route with dsfield 0x02 [ OK ] # 13.31 [+0.01] TEST: Reject route with dsfield 0x03 [ OK ] # 13.34 [+0.03] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 13.35 [+0.01] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 13.35 [+0.01] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 13.36 [+0.01] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 13.37 [+0.01] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 13.38 [+0.01] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 13.39 [+0.01] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 13.40 [+0.01] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 13.41 [+0.01] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 13.42 [+0.01] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 13.43 [+0.01] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 13.43 [+0.01] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 13.67 [+0.23] # 13.67 [+0.00] IPv6 prefix route tests # 13.83 [+0.16] TEST: Default metric [ OK ] # 13.86 [+0.02] TEST: User specified metric on first device [ OK ] # 13.88 [+0.02] TEST: User specified metric on second device [ OK ] # 13.89 [+0.02] TEST: Delete of address on first device [ OK ] # 13.91 [+0.02] TEST: Modify metric of address [ OK ] # 13.94 [+0.03] TEST: Prefix route removed on link down [ OK ] # 13.95 [+0.02] TEST: Prefix route with metric on link up [ OK ] # 13.98 [+0.02] TEST: Set metric with peer route on local side [ OK ] # 13.98 [+0.01] TEST: Set metric with peer route on peer side [ OK ] # 14.00 [+0.02] TEST: Modify metric and peer address on local side [ OK ] # 14.01 [+0.01] TEST: Modify metric and peer address on peer side [ OK ] # 14.12 [+0.11] # 14.12 [+0.00] IPv4 prefix route tests # 14.28 [+0.16] TEST: Default metric [ OK ] # 14.31 [+0.03] TEST: User specified metric on first device [ OK ] # 14.33 [+0.03] TEST: User specified metric on second device [ OK ] # 14.35 [+0.02] TEST: Delete of address on first device [ OK ] # 14.37 [+0.02] TEST: Modify metric of address [ OK ] # 14.38 [+0.02] TEST: Prefix route removed on link down [ OK ] # 14.40 [+0.02] TEST: Prefix route with metric on link up [ OK ] # 14.44 [+0.04] TEST: Modify metric of .0/24 address [ OK ] # 14.47 [+0.03] TEST: Set metric of address with peer route [ OK ] # 14.48 [+0.02] TEST: Modify metric and peer address for peer route [ OK ] # 14.64 [+0.16] # 14.64 [+0.00] IPv6 routes with metrics # 15.10 [+0.45] TEST: Single path route with mtu metric [ OK ] # 15.12 [+0.03] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 15.15 [+0.03] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 15.17 [+0.02] TEST: MTU of second leg [ OK ] # 15.19 [+0.02] TEST: Multipath route with mtu metric [ OK ] # 15.22 [+0.03] TEST: Using route with mtu metric [ OK ] # 15.23 [+0.02] TEST: Invalid metric (fails metric_convert) [ OK ] # 15.47 [+0.23] # 15.47 [+0.00] IPv4 route add / append tests # 15.91 [+0.44] TEST: Single path route with mtu metric [ OK ] # 15.93 [+0.02] TEST: Multipath route with mtu metric [ OK ] # 15.95 [+0.02] TEST: Using route with mtu metric [ OK ] # 15.97 [+0.02] TEST: Invalid metric (fails metric_convert) [ OK ] # 16.16 [+0.20] # 16.16 [+0.00] IPv4 route with IPv6 gateway tests # 18.60 [+2.44] TEST: Single path route with IPv6 gateway [ OK ] # 18.63 [+0.03] TEST: Single path route with IPv6 gateway - ping [ OK ] # 18.64 [+0.01] TEST: Single path route delete [ OK ] # 18.66 [+0.02] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 18.68 [+0.02] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 18.69 [+0.01] TEST: Multipath route delete exact match [ OK ] # 18.70 [+0.01] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 18.72 [+0.02] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 18.73 [+0.01] TEST: Multipath route delete exact match [ OK ] # 18.96 [+0.22] # 18.96 [+0.00] IPv4 rp_filter tests # 19.54 [+0.58] TEST: rp_filter passes local packets [ OK ] # 19.56 [+0.02] TEST: rp_filter passes loopback packets [ OK ] # 19.67 [+0.11] # 19.67 [+0.00] IPv4 delete address route tests # 19.92 [+0.25] Regular FIB info # 19.94 [+0.01] TEST: Route removed from VRF when source address deleted [ OK ] # 19.94 [+0.01] TEST: Route in default VRF not removed [ OK ] # 19.98 [+0.03] TEST: Route removed in default VRF when source address deleted [ OK ] # 19.98 [+0.01] TEST: Route in VRF is not removed by address delete [ OK ] # 19.99 [+0.00] Identical FIB info with different table ID # 20.00 [+0.01] TEST: Route removed from VRF when source address deleted [ OK ] # 20.01 [+0.01] TEST: Route in default VRF not removed [ OK ] # 20.04 [+0.03] TEST: Route removed in default VRF when source address deleted [ OK ] # 20.05 [+0.01] TEST: Route in VRF is not removed by address delete [ OK ] # 20.05 [+0.00] Table ID 0 # 20.06 [+0.01] TEST: Route removed in default VRF when source address deleted [ OK ] # 20.25 [+0.19] # 20.25 [+0.00] IPv6 delete address route tests # 20.68 [+0.43] Single device using src address # 20.70 [+0.02] TEST: Prefsrc removed when src address removed on other device [ OK ] # 20.70 [+0.00] Two devices with the same source address # 20.72 [+0.02] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 20.74 [+0.02] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 20.74 [+0.00] VRF with single device using src address # 20.76 [+0.02] TEST: Prefsrc removed when src address removed on other device [ OK ] # 20.76 [+0.00] VRF with two devices using src address # 20.77 [+0.02] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 20.79 [+0.02] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 20.79 [+0.00] src address and nexthop dev in same VRF # 20.81 [+0.02] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 20.82 [+0.01] TEST: Prefsrc in default VRF not removed [ OK ] # 20.85 [+0.03] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 20.86 [+0.01] TEST: Prefsrc in default VRF removed [ OK ] # 20.86 [+0.00] src address and nexthop device in different VRF # 20.88 [+0.02] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 20.88 [+0.01] TEST: Prefsrc not removed in default VRF [ OK ] # 20.91 [+0.02] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 20.92 [+0.01] TEST: Prefsrc removed in default VRF [ OK ] # 20.92 [+0.00] Table ID 0 # 20.93 [+0.02] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 20.94 [+0.00] Link local source route # 20.95 [+0.02] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 20.97 [+0.02] TEST: Prefsrc removed when delete ll addr [ OK ] # 20.98 [+0.01] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 21.00 [+0.02] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 21.37 [+0.37] # 21.37 [+0.00] IPv4 mangling tests # 24.39 [+3.02] TEST: Connection with correct parameters [ OK ] # 24.41 [+0.02] TEST: Connection with incorrect parameters [ OK ] # 24.96 [+0.55] TEST: Connection with correct parameters - mangling [ OK ] # 25.51 [+0.55] TEST: Connection with correct parameters - no mangling [ OK ] # 25.52 [+0.01] TEST: Connection check - server side [ OK ] # 25.73 [+0.21] # 25.73 [+0.00] IPv6 mangling tests # 28.74 [+3.01] TEST: Connection with correct parameters [ OK ] # 28.77 [+0.02] TEST: Connection with incorrect parameters [ OK ] # 29.31 [+0.54] TEST: Connection with correct parameters - mangling [ OK ] # 29.87 [+0.56] TEST: Connection with correct parameters - no mangling [ OK ] # 29.88 [+0.01] TEST: Connection check - server side [ OK ] # 30.12 [+0.25] # 30.12 [+0.00] IPv4 broadcast neighbour tests # 30.36 [+0.24] TEST: Resolved neighbour for broadcast address [ OK ] # 30.37 [+0.01] TEST: Resolved neighbour for network broadcast address [ OK ] # 30.38 [+0.01] TEST: Unresolved neighbour for broadcast address [ OK ] # 30.39 [+0.01] TEST: Unresolved neighbour for network broadcast address [ OK ] # 30.59 [+0.20] # 30.59 [+0.00] Fib6 garbage collection test # 42.70 [+12.12] TEST: ipv6 route garbage collection [ OK ] # 54.85 [+12.15] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 67.01 [+12.16] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 79.18 [+12.18] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 92.39 [+13.21] TEST: ipv6 route garbage collection (RA message) [ OK ] # 92.49 [+0.11] # 92.50 [+0.00] IPv4 multipath list receive tests # 93.49 [+0.99] TEST: Multipath route hit ratio (.99) [ OK ] # 93.70 [+0.22] # 93.70 [+0.00] IPv6 multipath list receive tests # 94.62 [+0.91] TEST: Multipath route hit ratio (1.00) [ OK ] # 94.85 [+0.24] # 94.85 [+0.00] IPv4 multipath load balance test # 96.41 [+1.56] TEST: IPv4 multipath loadbalance [ OK ] # 96.64 [+0.23] # 96.64 [+0.00] IPv6 multipath load balance test # 100.35 [+3.71] TEST: IPv6 multipath loadbalance [ OK ] # 100.63 [+0.28] # 100.63 [+0.00] Tests passed: 231 # 100.63 [+0.00] Tests failed: 0 ok 1 selftests: net: fib_tests.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->