From: Ferruh Yigit Subject: Re: [dpdk-stable] [PATCH v2] net/bonding: don't clear active slave count Date: Thu, 5 Jul 2018 13:42:35 +0100 Message-ID: <0d12daeb-6884-a2c0-09f7-b56537246388@intel.com> References: <20180606122627.18418-1-3chas3@gmail.com> <20180704022832.18204-1-3chas3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: declan.doherty@intel.com, "Charles (Chas) Williams" , stable@dpdk.org To: Chas Williams <3chas3@gmail.com>, dev@dpdk.org Return-path: In-Reply-To: <20180704022832.18204-1-3chas3@gmail.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 7/4/2018 3:28 AM, Chas Williams wrote: > From: "Charles (Chas) Williams" > > When the bond PMD is stopped, the active slave count is reset. > For 802.3ad mode this potentially leaks memory and clears state since > a second sequential activate_slave() will occur when the bond PMD is > restarted and the LSC callback is triggered while the active slave > count is 0. To fix this, don't clear the active slave count when > stopping. Only deactivate_slave() should be used to clear the slaves. > > Fixes: 2efb58cbab6e ("bond: new link bonding library") > Cc: stable@dpdk.org > > Signed-off-by: Chas Williams Applied to dpdk-next-net/master, thanks.