git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ofproto-bond: do not allow recirculation when we failed to allocate recirc_id
[sliver-openvswitch.git]
/
ofproto
/
bond.c
diff --git
a/ofproto/bond.c
b/ofproto/bond.c
index
630e535
..
2fa65a9
100644
(file)
--- a/
ofproto/bond.c
+++ b/
ofproto/bond.c
@@
-888,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;
}