X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto-dpif.c;fp=ofproto%2Fofproto-dpif.c;h=58c50643696de7f3b33cfd5229f0da72ef951b2e;hb=60cda7d69b0bfd242045d346f2cd169836a3d78e;hp=0407302301a796eba76c5a4dc6f3c1ab61ec1413;hpb=9e4e33db91d28bf570a05db32db46a1952f91684;p=sliver-openvswitch.git diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 040730230..58c506436 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1351,7 +1351,6 @@ run(struct ofproto *ofproto_) { struct ofproto_dpif *ofproto = ofproto_dpif_cast(ofproto_); uint64_t new_seq, new_dump_seq; - const bool enable_recirc = ofproto_dpif_get_enable_recirc(ofproto); if (mbridge_need_revalidate(ofproto->mbridge)) { ofproto->backer->need_revalidate = REV_RECONFIGURE; @@ -1435,17 +1434,12 @@ run(struct ofproto *ofproto_) /* All outstanding data in existing flows has been accounted, so it's a * good time to do bond rebalancing. */ - if (enable_recirc && ofproto->has_bonded_bundles) { + if (ofproto->has_bonded_bundles) { struct ofbundle *bundle; HMAP_FOR_EACH (bundle, hmap_node, &ofproto->bundles) { - struct bond *bond = bundle->bond; - - if (bond && bond_may_recirc(bond, NULL, NULL)) { - bond_recirculation_account(bond); - if (bond_rebalance(bundle->bond)) { - bond_update_post_recirc_rules(bond, true); - } + if (bundle->bond) { + bond_rebalance(bundle->bond); } } }