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: [email protected]
>>
>>
>> [Patch] net/bonding: fix bond 8023ad mode enable using wrong index.
>> Signed-off-by: Lilijun <[email protected]>
Tested-by: Kyle Larose <[email protected]>
> Acked-by: Declan Doherty <[email protected]>
Applied to dpdk-next-net/master, thanks.