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 /lib/agg_table.h | |
| 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 'lib/agg_table.h')
| -rw-r--r-- | lib/agg_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h index e98476f1b7..e0c06449ee 100644 --- a/lib/agg_table.h +++ b/lib/agg_table.h @@ -161,6 +161,11 @@ agg_node_get_prefix(const struct agg_node *node) return &node->p; } +static inline unsigned int agg_node_get_lock_count(const struct agg_node *node) +{ + return node->lock; +} + #ifdef _FRR_ATTRIBUTE_PRINTFRR #pragma FRR printfrr_ext "%pRN" (struct agg_node *) #endif |
