diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-08-12 20:09:59 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:42 -0400 |
| commit | 1b366e63beb7fc9b758c6a61d918c4bf14005bd8 (patch) | |
| tree | eaeb612e98bed0dee601ea1081d437b406185049 /zebra/zebra_nhg.h | |
| parent | 3e347f4181db349299b2dd05bea11b030770af71 (diff) | |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h index eb9173457c..812d9a1a90 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; }; |
