diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-05-09 19:38:24 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-05-09 19:38:24 +0200 |
| commit | 3c786ef2291bb5a85c2f1b1264e026c6408f89eb (patch) | |
| tree | d47cfc04549af79832e79c2547bdeefbad027f8c /zebra/zebra_mpls.c | |
| parent | 466623224712f03771a4cb9594c1b0fc76e8ab8d (diff) | |
| parent | e20713259443fdc7134bb5e10c04496beb006321 (diff) | |
Merge branch 'pull/8563'
w/ style fix to speed things along
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index a923782bfe..850ca17636 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -3952,11 +3952,18 @@ void zebra_mpls_close_tables(struct zebra_vrf *zvrf) */ void zebra_mpls_init_tables(struct zebra_vrf *zvrf) { + char buffer[80]; + if (!zvrf) return; - zvrf->slsp_table = - hash_create(label_hash, label_cmp, "ZEBRA SLSP table"); - zvrf->lsp_table = hash_create(label_hash, label_cmp, "ZEBRA LSP table"); + + snprintf(buffer, sizeof(buffer), "ZEBRA SLSP table: %s", + zvrf->vrf->name); + zvrf->slsp_table = hash_create_size(8, label_hash, label_cmp, buffer); + + snprintf(buffer, sizeof(buffer), "ZEBRA LSP table: %s", + zvrf->vrf->name); + zvrf->lsp_table = hash_create_size(8, label_hash, label_cmp, buffer); zvrf->fec_table[AFI_IP] = route_table_init(); zvrf->fec_table[AFI_IP6] = route_table_init(); zvrf->mpls_flags = 0; |
