[dpdk-dev] [PATCH] net/bonding: fix reset active slave

Radu Nicolau radu.nicolau at intel.com
Mon Feb 18 16:58:15 CET 2019



On 2/18/2019 11:59 AM, Hari Kumar Vemula wrote:
> test_alb_reply_from_client test fails due to incorrect active slave
> array's index. This was due to invalid active slave count.
>
> Count of internals->active_slave is not updated even when active slave
> is deactivated.
> Hence active slave count always keeps incrementing beyond the actual
> active slaves.
>
> Fix is to set the internals->active_slave to starting index 0 whenever
> it exceeds the number of slaves in active slave list and also update
> the active slave count during slave de-activation.
>
> Fixes: e1110e977648 ("net/bonding: fix Rx slave fairness")
> Cc: stable at dpdk.org
>
> Signed-off-by: Hari Kumar Vemula <hari.kumarx.vemula at intel.com>
> ---
>
Acked-by: Radu Nicolau <radu.nicolau at intel.com 
<mailto:radu.nicolau at intel.com>>



More information about the dev mailing list