Lines Matching +full:6 +full:- +full:3
2 # SPDX-License-Identifier: GPL-2.0
20 simple_if_init $tor1_p1 2001:db8:1::2/128 2001:db8:1::3/128
25 simple_if_fini $tor1_p1 2001:db8:1::2/128 2001:db8:1::3/128
30 simple_if_init $tor2_p1 2001:db8:2::2/128 2001:db8:2::3/128
35 simple_if_fini $tor2_p1 2001:db8:2::2/128 2001:db8:2::3/128
65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l)
67 if [ $num -eq $expected_num ]; then
79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
80 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
86 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 1
88 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 200" 0
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10
94 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 10" 1
96 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 100" 0
98 ipv6_offload_check "2001:db8:3::/64 dev $spine_p1 metric 200" 0
103 ip -6 route flush 2001:db8:3::/64 dev $spine_p1
104 ip -6 route add 2001:db8:3::/64 dev $spine_p2
105 ipv6_offload_check "2001:db8:3::/64 dev $spine_p2" 1
109 ip -6 route flush 2001:db8:3::/64
117 ip -6 route add 2001:db8:3::/64 metric 100 \
120 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
124 ip -6 route append 2001:db8:3::/64 metric 100 \
125 nexthop via 2001:db8:1::3 dev $spine_p1
126 ipv6_offload_check "2001:db8:3::/64 metric 100" 3
131 ip -6 route del 2001:db8:3::/64
132 ip -6 route add 2001:db8:3::/64 metric 100 \
135 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
140 ip -6 route append 2001:db8:3::/64 metric 200 \
141 nexthop via 2001:db8:1::3 dev $spine_p1
142 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
144 ipv6_offload_check "2001:db8:3::/64 metric 200" 0
149 ip -6 route append 2001:db8:3::/64 metric 10 \
150 nexthop via 2001:db8:1::3 dev $spine_p1
151 ipv6_offload_check "2001:db8:3::/64 metric 10" 1
153 ipv6_offload_check "2001:db8:3::/64 metric 100" 0
155 ipv6_offload_check "2001:db8:3::/64 metric 200" 0
160 ip -6 route flush 2001:db8:3::/64
174 ip -6 route add 2001:db8:3::/64 metric 100 dev $spine_p1
175 ipv6_offload_check "2001:db8:3::/64 metric 100" 1
177 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p2
178 ipv6_offload_check "2001:db8:3::/64 metric 100" 1
182 ip -6 route replace 2001:db8:3::/64 metric 100 \
185 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
190 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p1
191 ipv6_offload_check "2001:db8:3::/64 metric 100 dev $spine_p1" 0
193 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
197 ip -6 route replace 2001:db8:3::/64 metric 100 \
198 nexthop via 2001:db8:1::3 dev $spine_p1 \
199 nexthop via 2001:db8:2::3 dev $spine_p2
200 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
203 # Replace a non-existing multipath route with a multipath route and
205 ip -6 route replace 2001:db8:3::/64 metric 200 \
206 nexthop via 2001:db8:1::3 dev $spine_p1 \
207 nexthop via 2001:db8:2::3 dev $spine_p2
208 ipv6_offload_check "2001:db8:3::/64 metric 100" 2
209 check_err $? "multipath route not offloaded after non-existing route was 'replaced'"
210 ipv6_offload_check "2001:db8:3::/64 metric 200" 0
211 check_err $? "multipath route offloaded after 'replacing' non-existing route"
215 ip -6 route flush 2001:db8:3::/64
225 ip -6 route add 2001:db8:3::/64 \
228 ip -6 route add 2001:db8:4::/64 \
231 ipv6_offload_check "2001:db8:3::/64" 2
235 ip -6 route del 2001:db8:3::/64
241 ip -6 route add 2001:db8:3::/64 \
244 ip -6 route del 2001:db8:4::/64 \
248 ipv6_offload_check "2001:db8:3::/64" 2
253 ip -6 route flush 2001:db8:3::/64
254 ip -6 route flush 2001:db8:4::/64
259 local batch_dir=$(mktemp -d)
278 ip -6 address add 2001:db8:1::10:$i/128 dev $tor1_p1
291 ip -batch $batch_dir/add.batch
292 count=$(ip -6 route show | grep offload | wc -l)
293 while [ $count -lt $total ]; do
295 count=$(ip -6 route show | grep offload | wc -l)
300 diff=$(echo "$end - $start" | bc -l)
301 test "$(echo "$diff > 60" | bc -l)" -eq 0
307 ip -batch $batch_dir/del.batch
309 ip -6 address del 2001:db8:1::10:$i/128 dev $tor1_p1
311 rm -rf $batch_dir