From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DHhFaCcIMJ6SQFDsXPrXXKrS0XOP6ABmIg/3ooo0q8U=; b=VVkbehLLjUxiGf0VkCQgLPkt57zL9ratmKlWI0N07ApwlWidZuax2W/8eb3HWVuAVw 9VvIipxxPlOLXdZACiyO2MlLJpUwqo9KOB+77hn4bA+oFepZ8c2DZw0GD/Xy6wfrkFby muu0K6oDl6EUaJCaJT1QWyys1ixudxcVwlh0ACBb+mjxuJtUtMvkPILraZGPOqNTOIAI RncsCAhZPmOaCDWpuFpV/PVa6W+15GryxadhaYK3VGHnLZbxFC7kFeXt2pNi0YMnj09G 9PHIhDhl0wI40YzBi3l7sWO4YnKHt2yVUjOCDayBhdiNfpLItz+5vHqv92lux8ktotRL gk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DHhFaCcIMJ6SQFDsXPrXXKrS0XOP6ABmIg/3ooo0q8U=; b=hYX5D/lIeMUCmfzEybHEf8CadZRXJyyj3hphdd9LilNxOxIvNNt8ligoUXfHsVgNMY pCR6W+1EacPm78Eg95BvkwsIytzFuTq0qa1o34Mi4XfUy+usS/wEhEaLcWhuV8MFUnbX ey1rMEEngREE+MXicExYT/cSt14eFe5LgCHi9jfsgbpSyMDbdufViFoWXB7ONv3O7zDK 9w+iiDtjO7eEUqw8gLEJOFfPN9L6Rqr14Tmf2ZELcBYALJOrT94E9gTLiQleVmPRUjtd OVnp//7x+Ezukx2tmGCuX8WWyq8r0LS9ok9EUTj60jcwg9hbhWgxjCGdoZEXnNmnyrvD IHdQ== X-Gm-Message-State: AKaTC01yolRG7MzpP9Z8M3+u3EwZkB/qd85pRET0qvetQOk8h/+IYVSVbagmH0G6Yp9CGA== X-Received: by 10.28.24.67 with SMTP id 64mr8515007wmy.136.1479930005292; Wed, 23 Nov 2016 11:40:05 -0800 (PST) Received: from weierstrass.local.net ([91.200.110.70]) by smtp.gmail.com with ESMTPSA id g184sm4339684wme.23.2016.11.23.11.40.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 11:40:04 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: ferruh.yigit@intel.com, i.maximets@samsung.com, bruce.richardson@intel.com, declan.doherty@intel.com Date: Wed, 23 Nov 2016 20:38:32 +0100 Message-Id: <1479929912-32079-4-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479929912-32079-1-git-send-email-jblunck@infradead.org> References: <1479929912-32079-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH 4/4] bond: Force reconfiguration of removed slave interfaces X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2016 19:40:05 -0000 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