diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-10-10 16:45:00 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-10-10 16:45:00 -0400 |
| commit | 59c3a491667d8022f996af65612d476ec964049c (patch) | |
| tree | 93acf50a3f6780796213456ce45147df173dcc2b /lib/table.c | |
| parent | f75d9050fc16469b519630abe7ed61de725e64a5 (diff) | |
Revert "bgpd: store bgp link-state prefixes"
This reverts commit 39a8d354c11f6f063fa5154f5807e7a0c9b04b46.
Diffstat (limited to 'lib/table.c')
| -rw-r--r-- | lib/table.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/table.c b/lib/table.c index dbfc3f8b91..1910bd0427 100644 --- a/lib/table.c +++ b/lib/table.c @@ -281,22 +281,15 @@ struct route_node *route_node_get(struct route_table *table, const uint8_t *prefix = &p->u.prefix; node = rn_hash_node_find(&table->hash, &search); - if (node && node->info) { - if (family2afi(p->family) == AFI_LINKSTATE) - prefix_linkstate_ptr_free(p); - + if (node && node->info) return route_lock_node(node); - } match = NULL; node = table->top; while (node && node->p.prefixlen <= prefixlen && prefix_match(&node->p, p)) { - if (node->p.prefixlen == prefixlen) { - if (family2afi(p->family) == AFI_LINKSTATE) - prefix_linkstate_ptr_free(p); + if (node->p.prefixlen == prefixlen) return route_lock_node(node); - } match = node; node = node->link[prefix_bit(prefix, node->p.prefixlen)]; @@ -331,9 +324,6 @@ struct route_node *route_node_get(struct route_table *table, table->count++; route_lock_node(new); - if (family2afi(p->family) == AFI_LINKSTATE) - prefix_linkstate_ptr_free(p); - return new; } |
