diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-14 12:44:23 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-17 13:39:10 -0400 |
| commit | c10e14e96dae32a3b52bc97ab197e58577cff709 (patch) | |
| tree | af3db68b477518fdd84ce4cbf4cd6d7b4823011c /pimd/pim_rp.c | |
| parent | 0894afd4cf49511be5ac68f36115ca6acf6a5707 (diff) | |
*: Create/Use accessor functions for lock count
Create appropriate accessor functions for the rn->lock
data. We should be accessing this data through accessor
functions since it is private data to the data structure.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_rp.c')
| -rw-r--r-- | pimd/pim_rp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index 93fe787a93..11e6d47fc9 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -134,7 +134,7 @@ void pim_rp_init(struct pim_instance *pim) if (PIM_DEBUG_PIM_TRACE) zlog_debug( "Allocated: %p for rp_info: %p(224.0.0.0/4) Lock: %d", - rn, rp_info, rn->lock); + rn, rp_info, route_node_get_lock_count(rn)); } void pim_rp_free(struct pim_instance *pim) @@ -254,7 +254,7 @@ struct rp_info *pim_rp_find_match_group(struct pim_instance *pim, zlog_debug("Lookedup: %p for rp_info: %p(%s) Lock: %d", rn, rp_info, prefix2str(&rp_info->group, buf, sizeof(buf)), - rn->lock); + route_node_get_lock_count(rn)); } route_unlock_node(rn); @@ -649,7 +649,7 @@ int pim_rp_new(struct pim_instance *pim, struct in_addr rp_addr, zlog_debug("Allocated: %p for rp_info: %p(%s) Lock: %d", rn, rp_info, prefix2str(&rp_info->group, buf, sizeof(buf)), - rn->lock); + route_node_get_lock_count(rn)); } frr_each (rb_pim_upstream, &pim->upstream_head, up) { @@ -845,7 +845,7 @@ int pim_rp_del(struct pim_instance *pim, struct in_addr rp_addr, __func__, rn, rp_info, prefix2str(&rp_info->group, buf, sizeof(buf)), - rn->lock); + route_node_get_lock_count(rn)); } rn->info = NULL; route_unlock_node(rn); |
