summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nhg.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-08-13 02:09:59 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 17:13:42 +0200
commit1b366e63beb7fc9b758c6a61d918c4bf14005bd8 (patch)
treeeaeb612e98bed0dee601ea1081d437b406185049 /zebra/zebra_nhg.h
parentzebra: Free labels on nhg_ctx from kernel (diff)
downloadfrr-1b366e63beb7fc9b758c6a61d918c4bf14005bd8.tar.xz
frr-1b366e63beb7fc9b758c6a61d918c4bf14005bd8.zip
zebra: Handle out of order kernel nexthop groups
Add a mechanism to requeue groups we receive from the kernel if the IDs are in a weird order (Group ID is lower than individual nexthop IDs for example). Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nhg.h')
-rw-r--r--zebra/zebra_nhg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h
index eb9173457..812d9a1a9 100644
--- a/zebra/zebra_nhg.h
+++ b/zebra/zebra_nhg.h
@@ -125,9 +125,10 @@ enum nhg_ctx_op_e {
NHG_CTX_OP_DEL,
};
-enum nhg_ctx_result {
+enum nhg_ctx_status {
NHG_CTX_NONE = 0,
NHG_CTX_QUEUED,
+ NHG_CTX_REQUEUED,
NHG_CTX_SUCCESS,
NHG_CTX_FAILURE,
};
@@ -159,7 +160,7 @@ struct nhg_ctx {
} u;
enum nhg_ctx_op_e op;
- enum nhg_ctx_result status;
+ enum nhg_ctx_status status;
};