mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 19:43:29 +00:00
Merge pull request #7438 from donaldsharp/multipath_no_alloc
bgpd: Multipath is always being allocated
This commit is contained in:
commit
aeef9fceb4
@ -412,8 +412,9 @@ static void bgp_path_info_mpath_lb_update(struct bgp_path_info *path, bool set,
|
||||
struct bgp_path_info_mpath *mpath;
|
||||
|
||||
if ((mpath = path->mpath) == NULL) {
|
||||
if (!set)
|
||||
if (!set || (cum_bw == 0 && !all_paths_lb))
|
||||
return;
|
||||
|
||||
mpath = bgp_path_info_mpath_get(path);
|
||||
if (!mpath)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user