From 601319ae246d4a98b8609d3dc539fce6f0f131fe Mon Sep 17 00:00:00 2001 From: Jan Blunck Date: Thu, 24 Nov 2016 12:26:48 +0100 Subject: [PATCH] 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 --- drivers/net/bonding/rte_eth_bond_pmd.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.20.1