X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fbond.c;h=2fa65a9acefe2704dbb31e533deb4762d94c4ef1;hb=9e4e33db91d28bf570a05db32db46a1952f91684;hp=6506b36cbe45c8f2ea2c6e094fe1e6e96dafa2e1;hpb=6c932bc8c5db7a9d4e264619eeb30af65bc3b9b6;p=sliver-openvswitch.git diff --git a/ofproto/bond.c b/ofproto/bond.c index 6506b36cb..2fa65a9ac 100644 --- a/ofproto/bond.c +++ b/ofproto/bond.c @@ -336,8 +336,6 @@ update_recirc_rules(struct bond *bond) if (slave) { match_init_catchall(&match); match_set_recirc_id(&match, bond->recirc_id); - /* recirc_id -> metadata to speed up look ups. */ - match_set_metadata(&match, htonll(bond->recirc_id)); match_set_dp_hash_masked(&match, i, BOND_MASK); add_pr_rule(bond, &match, slave->ofp_port, @@ -890,7 +888,7 @@ bool bond_may_recirc(const struct bond *bond, uint32_t *recirc_id, uint32_t *hash_bias) { - if (bond->balance == BM_TCP) { + if (bond->balance == BM_TCP && recirc_id) { if (recirc_id) { *recirc_id = bond->recirc_id; }