net/bonding: fix selection logic
authorKrzysztof Kanas <kkanas@marvell.com>
Wed, 13 Nov 2019 08:22:24 +0000 (09:22 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000 (17:36 +0100)
commit8d75f49e61c11bff2ecf48818f7acf4520329848
tree556a638a16908564aaf81ab36b131177d4b064de
parent5fde1a75926bad69b430ce9d7e4da4e2447e1cb6
net/bonding: fix selection logic

Arrays agg_count and agg_bandwidth should be indexed by slave_id not by
aggregator port_id.

The new_agg_id should be chosen as slave_id from slaves table in
different selection modes.

Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes")
Cc: stable@dpdk.org
Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
Acked-by: Chas Williams <chas3@att.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_8023ad.c