]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib, zebra: Convert THREAD_TIMER_STRLEN to EVENT_TIMER_STRLEN
authorDonald Sharp <sharpd@nvidia.com>
Sun, 11 Dec 2022 16:39:09 +0000 (11:39 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 24 Mar 2023 12:32:17 +0000 (08:32 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/event.h
zebra/zebra_evpn_mac.c
zebra/zebra_evpn_mh.c
zebra/zebra_evpn_neigh.c

index db7929f32620178d235301b46e58cfda31ab214d..36766899c45393dcefd6a48cfe1d1dc2762d0f0f 100644 (file)
@@ -147,10 +147,10 @@ struct cpu_event_history {
 /* Struct timeval's tv_usec one second value.  */
 #define TIMER_SECOND_MICRO 1000000L
 
-/* Thread yield time.  */
+/* Event yield time.  */
 #define EVENT_YIELD_TIME_SLOT 10 * 1000L /* 10ms */
 
-#define THREAD_TIMER_STRLEN 12
+#define EVENT_TIMER_STRLEN 12
 
 /* Macros. */
 #define THREAD_ARG(X) ((X)->arg)
index 36470af6e31c61618d795b9f65d6255c9ca28437..900c352df143cf215a3868f03bfcc232f2333cbc 100644 (file)
@@ -615,7 +615,7 @@ void zebra_evpn_print_mac(struct zebra_mac *mac, void *ctxt, json_object *json)
        struct zebra_vrf *zvrf;
        struct timeval detect_start_time = {0, 0};
        char timebuf[MONOTIME_STRLEN];
-       char thread_buf[THREAD_TIMER_STRLEN];
+       char thread_buf[EVENT_TIMER_STRLEN];
        time_t uptime;
        char up_str[MONOTIME_STRLEN];
 
index 0e3e3d01fb0776673187c5bd10170da622a50e63..1aee64b60aed7fcd0750769bca63c337b7d75a93 100644 (file)
@@ -3139,7 +3139,7 @@ static void zebra_evpn_es_show_entry_detail(struct vty *vty,
        char alg_buf[EVPN_DF_ALG_STR_LEN];
        struct zebra_evpn_es_vtep *es_vtep;
        struct listnode *node;
-       char thread_buf[THREAD_TIMER_STRLEN];
+       char thread_buf[EVENT_TIMER_STRLEN];
 
        if (json) {
                json_object *json_vteps;
@@ -3522,7 +3522,7 @@ DEFPY(zebra_evpn_mh_uplink, zebra_evpn_mh_uplink_cmd, "[no] evpn mh uplink",
 void zebra_evpn_mh_json(json_object *json)
 {
        json_object *json_array;
-       char thread_buf[THREAD_TIMER_STRLEN];
+       char thread_buf[EVENT_TIMER_STRLEN];
 
        json_object_int_add(json, "macHoldtime", zmh_info->mac_hold_time);
        json_object_int_add(json, "neighHoldtime", zmh_info->neigh_hold_time);
@@ -3555,7 +3555,7 @@ void zebra_evpn_mh_json(json_object *json)
 void zebra_evpn_mh_print(struct vty *vty)
 {
        char pd_buf[ZEBRA_PROTODOWN_RC_STR_LEN];
-       char thread_buf[THREAD_TIMER_STRLEN];
+       char thread_buf[EVENT_TIMER_STRLEN];
 
        vty_out(vty, "EVPN MH:\n");
        vty_out(vty, "  mac-holdtime: %ds, neigh-holdtime: %ds\n",
index 393ff3baf4684884e8187c85670fb7140e11ff48..2405b2cd2d2c74c45541596fa2551836bab575dc 100644 (file)
@@ -1706,7 +1706,7 @@ void zebra_evpn_print_neigh(struct zebra_neigh *n, void *ctxt,
        struct zebra_vrf *zvrf = NULL;
        struct timeval detect_start_time = {0, 0};
        char timebuf[MONOTIME_STRLEN];
-       char thread_buf[THREAD_TIMER_STRLEN];
+       char thread_buf[EVENT_TIMER_STRLEN];
        time_t uptime;
        char up_str[MONOTIME_STRLEN];