From 03ce46219cd0fabfd4918822c5b9fed9ef880de8 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 3 Feb 2020 10:55:09 +0000 Subject: 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 Change-Id: Idcb2ad0b6543d3e5d9f6e96f9d14dafb5ce2aa85 --- src/vnet/gre/gre.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/vnet/gre/gre.c') 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 -- cgit 1.2.3-korg