Commit 278480487e for frr

commit 278480487e3337176e048091f9d420c69f4c87f5
Author: Carmine Scarpitta <cscarpit@cisco.com>
Date:   Tue Aug 25 12:05:52 2026 +0200

    bgpd: Make path family helpers const-correct

    These helpers only inspect the path table family, so accept const path
    info pointers. This lets callers in const contexts use the helpers
    without casting away const.

    Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>

diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h
index 6aa3dba3ca..beab909d91 100644
--- a/bgpd/bgp_evpn.h
+++ b/bgpd/bgp_evpn.h
@@ -119,7 +119,7 @@ static inline int is_route_parent_evpn(struct bgp_path_info *ri)
 	(afi == AFI_L2VPN && safi == SAFI_EVPN && bgp != bgp_get_evpn())

 /* Flag if the route path's family is EVPN. */
-static inline bool is_pi_family_evpn(struct bgp_path_info *pi)
+static inline bool is_pi_family_evpn(const struct bgp_path_info *pi)
 {
 	return is_pi_family_matching(pi, AFI_L2VPN, SAFI_EVPN);
 }
diff --git a/bgpd/bgp_mplsvpn.h b/bgpd/bgp_mplsvpn.h
index 184953cec2..755a74b067 100644
--- a/bgpd/bgp_mplsvpn.h
+++ b/bgpd/bgp_mplsvpn.h
@@ -348,7 +348,7 @@ static inline bool is_route_injectable_into_vpn(struct bgp_path_info *pi)
 }

 /* Flag if the route path's family is VPN. */
-static inline bool is_pi_family_vpn(struct bgp_path_info *pi)
+static inline bool is_pi_family_vpn(const struct bgp_path_info *pi)
 {
 	return (is_pi_family_matching(pi, AFI_IP, SAFI_MPLS_VPN) ||
 		is_pi_family_matching(pi, AFI_IP6, SAFI_MPLS_VPN));
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h
index ee744e28dc..a8b96cb1fa 100644
--- a/bgpd/bgp_route.h
+++ b/bgpd/bgp_route.h
@@ -690,8 +690,7 @@ static inline int bgp_fibupd_safi(safi_t safi)
 }

 /* Flag if the route path's family matches params. */
-static inline bool is_pi_family_matching(struct bgp_path_info *pi,
-					 afi_t afi, safi_t safi)
+static inline bool is_pi_family_matching(const struct bgp_path_info *pi, afi_t afi, safi_t safi)
 {
 	struct bgp_table *table;
 	struct bgp_dest *dest;