diff options
author | Stephen Worley <sworley@nvidia.com> | 2022-01-31 22:12:01 +0100 |
---|---|---|
committer | Stephen Worley <sworley@nvidia.com> | 2022-03-10 00:02:44 +0100 |
commit | ab465d24bd864c7ab9f5841af89c108e03e768ac (patch) | |
tree | 922a88a2a82111b869059347bbe121ec6e169654 /zebra/zebra_dplane.h | |
parent | zebra: add boilerplate protodown updates for *bsd (diff) | |
download | frr-ab465d24bd864c7ab9f5841af89c108e03e768ac.tar.xz frr-ab465d24bd864c7ab9f5841af89c108e03e768ac.zip |
zebra: only clear pd_reason on shutdown/sweep
Only clear protodown reason on shutdown/sweep, retain protodown
state.
This is to retain traditional and expected behavior with daemons
like vrrpd setting protodown. They expet it to be set on shutdown
and retained on bring up to prevent traffic from being dropped.
We must cleanup our reason code though to prevent us from blocking
others.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r-- | zebra/zebra_dplane.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h index 73acf0341..334d440a2 100644 --- a/zebra/zebra_dplane.h +++ b/zebra/zebra_dplane.h @@ -485,9 +485,8 @@ dplane_ctx_get_pw_backup_nhg(const struct zebra_dplane_ctx *ctx); /* Accessors for interface information */ uint32_t dplane_ctx_get_intf_metric(const struct zebra_dplane_ctx *ctx); void dplane_ctx_set_intf_metric(struct zebra_dplane_ctx *ctx, uint32_t metric); -uint32_t dplane_ctx_get_intf_r_bitfield(const struct zebra_dplane_ctx *ctx); -void dplane_ctx_set_intf_r_bitfield(struct zebra_dplane_ctx *ctx, - uint32_t r_bitfield); +uint32_t dplane_ctx_get_intf_pd_reason_val(const struct zebra_dplane_ctx *ctx); +void dplane_ctx_set_intf_pd_reason_val(struct zebra_dplane_ctx *ctx, bool val); bool dplane_ctx_intf_is_protodown(const struct zebra_dplane_ctx *ctx); /* Is interface addr p2p? */ bool dplane_ctx_intf_is_connected(const struct zebra_dplane_ctx *ctx); |