summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-05-31 11:40:07 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-06-06 05:53:21 +0000
commit9fd2155e60e8bb550823ed4823cc5ea19c0dc905 (patch)
tree877c833f6b92a2515ddc9f66d1b2fa1eb15bf082 /zebra/rib.h
parent298fe55a043a2ba978a10dcb4b9df214c72ccbca (diff)
zebra: Unlock the route node when sending route notifications
When using a context to send route notifications to upper level protocols, the code was using a locking function to get the route node. There is no need for this to be locked as such FRR should free it up. Signed-off-by: Donald Sharp <sharpd@nvidia.com> (cherry picked from commit 82c6e4fea54eb65e153e6bc45bb718367b0b5132)
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index 0161063127..dd22d79835 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -483,6 +483,13 @@ extern uint8_t route_distance(int type);
extern void zebra_rib_evaluate_rn_nexthops(struct route_node *rn, uint32_t seq,
bool rt_delete);
+/*
+ * rib_find_rn_from_ctx
+ *
+ * Returns a lock increased route_node for the appropriate
+ * table and prefix specified by the context. Developer
+ * should unlock the node when done.
+ */
extern struct route_node *
rib_find_rn_from_ctx(const struct zebra_dplane_ctx *ctx);