net/bonding: force reconfiguration of removed slaves
authorJan Blunck <jblunck@infradead.org>
Thu, 24 Nov 2016 11:26:48 +0000 (12:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Dec 2016 17:47:53 +0000 (18:47 +0100)
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 <jblunck@infradead.org>
drivers/net/bonding/rte_eth_bond_pmd.c

index a80b6fa..e61afc9 100644 (file)
@@ -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