diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-07-02 01:16:48 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:40 -0400 |
| commit | 7f997721693c63afcdf1d23f7449f8acbbe282d1 (patch) | |
| tree | 80efe9683ebb90d36f15b052022ee2ae40e91bec /zebra/zebra_nhg.h | |
| parent | 139ddad8f12cf6dbf2993af196cc33476c2b79cf (diff) | |
zebra: Use nexthop/interface vrf, not the routes
When hashing/creating the NHE, use the nexthops vrf as its
source of data. This is gotten directly from an interface
and should not come from a route.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nhg.h')
| -rw-r--r-- | zebra/zebra_nhg.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h index 31a2a020a0..ff2c73433a 100644 --- a/zebra/zebra_nhg.h +++ b/zebra/zebra_nhg.h @@ -212,10 +212,8 @@ extern int zebra_nhg_kernel_find(uint32_t id, struct nexthop *nh, vrf_id_t vrf_id, afi_t afi); /* Find via route creation */ -extern struct nhg_hash_entry *zebra_nhg_rib_find(uint32_t id, - struct nexthop_group *nhg, - vrf_id_t rt_vrf_id, - afi_t rt_afi); +extern struct nhg_hash_entry * +zebra_nhg_rib_find(uint32_t id, struct nexthop_group *nhg, afi_t rt_afi); void zebra_nhg_free_members(struct nhg_hash_entry *nhe); |
