]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove unneeded nhg repalce boilerplate
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 20 May 2020 15:23:36 +0000 (11:23 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
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>
zebra/zebra_nhg.c
zebra/zebra_nhg.h

index 6d4a915673aebf4389ee462456d017bccaa11f94..d4d31d3ea26f502d580f694f2dd7acc64af76951 100644 (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;
-}
index 02858779b34a89838a29c7f085322198686dc983..16474aada4271a716bfe8dcb1463b8bb986e23d8 100644 (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);