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: sta...@dpdk.org

>>
>>
>> [Patch] net/bonding: fix bond 8023ad mode enable using wrong index.
>> Signed-off-by: Lilijun <jerry.lili...@huawei.com>

Tested-by: Kyle Larose <klar...@sandvine.com>

> Acked-by: Declan Doherty <declan.dohe...@intel.com>

Applied to dpdk-next-net/master, thanks.

Reply via email to