Lines Matching +full:non +full:- +full:identical

2 # SPDX-License-Identifier: GPL-2.0
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
83 # Append an identical prefix route with an higher metric and check that
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
91 # Prepend an identical prefix route with lower metric and check that
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10
103 ip -6 route flush 2001:db8:3::/64 dev $spine_p1
104 ip -6 route add 2001:db8:3::/64 dev $spine_p2
109 ip -6 route flush 2001:db8:3::/64
117 ip -6 route add 2001:db8:3::/64 metric 100 \
124 ip -6 route append 2001:db8:3::/64 metric 100 \
131 ip -6 route del 2001:db8:3::/64
132 ip -6 route add 2001:db8:3::/64 metric 100 \
140 ip -6 route append 2001:db8:3::/64 metric 200 \
149 ip -6 route append 2001:db8:3::/64 metric 10 \
160 ip -6 route flush 2001:db8:3::/64
174 ip -6 route add 2001:db8:3::/64 metric 100 dev $spine_p1
177 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p2
182 ip -6 route replace 2001:db8:3::/64 metric 100 \
190 ip -6 route replace 2001:db8:3::/64 metric 100 dev $spine_p1
197 ip -6 route replace 2001:db8:3::/64 metric 100 \
203 # Replace a non-existing multipath route with a multipath route and
205 ip -6 route replace 2001:db8:3::/64 metric 200 \
209 check_err $? "multipath route not offloaded after non-existing route was 'replaced'"
211 check_err $? "multipath route offloaded after 'replacing' non-existing route"
215 ip -6 route flush 2001:db8:3::/64
222 # The driver consolidates identical nexthop groups in order to reduce
225 ip -6 route add 2001:db8:3::/64 \
228 ip -6 route add 2001:db8:4::/64 \
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 \
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