From 04bec7b217df8cc823f0e5717c7db922f2905c3a Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 15 Apr 2021 14:20:39 -0400 Subject: zebra: use workqueue for daemon-owned NHGs Use the main zebra workqueue for daemon-owned NHGs, in addition to processing kernel-owned NHGs. The zapi message processing creates a temporary object that's enqueued to the workqueue, then processed/installed as part of the workqueue processing. Signed-off-by: Mark Stapp --- zebra/rib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zebra/rib.h') diff --git a/zebra/rib.h b/zebra/rib.h index e7676a132..75d7ae1b6 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -426,7 +426,11 @@ extern int rib_queue_add(struct route_node *rn); struct nhg_ctx; /* Forward declaration */ -extern int rib_queue_nhg_add(struct nhg_ctx *ctx); +/* Enqueue incoming nhg from OS for processing */ +extern int rib_queue_nhg_ctx_add(struct nhg_ctx *ctx); + +/* Enqueue incoming nhg from proto daemon for processing */ +extern int rib_queue_nhe_add(struct nhg_hash_entry *nhe); extern void meta_queue_free(struct meta_queue *mq); extern int zebra_rib_labeled_unicast(struct route_entry *re); -- cgit v1.2.3