Commit 94c275ba authored by Robert Ricci's avatar Robert Ricci
Browse files

Fix for vnodes that have a mix of emulated and non-emulated links -

in find_best_link(), don't try plinks that already have a non-emulated
link on them, when we're doing an emulated link.
parent 3ebbdece
......@@ -1219,6 +1219,11 @@ bool find_best_link(pvertex pv,pvertex switch_pv,tb_vlink *vlink,
if (vlink->emulated) {
// For emulated links, we need to do bin packing. Right now, we use the
// first-fit approximation; there may be a better one
// Skip any links that already have non-emulated links assigned to them
if (plink->nonemulated > 0) {
if (available_bandwidth >= vlink->delay_info.bandwidth) {
best_pedge = *pedge_it;
found_best = true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment