diff options
Diffstat (limited to 'bgpd/bgp_mpath.c')
| -rw-r--r-- | bgpd/bgp_mpath.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index 8127428bc7..1d727d267a 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -610,7 +610,8 @@ void bgp_path_info_mpath_update(struct bgp_dest *dest, prev_mpath = cur_mpath; mpath_count++; if (ecommunity_linkbw_present( - cur_mpath->attr->ecommunity, &bwval)) + cur_mpath->attr->ecommunity, + &bwval)) cum_bw += bwval; else all_paths_lb = false; @@ -699,7 +700,8 @@ void bgp_path_info_mpath_update(struct bgp_dest *dest, mpath_changed = 1; mpath_count++; if (ecommunity_linkbw_present( - new_mpath->attr->ecommunity, &bwval)) + new_mpath->attr->ecommunity, + &bwval)) cum_bw += bwval; else all_paths_lb = false; @@ -721,9 +723,9 @@ void bgp_path_info_mpath_update(struct bgp_dest *dest, if (new_best) { bgp_path_info_mpath_count_set(new_best, mpath_count - 1); - if (mpath_count <= 1 || - !ecommunity_linkbw_present( - new_best->attr->ecommunity, &bwval)) + if (mpath_count <= 1 + || !ecommunity_linkbw_present(new_best->attr->ecommunity, + &bwval)) all_paths_lb = false; else cum_bw += bwval; |
