diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-03 10:55:09 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-02-04 09:44:58 +0000 |
commit | 03ce46219cd0fabfd4918822c5b9fed9ef880de8 (patch) | |
tree | f33c291dba25bcbe856602e6c63ce9d8ef4cc96c /src/vnet/gre/gre.c | |
parent | 0860b2e19365c092f10dd1ce639caaded0e87ded (diff) |
teib: Rename NHRP to TEIB
Type: refactor
The Tunnel Endpoint Informatiob Base (TEIB) is a better
description of what it is (a mapping between tunnel endpoint
address, in the overlay, and next-hop address, in the underlay)
whereas NHRP is one instanc eof a control protocol that might add
such endpoints.
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: Idcb2ad0b6543d3e5d9f6e96f9d14dafb5ce2aa85
Diffstat (limited to 'src/vnet/gre/gre.c')
-rw-r--r-- | src/vnet/gre/gre.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/gre/gre.c b/src/vnet/gre/gre.c index f1bc6946416..a4f38880a39 100644 --- a/src/vnet/gre/gre.c +++ b/src/vnet/gre/gre.c @@ -438,9 +438,9 @@ mgre_mk_complete_walk (adj_index_t ai, void *data) gre_build_rewrite (vnet_get_main (), ctx->t->sw_if_index, adj_get_link_type (ai), - &nhrp_entry_get_nh (ctx->ne)->fp_addr)); + &teib_entry_get_nh (ctx->ne)->fp_addr)); - nhrp_entry_adj_stack (ctx->ne, ai); + teib_entry_adj_stack (ctx->ne, ai); return (ADJ_WALK_RC_CONTINUE); } @@ -464,7 +464,7 @@ mgre_update_adj (vnet_main_t * vnm, u32 sw_if_index, adj_index_t ai) { gre_main_t *gm = &gre_main; ip_adjacency_t *adj; - nhrp_entry_t *ne; + teib_entry_t *ne; gre_tunnel_t *t; u32 ti; @@ -472,7 +472,7 @@ mgre_update_adj (vnet_main_t * vnm, u32 sw_if_index, adj_index_t ai) ti = gm->tunnel_index_by_sw_if_index[sw_if_index]; t = pool_elt_at_index (gm->tunnels, ti); - ne = nhrp_entry_find (sw_if_index, &adj->sub_type.nbr.next_hop); + ne = teib_entry_find (sw_if_index, &adj->sub_type.nbr.next_hop); if (NULL == ne) // no NHRP entry to provide the next-hop |