mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Hash table structure redesigned.
This commit is contained in:
@@ -14,18 +14,11 @@ struct top_hash_entry { /* Index for fast mapping (type,rtrid,LSid)->vertex */
|
|||||||
struct top_vertex *vertex;
|
struct top_vertex *vertex;
|
||||||
u32 lsa_id, rtr_id;
|
u32 lsa_id, rtr_id;
|
||||||
u8 lsa_type;
|
u8 lsa_type;
|
||||||
u16 pad1;
|
|
||||||
u8 pad2;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct top_vertex { /* LSA without type,rtid and lsid */
|
|
||||||
u16 lsage;
|
|
||||||
u8 options;
|
u8 options;
|
||||||
|
u16 lsage;
|
||||||
u32 lsseqno;
|
u32 lsseqno;
|
||||||
void *data;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct top_graph {
|
struct top_graph {
|
||||||
pool *pool; /* Pool we allocate from */
|
pool *pool; /* Pool we allocate from */
|
||||||
slab *hash_slab; /* Slab for hash entries */
|
slab *hash_slab; /* Slab for hash entries */
|
||||||
|
|||||||
Reference in New Issue
Block a user