From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id C1A78558D; Thu, 24 Nov 2016 12:35:43 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id a20so4726672wme.2; Thu, 24 Nov 2016 03:35:43 -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=RIMsOFTbWI2+iEkdJaeE+gnDuOFEOav2jJ9KOVKsuHR1eiJERNvw/JWHEv/2v7y9zs QnmsybCy+ttjppuWVqY393PF2lXRhVFQ7jKuZfKH3NCAAlWQ1sRpm3ZdcarbqYH5uSEv K+azpTwqRWNcRCjHyNqaooqYjlod6WBkEn2WrsH0pSScpM2Cm3KTA7p8sXk97gDdH6Sn X7KeCjK/9P9brrYHPiwx3ef+F6IKWTem5Z0yZGGJ1xH7GWXf0aFOeMiZ9Vzg1QR5lLfn QgLz0lyP8aVfxc8tjTdrEy4BQlp6IdyRAJXiV3e26v0Zat7q4sL5jp/oUUY/8WSomqO9 UupQ== 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=VtvyNPpP63/TPkvzm6wuxT6LtjOAzaLZpIgpizZky30QDdMkYhB3niD5NfN/QTKMj3 O6u+z65X+UjRASdevViyl4D5E+Fh/QkV6+fI/aQrZNMBKpnmiPgcUCogmtIPWotJqHNF bOBh+9yWIsqdGZ5hLcNHCejF9KDnFoa8XU79gGqFDe1nbDkw6B49VClSS/YfZiR70cul YKy+u+mzOEq9AJ4d6MjyZM9/rPWFkL/7FZsUh4xDakypi2DLG8ji3O+NlaJWZFw1SPg5 uLoLAuHZhK7dhvIm8IQ9npKEmE11Z4/n8AFx4+k7XHTJ2smMt3DG4SMSpdREdf9IvDLg 59mg== X-Gm-Message-State: AKaTC01s+qC90CuabgQ6ylU0VKXEFe+Nzlx5DM+5OEaWafvT2RQJhya89oVvv5WcmRs3UA== X-Received: by 10.28.15.138 with SMTP id 132mr1761205wmp.41.1479987343474; Thu, 24 Nov 2016 03:35:43 -0800 (PST) Received: from weierstrass.local.net ([91.200.110.70]) by smtp.gmail.com with ESMTPSA id l74sm7786020wmg.2.2016.11.24.03.35.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2016 03:35:42 -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, ehkinzie@gmail.com, bernard.iremonger@intel.com, stable@dpdk.org Date: Thu, 24 Nov 2016 12:26:48 +0100 Message-Id: <1479986809-14934-5-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479986809-14934-1-git-send-email-jblunck@infradead.org> References: <1479986809-14934-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 4/5] net/bonding: 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: Thu, 24 Nov 2016 11:35:44 -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