]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! fixup! rt-attr.c: make ea class usecount atomic
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Wed, 12 Mar 2025 16:07:42 +0000 (17:07 +0100)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Wed, 12 Mar 2025 16:07:42 +0000 (17:07 +0100)
nest/rt-attr.c

index c12037c908b094b9d1efd21abe76229b71190707..33ef22802e7a33395ac27259233021b284a349a0 100644 (file)
@@ -1886,7 +1886,7 @@ ea_storage_free(struct ea_storage *r)
       int count = atomic_fetch_sub_explicit(&rta_hash_table.count, 1, memory_order_relaxed);
 
       u64 order = atomic_load_explicit(&cur->order, memory_order_relaxed);
-      if (count < 1 << (order - 1) && order > 5)//28)
+      if (count < 1 << (order - 1) && order > 28)
         ev_send(rta_hash_table.ev_list, &rta_hash_table.rehash_event);
 
       /* Schedule actual free of the storage */
@@ -1990,7 +1990,7 @@ ea_rehash(void * u UNUSED)
 
   while (count > 1 << (next_order + 1))
     next_order++;
-  while (count < 1 << (next_order - 1) && next_order > 5)//28)
+  while (count < 1 << (next_order - 1) && next_order > 28)
     next_order--;
 
   //log("rehash");