diff options
| author | Stephen Worley <sworley@nvidia.com> | 2021-04-08 19:20:53 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2023-02-13 18:12:05 -0500 |
| commit | 742341e1443d8162e44020101bf93d22b11ce549 (patch) | |
| tree | fe61473b5b8c098cffc818f89e219e17ffd6be76 /bgpd/bgp_evpn.h | |
| parent | d44fc240a8691261c3c20608071173f2506982a7 (diff) | |
bgpd: add mpath label stack helper functions for dvni
Add some bgp_path_info helper functions for getting the correct l3vni
label, getting the vni from the label stack, and determinging if
the mpath is D-VNI based.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'bgpd/bgp_evpn.h')
| -rw-r--r-- | bgpd/bgp_evpn.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h index 3c980eb1da..4f95b71b1d 100644 --- a/bgpd/bgp_evpn.h +++ b/bgpd/bgp_evpn.h @@ -208,5 +208,10 @@ bgp_evpn_handle_resolve_overlay_index_set(struct hash_bucket *bucket, extern void bgp_evpn_handle_resolve_overlay_index_unset(struct hash_bucket *bucket, void *arg); +extern mpls_label_t *bgp_evpn_path_info_labels_get_l3vni(mpls_label_t *labels, + uint32_t num_labels); +extern vni_t bgp_evpn_path_info_get_l3vni(const struct bgp_path_info *pi); +extern bool bgp_evpn_mpath_has_dvni(const struct bgp *bgp_vrf, + struct bgp_path_info *mpinfo); #endif /* _QUAGGA_BGP_EVPN_H */ |
