mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 22:09:48 +00:00
bgpd: Use CHECK_FLAG to remain consistent for mp_flags
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
237152fcb5
commit
068aea1013
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user