Commit 0f9ea4253a for frr

commit 0f9ea4253a876f081511ef65691806fc108a8a84
Author: Nishant Kumar <nishant9144@gmail.com>
Date:   Sun Nov 15 06:18:35 2026 +0000

    bgpd: name the process queue after the instance is named

    bgp_create() set up the route process queue before bgp->name_pretty
    was set, so every queue was named "process_queue (null)" in
    "show work-queues". Passing NULL for %s is also undefined behavior.

    Set up the queue right after name_pretty is set. A hidden instance
    that is configured again keeps the queue it already has, as before.

    Fixes #24385

    Signed-off-by: Nishant Kumar <nishant9144@gmail.com>

diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index f3a39f234a..74bfe5fdb9 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4048,7 +4048,6 @@ static struct bgp *bgp_create(as_t *as, const char *name,
 	bgp_lock(bgp);

 	bgp->allow_martian = false;
-	bgp_process_queue_init(bgp);
 	bgp->heuristic_coalesce = true;
 	bgp->inst_type = inst_type;
 	bgp->vrf_id = (inst_type == BGP_INSTANCE_TYPE_DEFAULT) ? VRF_DEFAULT
@@ -4196,6 +4195,10 @@ peer_init:
 			n);
 	}

+	/* The process queue is named after name_pretty */
+	if (!hidden)
+		bgp_process_queue_init(bgp);
+
 	atomic_store_explicit(&bgp->wpkt_quanta, BGP_WRITE_PACKET_MAX,
 			      memory_order_relaxed);
 	atomic_store_explicit(&bgp->rpkt_quanta, BGP_READ_PACKET_MAX,