mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 20:27:03 +00:00
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:
parent
df3cef24c5
commit
2d8a9c544b
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user