diff options
author | Donald Sharp <sharpd@nvidia.com> | 2020-10-14 18:44:23 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-17 19:39:10 +0200 |
commit | c10e14e96dae32a3b52bc97ab197e58577cff709 (patch) | |
tree | af3db68b477518fdd84ce4cbf4cd6d7b4823011c /bgpd/bgp_table.h | |
parent | Merge pull request #7336 from donaldsharp/sharp_one_one (diff) | |
download | frr-c10e14e96dae32a3b52bc97ab197e58577cff709.tar.xz frr-c10e14e96dae32a3b52bc97ab197e58577cff709.zip |
*: 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 'bgpd/bgp_table.h')
-rw-r--r-- | bgpd/bgp_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgp_table.h b/bgpd/bgp_table.h index 31ea5554d..9dd27628c 100644 --- a/bgpd/bgp_table.h +++ b/bgpd/bgp_table.h @@ -469,6 +469,11 @@ static inline const struct prefix *bgp_dest_get_prefix(const struct bgp_dest *de return &dest->p; } +static inline unsigned int bgp_dest_get_lock_count(const struct bgp_dest *dest) +{ + return dest->lock; +} + #ifdef _FRR_ATTRIBUTE_PRINTFRR #pragma FRR printfrr_ext "%pRN" (struct bgp_node *) #pragma FRR printfrr_ext "%pBD" (struct bgp_dest *) |