zebra: remove unneeded nhg repalce boilerplate

Remove some leftover boilerplate from the old replace
code path. That code ended up in the add API so its no
longer needed.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2020-05-20 11:23:36 -04:00
parent df3cef24c5
commit 2d8a9c544b
2 changed files with 1 additions and 16 deletions

View File

@ -2813,9 +2813,3 @@ struct nhg_hash_entry *zebra_nhg_proto_del(uint32_t id)
return nhe;
}
/* Replace NHE from upper level proto */
struct nhg_hash_entry *
zebra_nhg_proto_replace(uint32_t id, struct nexthop_group *nhg, afi_t afi)
{
return NULL;
}

View File

@ -268,7 +268,7 @@ zebra_nhg_rib_find_nhe(struct nhg_hash_entry *rt_nhe, afi_t rt_afi);
*/
/*
* Add NHE.
* Add NHE. If already exists, Replace.
*
* Returns allocated NHE on success, otherwise NULL.
*/
@ -276,7 +276,6 @@ struct nhg_hash_entry *zebra_nhg_proto_add(uint32_t id, int type,
struct nexthop_group *nhg,
afi_t afi);
/*
* Del NHE.
*
@ -286,14 +285,6 @@ struct nhg_hash_entry *zebra_nhg_proto_add(uint32_t id, int type,
*/
struct nhg_hash_entry *zebra_nhg_proto_del(uint32_t id);
/*
* Replace NHE.
*
* Returns new NHE on success, otherwise NULL.
*/
struct nhg_hash_entry *
zebra_nhg_proto_replace(uint32_t id, struct nexthop_group *nhg, afi_t afi);
/* Reference counter functions */
extern void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe);
extern void zebra_nhg_increment_ref(struct nhg_hash_entry *nhe);