[ovs-dev] [PATCH] band.c: Fix error in bond_choose_output_slave() function.
Alex Wang
alexw at nicira.com
Mon Aug 12 21:14:52 UTC 2013
This commit fixes the error introduced by commit 4a1b8f30e59 (bond:
Stop using tags.). The error is caused by mistakenly returning 'slave'
where 'slave->aux' should be returned.
Signed-off-by: Alex Wang <alexw at nicira.com>
---
lib/bond.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bond.c b/lib/bond.c
index a9278db..ebf2ee0 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -665,7 +665,7 @@ bond_choose_output_slave(struct bond *bond, const struct flow *flow,
ovs_rwlock_rdlock(&rwlock);
slave = choose_output_slave(bond, flow, wc, vlan);
ovs_rwlock_unlock(&rwlock);
- return slave;
+ return slave ? slave->aux : NULL;
}
/* Rebalancing. */
--
1.7.9.5
More information about the dev
mailing list