From 7f6077d06322b2ac0d6741c33e644c4c4ec8a95c Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 6 Mar 2019 14:56:04 -0500 Subject: [PATCH] zebra: Add a queued flag to nhg_hash_entry 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 --- zebra/zebra_nhg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h index 126f342c54..e8c0a4b34b 100644 --- a/zebra/zebra_nhg.h +++ b/zebra/zebra_nhg.h @@ -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); -- 2.39.5