net/bonding: reconfigure all slave queues every time
authorIlya Maximets <i.maximets@samsung.com>
Thu, 24 Nov 2016 11:26:49 +0000 (12:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Dec 2016 17:47:53 +0000 (18:47 +0100)
commit1e2eff64f554892c005ab710aea54d1cade9451d
tree59978cf21c3b1ea0293bdbdfd5a57e66454eaa26
parent601319ae246d4a98b8609d3dc539fce6f0f131fe
net/bonding: reconfigure all slave queues every time

This reverts commit 5b7bb2bda5519b7800f814df64d4e015282140e5.

It is necessary to reconfigure all queues every time because configuration
can be changed.

For example, if we're reconfiguring bonding device with new memory pool,
already configured queues will still use the old one. And if the old
mempool be freed, application likely will panic in attempt to use
freed mempool.

This happens when we use the bonding device with OVS 2.6 while MTU
reconfiguration:

PANIC in rte_mempool_get_ops():
assert "(ops_index >= 0) && (ops_index < RTE_MEMPOOL_MAX_OPS_IDX)" failed

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Jan Blunck <jblunck@infradead.org>
drivers/net/bonding/rte_eth_bond_pmd.c