summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-09-26 10:40:30 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-10-01 09:14:55 -0400
commit068aea10137950b7f80475a4846191ae8fe3ae3d (patch)
tree3842912b8a9cf3e2cfcaa1180d2716b9541f885c
parent237152fcb5870f021013b3be9eda59190cd81755 (diff)
bgpd: Use CHECK_FLAG to remain consistent for mp_flags
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_mpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index eadd52b8e0..3421b00ba7 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -472,10 +472,10 @@ bool bgp_path_info_mpath_chkwtd(struct bgp *bgp, struct bgp_path_info *path)
*/
if (bgp->lb_handling != BGP_LINK_BW_SKIP_MISSING &&
bgp->lb_handling != BGP_LINK_BW_DEFWT_4_MISSING)
- return (path->mpath->mp_flags & BGP_MP_LB_ALL);
+ return CHECK_FLAG(path->mpath->mp_flags, BGP_MP_LB_ALL);
/* At least one path should have bandwidth. */
- return (path->mpath->mp_flags & BGP_MP_LB_PRESENT);
+ return CHECK_FLAG(path->mpath->mp_flags, BGP_MP_LB_PRESENT);
}
/*