From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] net/bonding: fix bond 8023ad mode enable using wrong index Date: Fri, 15 Dec 2017 12:48:35 -0800 Message-ID: References: <40280F65B1B0B44E8089ED31C01616EBA357ADA1@dggeml509-mbx.china.huawei.com> <884f321f-6aac-2bf2-9388-09a5b75f6c50@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "Zhang, Jerry" , Wanghanlin To: "Doherty, Declan" , "Lilijun (Jerry)" , "dev@dpdk.org" , "tomaszx.kulasek@intel.com" Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B7B3C4B4B for ; Fri, 15 Dec 2017 21:48:38 +0100 (CET) In-Reply-To: <884f321f-6aac-2bf2-9388-09a5b75f6c50@intel.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 12/12/2017 7:58 AM, Doherty, Declan wrote: > On 20/11/2017 7:15 AM, Lilijun (Jerry) wrote: >> Hi all, >> >> In the function bond_mode_8023ad_enable(), the var i is to used to as the second parameter to pass the slave dev's dpdk port id to the function bond_mode_8023ad_activate_slave(). >> I think this variable is only a index for array internals->active_slaves. So its need to be fixed and change i to internals->active_slaves[i]. net/bonding: fix activated slave in 8023ad mode In the function bond_mode_8023ad_enable(), the var i is used as slave port id to the function bond_mode_8023ad_activate_slave(). This variable is only a index for array internals->active_slaves. So its need to be fixed and change i to internals->active_slaves[i]. Fixes: 46fb43683679 ("bond: add mode 4") Cc: stable@dpdk.org >> >> >> [Patch] net/bonding: fix bond 8023ad mode enable using wrong index. >> Signed-off-by: Lilijun Tested-by: Kyle Larose > Acked-by: Declan Doherty Applied to dpdk-next-net/master, thanks.