summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_errors.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-01-26 06:07:57 +0100
committerStephen Worley <sworley@nvidia.com>2022-03-09 23:52:44 +0100
commit5d4141383344bf244c572f9d23c0175d9573f41d (patch)
tree9b0c897fd98627c3b9ee0591d8995b5567dcdd70 /zebra/zebra_errors.h
parentinclude: bump if_netlink.h version for protodown (diff)
downloadfrr-5d4141383344bf244c572f9d23c0175d9573f41d.tar.xz
frr-5d4141383344bf244c572f9d23c0175d9573f41d.zip
zebra: add support for protodown reason code
Add support for setting the protodown reason code. https://github.com/torvalds/linux/commit/829eb208e80d6db95c0201cb8fa00c2f9ad87faf These patches handle all our netlink code for setting the reason. For protodown reason we only set `frr` as the reason externally but internally we have more descriptive reasoning available via `show interface IFNAME`. The kernel only provides a bitwidth of 32 that all userspace programs have to share so this makes the most sense. Since this is new functionality, it needs to be added to the dplane pthread instead. So these patches, also move the protodown setting we were doing before into the dplane pthread. For this, we abstract it a bit more to make it a general interface LINK update dplane API. This API can be expanded to support gernal link creation/updating when/if someone ever adds that code. We also move a more common entrypoint for evpn-mh and from zapi clients like vrrpd. They both call common code now to set our internal flags for protodown and protodown reason. Also add debugging code for dumping netlink packets with protodown/protodown_reason. Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/zebra_errors.h')
-rw-r--r--zebra/zebra_errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_errors.h b/zebra/zebra_errors.h
index 540c6dd7d..5164de09d 100644
--- a/zebra/zebra_errors.h
+++ b/zebra/zebra_errors.h
@@ -136,6 +136,7 @@ enum zebra_log_refs {
EC_ZEBRA_ES_CREATE,
EC_ZEBRA_GRE_SET_UPDATE,
EC_ZEBRA_SRV6M_UNRELEASED_LOCATOR_CHUNK,
+ EC_ZEBRA_INTF_UPDATE_FAILURE,
};
void zebra_error_init(void);