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 <al...@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 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev