From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH 4/4] bond: Force reconfiguration of removed slave interfaces Date: Wed, 23 Nov 2016 20:38:32 +0100 Message-ID: <1479929912-32079-4-git-send-email-jblunck@infradead.org> References: <1479929912-32079-1-git-send-email-jblunck@infradead.org> Cc: ferruh.yigit@intel.com, i.maximets@samsung.com, bruce.richardson@intel.com, declan.doherty@intel.com To: dev@dpdk.org Return-path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 94CCE5681 for ; Wed, 23 Nov 2016 20:40:05 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id u144so2958648wmu.0 for ; Wed, 23 Nov 2016 11:40:05 -0800 (PST) In-Reply-To: <1479929912-32079-1-git-send-email-jblunck@infradead.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 a80b6fa..e61afc9 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.7.4