[dpdk-dev] [PATCH] net/bonding: fix bond 8023ad mode enable using wrong index

Ferruh Yigit ferruh.yigit at intel.com
Fri Dec 15 21:48:35 CET 2017


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 at dpdk.org

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

Tested-by: Kyle Larose <klarose at sandvine.com>

> Acked-by: Declan Doherty <declan.doherty at intel.com>

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


More information about the dev mailing list