Lines Matching refs:buckets
359 local buckets=$2
368 # create a resilient group with $buckets buckets and dump them
370 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
372 log_test $? 0 "Dump large (x$buckets) nexthop buckets"
946 # migration of nexthop buckets - equal weights
950 run_cmd "$IP nexthop add id 102 group 62/63 type resilient buckets 2 idle_timer 0"
954 "id 102 group 62 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
958 log_test $? 0 "Nexthop buckets updated when entry is deleted"
961 run_cmd "$IP nexthop replace id 102 group 62/63 type resilient buckets 2 idle_timer 0"
963 "id 102 group 62/63 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
967 log_test $? 0 "Nexthop buckets updated after replace"
972 # migration of nexthop buckets - unequal weights
976 run_cmd "$IP nexthop add id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
980 "id 102 group 62,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
984 log_test $? 0 "Nexthop buckets updated when entry is deleted - nECMP"
987 run_cmd "$IP nexthop replace id 102 group 62,3/63,1 type resilient buckets 4 idle_timer 0"
989 "id 102 group 62,3/63 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
993 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1165 echo "IPv6 large resilient group (128k buckets)"
1265 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
1492 # migration of nexthop buckets - equal weights
1496 run_cmd "$IP nexthop add id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1500 "id 102 group 12 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1504 log_test $? 0 "Nexthop buckets updated when entry is deleted"
1507 run_cmd "$IP nexthop replace id 102 group 12/13 type resilient buckets 2 idle_timer 0"
1509 "id 102 group 12/13 type resilient buckets 2 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1513 log_test $? 0 "Nexthop buckets updated after replace"
1518 # migration of nexthop buckets - unequal weights
1522 run_cmd "$IP nexthop add id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1526 "id 102 group 12,3 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1530 log_test $? 0 "Nexthop buckets updated when entry is deleted - nECMP"
1533 run_cmd "$IP nexthop replace id 102 group 12,3/13,1 type resilient buckets 4 idle_timer 0"
1535 "id 102 group 12,3/13 type resilient buckets 4 idle_timer 0 unbalanced_timer 0 unbalanced_time 0"
1539 log_test $? 0 "Nexthop buckets updated after replace - nECMP"
1770 echo "IPv4 large resilient group (128k buckets)"
2037 run_cmd "$IP nexthop add id 102 group 100/101 type resilient buckets 512 idle_timer 0"
2231 run_cmd "$IP nexthop add id 101 group 1 type resilient buckets 8"
2236 "id 101 group 1 type resilient buckets 8 idle_timer 120 unbalanced_timer 0 unbalanced_time 0"
2240 buckets 4 idle_timer 100 unbalanced_timer 5"
2243 "id 102 group 1 type resilient buckets 4 idle_timer 100 unbalanced_timer 5 unbalanced_time 0"
2246 run_cmd "$IP nexthop add id 103 group 1 type resilient buckets 0"
2247 log_test $? 2 "Add a nexthop group with 0 buckets"
2254 buckets 8 idle_timer 240 unbalanced_timer 80"
2257 "id 101 group 1 type resilient buckets 8 idle_timer 240 unbalanced_timer 80 unbalanced_time 0"
2263 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 80 unbalanced_time 0"
2269 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2275 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2284 run_cmd "$IP nexthop replace id 101 group 1 type resilient buckets 1024"
2285 log_test $? 2 "Replace number of nexthop buckets"
2288 "id 101 group 1 type resilient buckets 8 idle_timer 512 unbalanced_timer 256 unbalanced_time 0"
2292 # resilient nexthop buckets dump
2298 run_cmd "$IP nexthop add id 101 group 1/2 type resilient buckets 4"
2303 log_test $? 0 "Dump all nexthop buckets"
2307 log_test $? 0 "Dump all nexthop buckets in a group"
2313 log_test $? 0 "All nexthop buckets report a positive near-zero idle time"
2317 log_test $? 0 "Dump all nexthop buckets with a specific nexthop device"
2321 log_test $? 0 "Dump all nexthop buckets with a specific nexthop identifier"
2324 log_test $? 2 "Dump all nexthop buckets in a non-existent group"
2327 log_test $? 2 "Dump all nexthop buckets in a non-resilient group"
2330 log_test $? 255 "Dump all nexthop buckets using a non-existent device"
2333 log_test $? 255 "Dump all nexthop buckets with invalid 'groups' keyword"
2336 log_test $? 255 "Dump all nexthop buckets with invalid 'fdb' keyword"
2339 run_cmd "$IP nexthop add id $((2**32-1)) group 1/2 type resilient buckets 4"
2344 # resilient nexthop buckets get requests
2368 group 1/2 type resilient buckets 10
2383 # Check that increase in idle timer does not make buckets appear busy.