[dpdk-dev] [dpdk-stable] [PATCH] net/bonding: ensure fairness among slaves

Luca Boccassi bluca at debian.org
Wed Sep 19 18:06:59 CEST 2018


On Wed, 2018-09-19 at 11:48 -0400, Chas Williams wrote:
> From: Chas Williams <chas3 at att.com>
> 
> Some PMDs, especially ones with vector receives, require a minimum
> number
> of receive buffers in order to receive any packets.  If the first
> slave
> read leaves less than this number available, a read from the next
> slave
> may return 0 implying that the slave doesn't have any packets which
> results in skipping over that slave as the next active slave.
> 
> To fix this, implement round robin for the slaves during receive that
> is only advanced to the next slave at the end of each receive burst.
> This should also provide some additional fairness in processing in
> bond_ethdev_rx_burst as well.
> 
> Fixes: 2efb58cbab6e ("bond: new link bonding library")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Chas Williams <chas3 at att.com>
> ---
>  drivers/net/bonding/rte_eth_bond_pmd.c | 50 ++++++++++++++++++++++
> ------------
>  1 file changed, 32 insertions(+), 18 deletions(-)

Acked-by: Luca Boccassi <bluca at debian.org>

-- 
Kind regards,
Luca Boccassi


More information about the dev mailing list