diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-19 15:34:40 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-24 13:51:35 -0400 |
| commit | d0a4f55d5d6c2f771c29d7a9f2dc2fd49671345d (patch) | |
| tree | 131b54d80a6369d44741a18d03fe8c02b8324d17 /pimd/pim_nht.h | |
| parent | f509d94116a761ff38b2382ce806985d98f429d8 (diff) | |
pimd: Make nexthop cache pim instance aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_nht.h')
| -rw-r--r-- | pimd/pim_nht.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pimd/pim_nht.h b/pimd/pim_nht.h index fb8d836235..d621f29cc2 100644 --- a/pimd/pim_nht.h +++ b/pimd/pim_nht.h @@ -51,10 +51,12 @@ int pim_parse_nexthop_update(int command, struct zclient *zclient, int pim_find_or_track_nexthop(struct prefix *addr, struct pim_upstream *up, struct rp_info *rp, struct pim_nexthop_cache *out_pnc); -void pim_delete_tracked_nexthop(struct prefix *addr, struct pim_upstream *up, - struct rp_info *rp); -struct pim_nexthop_cache *pim_nexthop_cache_add(struct pim_rpf *rpf_addr); -struct pim_nexthop_cache *pim_nexthop_cache_find(struct pim_rpf *rpf); +void pim_delete_tracked_nexthop(struct pim_instance *pim, struct prefix *addr, + struct pim_upstream *up, struct rp_info *rp); +struct pim_nexthop_cache *pim_nexthop_cache_add(struct pim_instance *pim, + struct pim_rpf *rpf_addr); +struct pim_nexthop_cache *pim_nexthop_cache_find(struct pim_instance *pim, + struct pim_rpf *rpf); uint32_t pim_compute_ecmp_hash(struct prefix *src, struct prefix *grp); int pim_ecmp_nexthop_search(struct pim_nexthop_cache *pnc, struct pim_nexthop *nexthop, struct prefix *src, |
