mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
pimd: Track the # of times we ask for nexthp information
Keep an idea of how many times we are asking zebra for nexthop information. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
60dbe1a15a
commit
284b4301e4
@ -1102,12 +1102,14 @@ static void show_rpf_refresh_stats(struct vty *vty, time_t now)
|
|||||||
"RPF Cache Refresh Timer: %ld msecs%s"
|
"RPF Cache Refresh Timer: %ld msecs%s"
|
||||||
"RPF Cache Refresh Requests: %lld%s"
|
"RPF Cache Refresh Requests: %lld%s"
|
||||||
"RPF Cache Refresh Events: %lld%s"
|
"RPF Cache Refresh Events: %lld%s"
|
||||||
"RPF Cache Refresh Last: %s%s",
|
"RPF Cache Refresh Last: %s%s"
|
||||||
|
"Nexthop Lookups: %lld%s",
|
||||||
qpim_rpf_cache_refresh_delay_msec, VTY_NEWLINE,
|
qpim_rpf_cache_refresh_delay_msec, VTY_NEWLINE,
|
||||||
pim_time_timer_remain_msec(qpim_rpf_cache_refresher), VTY_NEWLINE,
|
pim_time_timer_remain_msec(qpim_rpf_cache_refresher), VTY_NEWLINE,
|
||||||
(long long)qpim_rpf_cache_refresh_requests, VTY_NEWLINE,
|
(long long)qpim_rpf_cache_refresh_requests, VTY_NEWLINE,
|
||||||
(long long)qpim_rpf_cache_refresh_events, VTY_NEWLINE,
|
(long long)qpim_rpf_cache_refresh_events, VTY_NEWLINE,
|
||||||
refresh_uptime, VTY_NEWLINE);
|
refresh_uptime, VTY_NEWLINE,
|
||||||
|
(long long) qpim_nexthop_lookups, VTY_NEWLINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void show_scan_oil_stats(struct vty *vty, time_t now)
|
static void show_scan_oil_stats(struct vty *vty, time_t now)
|
||||||
|
@ -358,6 +358,8 @@ zclient_lookup_nexthop (struct pim_zlookup_nexthop nexthop_tab[],
|
|||||||
uint32_t route_metric = 0xFFFFFFFF;
|
uint32_t route_metric = 0xFFFFFFFF;
|
||||||
uint8_t protocol_distance = 0xFF;
|
uint8_t protocol_distance = 0xFF;
|
||||||
|
|
||||||
|
qpim_nexthop_lookups++;
|
||||||
|
|
||||||
for (lookup = 0; lookup < max_lookup; ++lookup) {
|
for (lookup = 0; lookup < max_lookup; ++lookup) {
|
||||||
int num_ifindex;
|
int num_ifindex;
|
||||||
int first_ifindex;
|
int first_ifindex;
|
||||||
|
@ -71,6 +71,7 @@ int64_t qpim_mroute_del_last = 0;
|
|||||||
struct list *qpim_static_route_list = NULL;
|
struct list *qpim_static_route_list = NULL;
|
||||||
unsigned int qpim_keep_alive_time = PIM_KEEPALIVE_PERIOD;
|
unsigned int qpim_keep_alive_time = PIM_KEEPALIVE_PERIOD;
|
||||||
signed int qpim_rp_keep_alive_time = 0;
|
signed int qpim_rp_keep_alive_time = 0;
|
||||||
|
int64_t qpim_nexthop_lookups = 0;
|
||||||
|
|
||||||
int32_t qpim_register_suppress_time = PIM_REGISTER_SUPPRESSION_TIME_DEFAULT;
|
int32_t qpim_register_suppress_time = PIM_REGISTER_SUPPRESSION_TIME_DEFAULT;
|
||||||
int32_t qpim_register_probe_time = PIM_REGISTER_PROBE_TIME_DEFAULT;
|
int32_t qpim_register_probe_time = PIM_REGISTER_PROBE_TIME_DEFAULT;
|
||||||
|
@ -103,6 +103,7 @@ int64_t qpim_mroute_add_events;
|
|||||||
int64_t qpim_mroute_add_last;
|
int64_t qpim_mroute_add_last;
|
||||||
int64_t qpim_mroute_del_events;
|
int64_t qpim_mroute_del_events;
|
||||||
int64_t qpim_mroute_del_last;
|
int64_t qpim_mroute_del_last;
|
||||||
|
int64_t qpim_nexthop_lookups;
|
||||||
struct list *qpim_static_route_list; /* list of routes added statically */
|
struct list *qpim_static_route_list; /* list of routes added statically */
|
||||||
extern unsigned int qpim_keep_alive_time;
|
extern unsigned int qpim_keep_alive_time;
|
||||||
extern signed int qpim_rp_keep_alive_time;
|
extern signed int qpim_rp_keep_alive_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user