diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-05-16 14:31:16 +0200 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-05-16 15:34:57 +0200 |
commit | 05d47bd53e71480f1b276bd895f1c25088201e48 (patch) | |
tree | 6d9c8169ed695d17c90972ae6dd163c45a3d82b1 /nest/rt-table.c | |
parent | b880e3ffaea12c3231975157bc51b5f90a2f2433 (diff) |
Linpool: default allocation size
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index bed9036e..85a951b8 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1624,7 +1624,7 @@ rt_init(void) { rta_init(); rt_table_pool = rp_new(&root_pool, "Routing tables"); - rte_update_pool = lp_new(rt_table_pool, 4080); + rte_update_pool = lp_new_default(rt_table_pool); rte_slab = sl_new(rt_table_pool, sizeof(rte)); init_list(&routing_tables); } @@ -2304,7 +2304,7 @@ rt_init_hostcache(rtable *tab) hc_alloc_table(hc, HC_DEF_ORDER); hc->slab = sl_new(rt_table_pool, sizeof(struct hostentry)); - hc->lp = lp_new(rt_table_pool, 1008); + hc->lp = lp_new(rt_table_pool, LP_GOOD_SIZE(1024)); hc->trie = f_new_trie(hc->lp, sizeof(struct f_trie_node)); tab->hostcache = hc; |