diff options
| author | Stephen Worley <sworley@nvidia.com> | 2022-01-21 04:03:01 -0500 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2022-03-09 17:52:44 -0500 |
| commit | 71ef5cbb9563e09a76996448a7f34cec37ed3c15 (patch) | |
| tree | 31a6044851e4b37f692e849b1a079025efdb33fb /zebra/interface.h | |
| parent | c40e1b1cfbbf8db7b03f9faa51afbea8cda722c3 (diff) | |
zebra: add enum set/unset states for queing
Add enums for set/unset of prodown state to handle the mainthread
knowing an update is already queued without actually marking it
as complete.
This is to make the logic confirm a bit more with other parts of the code
where we queue dplane updates and not update our internal structs until
success callback is received.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/interface.h')
| -rw-r--r-- | zebra/interface.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 2c3784ee15..70a5581a88 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -308,12 +308,16 @@ enum zebra_if_flags { /* Dataplane protodown-on */ ZIF_FLAG_PROTODOWN = (1 << 2), + /* Dataplane protodown-on Queued to the dplane */ + ZIF_FLAG_SET_PROTODOWN = (1 << 3), + /* Dataplane protodown-off Queued to the dplane */ + ZIF_FLAG_UNSET_PROTODOWN = (1 << 4), /* LACP bypass state is set by the dataplane on a bond member * and inherited by the bond (if one or more bond members are in * a bypass state the bond is placed in a bypass state) */ - ZIF_FLAG_LACP_BYPASS = (1 << 3) + ZIF_FLAG_LACP_BYPASS = (1 << 5) }; /* `zebra' daemon local interface structure. */ |
