]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Add a queued flag to nhg_hash_entry
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 6 Mar 2019 19:56:04 +0000 (14:56 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:37 +0000 (11:13 -0400)
Added a NEXTHOP_GROUP_QUEUED flag to the nexthop
group hash entry struct. This indicates when we have
sent it to be installed to the kernel and are waiting
for the dataplane provider to process it.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.h

index 126f342c5448717d55c0761fb0ef45311e1225d9..e8c0a4b34b5f7034bf3d903349ea0112f244f885 100644 (file)
@@ -50,6 +50,11 @@ struct nhg_hash_entry {
  * and it's possible usage by a route entry.
  */
 #define NEXTHOP_GROUP_INSTALLED 0x2
+/*
+ * Has the nexthop group been queued to be send to the FIB?
+ * The NEXTHOP_GROUP_VALID flag should also be set by this point.
+ */
+#define NEXTHOP_GROUP_QUEUED 0x4
 };
 
 void zebra_nhg_init(void);