From: Jan Blunck Date: Thu, 24 Nov 2016 11:26:48 +0000 (+0100) Subject: net/bonding: force reconfiguration of removed slaves X-Git-Tag: spdx-start~5268 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=601319ae246d4a98b8609d3dc539fce6f0f131fe;p=dpdk.git net/bonding: force reconfiguration of removed slaves After a slave interface is removed from a bond group it still has the configuration of the bond interface. Lets enforce that the slave interface is reconfigured after removal by resetting it. Signed-off-by: Jan Blunck --- diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index a80b6fa9ea..e61afc9eaa 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -1454,6 +1454,9 @@ slave_remove(struct bond_dev_private *internals, (internals->slave_count - i - 1)); internals->slave_count--; + + /* force reconfiguration of slave interfaces */ + _rte_eth_dev_reset(slave_eth_dev); } static void