summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-28 10:40:31 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 08:32:16 -0400
commitcb37cb336a2cca77bfbaf6b0cfab12e847e45623 (patch)
treedef5299d18d1d91fa9e28108c139ca6146e866ed /bgpd
parent173786f6b5ef46df268faf0341f546d03ee90c2c (diff)
*: Rename thread.[ch] to event.[ch]
This is a first in a series of commits, whose goal is to rename the thread system in FRR to an event system. There is a continual problem where people are confusing `struct thread` with a true pthread. In reality, our entire thread.c is an event system. In this commit rename the thread.[ch] files to event.[ch]. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_advertise.c2
-rw-r--r--bgpd/bgp_bfd.c2
-rw-r--r--bgpd/bgp_bmp.c2
-rw-r--r--bgpd/bgp_damp.c2
-rw-r--r--bgpd/bgp_dump.c2
-rw-r--r--bgpd/bgp_fsm.c2
-rw-r--r--bgpd/bgp_io.c2
-rw-r--r--bgpd/bgp_label.c2
-rw-r--r--bgpd/bgp_main.c2
-rw-r--r--bgpd/bgp_mplsvpn_snmp.c2
-rw-r--r--bgpd/bgp_network.c2
-rw-r--r--bgpd/bgp_nexthop.c2
-rw-r--r--bgpd/bgp_nht.c2
-rw-r--r--bgpd/bgp_open.c2
-rw-r--r--bgpd/bgp_packet.c2
-rw-r--r--bgpd/bgp_route.c2
-rw-r--r--bgpd/bgp_rpki.c3
-rw-r--r--bgpd/bgp_snmp.c2
-rw-r--r--bgpd/bgp_snmp_bgp4.c2
-rw-r--r--bgpd/bgp_snmp_bgp4v2.c2
-rw-r--r--bgpd/bgp_updgrp.c2
-rw-r--r--bgpd/bgp_updgrp_adv.c2
-rw-r--r--bgpd/bgp_updgrp_packet.c2
-rw-r--r--bgpd/bgp_vty.c2
-rw-r--r--bgpd/bgp_zebra.c2
-rw-r--r--bgpd/bgpd.c2
-rw-r--r--bgpd/rfapi/rfapi_import.c2
-rw-r--r--bgpd/rfapi/rfapi_import.h2
-rw-r--r--bgpd/rfapi/vnc_export_table.h2
29 files changed, 29 insertions, 30 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c
index 3469d129e4..429abc1790 100644
--- a/bgpd/bgp_advertise.c
+++ b/bgpd/bgp_advertise.c
@@ -9,7 +9,7 @@
#include "memory.h"
#include "prefix.h"
#include "hash.h"
-#include "thread.h"
+#include "event.h"
#include "queue.h"
#include "filter.h"
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 4a81b69ced..bdbaf62267 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -11,7 +11,7 @@
#include "linklist.h"
#include "memory.h"
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "buffer.h"
#include "stream.h"
#include "vrf.h"
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c
index 40a27cad70..6ade0fc388 100644
--- a/bgpd/bgp_bmp.c
+++ b/bgpd/bgp_bmp.c
@@ -11,7 +11,7 @@
#include "sockunion.h"
#include "command.h"
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "linklist.h"
#include "queue.h"
#include "pullwr.h"
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index 54bbf9b9ca..ba16a33fb9 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -10,7 +10,7 @@
#include "memory.h"
#include "command.h"
#include "log.h"
-#include "thread.h"
+#include "event.h"
#include "queue.h"
#include "filter.h"
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index 794dd7b8b6..6aad4ff2a7 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -10,7 +10,7 @@
#include "sockunion.h"
#include "command.h"
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "linklist.h"
#include "queue.h"
#include "memory.h"
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index aa9a6a8602..dc6ce6b8eb 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -9,7 +9,7 @@
#include "linklist.h"
#include "prefix.h"
#include "sockunion.h"
-#include "thread.h"
+#include "event.h"
#include "log.h"
#include "stream.h"
#include "ringbuf.h"
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 530b77987d..5dae39d40c 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -17,7 +17,7 @@
#include "network.h" // for ERRNO_IO_RETRY
#include "stream.h" // for stream_get_endp, stream_getw_from, str...
#include "ringbuf.h" // for ringbuf_remain, ringbuf_peek, ringbuf_...
-#include "thread.h" // for THREAD_OFF, THREAD_ARG, thread...
+#include "event.h" // for THREAD_OFF, THREAD_ARG, thread...
#include "bgpd/bgp_io.h"
#include "bgpd/bgp_debug.h" // for bgp_debug_neighbor_events, bgp_type_str
diff --git a/bgpd/bgp_label.c b/bgpd/bgp_label.c
index 414dafebd4..c13e0b0daf 100644
--- a/bgpd/bgp_label.c
+++ b/bgpd/bgp_label.c
@@ -6,7 +6,7 @@
#include <zebra.h>
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "prefix.h"
#include "zclient.h"
#include "stream.h"
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 85e4904372..63dab9070a 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -9,7 +9,7 @@
#include "vector.h"
#include "command.h"
#include "getopt.h"
-#include "thread.h"
+#include "event.h"
#include <lib/version.h>
#include "memory.h"
#include "prefix.h"
diff --git a/bgpd/bgp_mplsvpn_snmp.c b/bgpd/bgp_mplsvpn_snmp.c
index 8453133dff..52320031c7 100644
--- a/bgpd/bgp_mplsvpn_snmp.c
+++ b/bgpd/bgp_mplsvpn_snmp.c
@@ -12,7 +12,7 @@
#include "log.h"
#include "prefix.h"
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "smux.h"
#include "filter.h"
#include "hook.h"
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 6f035358f1..8fcb5b017e 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -5,7 +5,7 @@
#include <zebra.h>
-#include "thread.h"
+#include "event.h"
#include "sockunion.h"
#include "sockopt.h"
#include "memory.h"
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index f1f6b031a9..2ccc5e2c33 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -6,7 +6,7 @@
#include <zebra.h>
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "prefix.h"
#include "lib/json.h"
#include "zclient.h"
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index 473c95071c..cb9de84cc5 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -6,7 +6,7 @@
#include <zebra.h>
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "prefix.h"
#include "zclient.h"
#include "stream.h"
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 032767820f..457f7be7eb 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -8,7 +8,7 @@
#include "linklist.h"
#include "prefix.h"
#include "stream.h"
-#include "thread.h"
+#include "event.h"
#include "log.h"
#include "command.h"
#include "memory.h"
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index 93672d29f1..97b26ea62a 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -8,7 +8,7 @@
#include <zebra.h>
#include <sys/time.h>
-#include "thread.h"
+#include "event.h"
#include "stream.h"
#include "network.h"
#include "prefix.h"
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 14ce4e6bc9..efa367a56d 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -20,7 +20,7 @@
#include "buffer.h"
#include "sockunion.h"
#include "plist.h"
-#include "thread.h"
+#include "event.h"
#include "workqueue.h"
#include "queue.h"
#include "memory.h"
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c
index 32ca909fe6..2aceca8bd7 100644
--- a/bgpd/bgp_rpki.c
+++ b/bgpd/bgp_rpki.c
@@ -23,7 +23,7 @@
#include "command.h"
#include "linklist.h"
#include "memory.h"
-#include "thread.h"
+#include "event.h"
#include "filter.h"
#include "bgpd/bgpd.h"
#include "bgpd/bgp_table.h"
@@ -36,7 +36,6 @@
#include "northbound_cli.h"
#include "lib/network.h"
-#include "lib/thread.h"
#include "rtrlib/rtrlib.h"
#include "hook.h"
#include "libfrr.h"
diff --git a/bgpd/bgp_snmp.c b/bgpd/bgp_snmp.c
index 5aa5e14288..7408b77656 100644
--- a/bgpd/bgp_snmp.c
+++ b/bgpd/bgp_snmp.c
@@ -12,7 +12,7 @@
#include "log.h"
#include "prefix.h"
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "smux.h"
#include "filter.h"
#include "hook.h"
diff --git a/bgpd/bgp_snmp_bgp4.c b/bgpd/bgp_snmp_bgp4.c
index 186c9e2846..3bf3c61bf3 100644
--- a/bgpd/bgp_snmp_bgp4.c
+++ b/bgpd/bgp_snmp_bgp4.c
@@ -12,7 +12,7 @@
#include "log.h"
#include "prefix.h"
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "smux.h"
#include "filter.h"
#include "hook.h"
diff --git a/bgpd/bgp_snmp_bgp4v2.c b/bgpd/bgp_snmp_bgp4v2.c
index 9c2599d5f4..61615be2c5 100644
--- a/bgpd/bgp_snmp_bgp4v2.c
+++ b/bgpd/bgp_snmp_bgp4v2.c
@@ -13,7 +13,7 @@
#include "log.h"
#include "prefix.h"
#include "command.h"
-#include "thread.h"
+#include "event.h"
#include "smux.h"
#include "filter.h"
#include "hook.h"
diff --git a/bgpd/bgp_updgrp.c b/bgpd/bgp_updgrp.c
index 204b8092e5..68bfb4c139 100644
--- a/bgpd/bgp_updgrp.c
+++ b/bgpd/bgp_updgrp.c
@@ -12,7 +12,7 @@
#include <zebra.h>
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "buffer.h"
#include "stream.h"
#include "command.h"
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index d8e0e7875c..181d57813d 100644
--- a/bgpd/bgp_updgrp_adv.c
+++ b/bgpd/bgp_updgrp_adv.c
@@ -17,7 +17,7 @@
#include "memory.h"
#include "prefix.h"
#include "hash.h"
-#include "thread.h"
+#include "event.h"
#include "queue.h"
#include "routemap.h"
#include "filter.h"
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c
index 5106dcf354..279a7cce60 100644
--- a/bgpd/bgp_updgrp_packet.c
+++ b/bgpd/bgp_updgrp_packet.c
@@ -12,7 +12,7 @@
#include <zebra.h>
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "buffer.h"
#include "stream.h"
#include "command.h"
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 93b412240a..3bc64c3499 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -16,7 +16,7 @@
#include "buffer.h"
#include "linklist.h"
#include "stream.h"
-#include "thread.h"
+#include "event.h"
#include "log.h"
#include "memory.h"
#include "lib_vty.h"
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index da598993d1..d4c98a2c73 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -13,7 +13,7 @@
#include "sockunion.h"
#include "zclient.h"
#include "routemap.h"
-#include "thread.h"
+#include "event.h"
#include "queue.h"
#include "memory.h"
#include "lib/json.h"
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 96c6a111ce..c7cd80b984 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -6,7 +6,7 @@
#include <zebra.h>
#include "prefix.h"
-#include "thread.h"
+#include "event.h"
#include "buffer.h"
#include "stream.h"
#include "ringbuf.h"
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c
index 25a4403040..5fb2c5046d 100644
--- a/bgpd/rfapi/rfapi_import.c
+++ b/bgpd/rfapi/rfapi_import.c
@@ -15,7 +15,7 @@
#include "lib/memory.h"
#include "lib/log.h"
#include "lib/skiplist.h"
-#include "lib/thread.h"
+#include "event.h"
#include "lib/stream.h"
#include "lib/lib_errors.h"
diff --git a/bgpd/rfapi/rfapi_import.h b/bgpd/rfapi/rfapi_import.h
index 3bec225f65..7e021e8f7a 100644
--- a/bgpd/rfapi/rfapi_import.h
+++ b/bgpd/rfapi/rfapi_import.h
@@ -13,7 +13,7 @@
#ifndef QUAGGA_HGP_RFAPI_IMPORT_H
#define QUAGGA_HGP_RFAPI_IMPORT_H
-#include "lib/thread.h"
+#include "event.h"
/*
* These are per-rt-import-list
diff --git a/bgpd/rfapi/vnc_export_table.h b/bgpd/rfapi/vnc_export_table.h
index 42c04f0c79..5716570cb0 100644
--- a/bgpd/rfapi/vnc_export_table.h
+++ b/bgpd/rfapi/vnc_export_table.h
@@ -9,7 +9,7 @@
#define _QUAGGA_VNC_VNC_EXPORT_TABLE_H_
#include "lib/table.h"
-#include "lib/thread.h"
+#include "event.h"
#include "lib/vty.h"
#include "bgpd/bgpd.h"