[ovs-dev] [PATCH v4 2/7] dpif-netdev: Make PMD auto load balance use common rxq scheduling.

Pai G, Sunil sunil.pai.g at intel.com
Fri Jul 9 11:06:06 UTC 2021


Hi Kevin,

<snipped>

> Subject: [PATCH v4 2/7] dpif-netdev: Make PMD auto load balance use
> common rxq scheduling.
> 
> PMD auto load balance had its own separate implementation of the rxq
> scheduling that it used for dry runs. This was done because previously the
> rxq scheduling was not made reusable for a dry run.
> 
> Apart from the code duplication (which is a good enough reason to replace it
> alone) this meant that if any further rxq scheduling changes or assignment
> types were added they would also have to be duplicated in the auto load
> balance code too.
> 
> This patch replaces the current PMD auto load balance rxq scheduling code to
> reuse the common rxq scheduling code.
> 
> The behaviour does not change from a user perspective, except the logs are
> updated to be more consistent.
> 
> As the dry run will compare the pmd load variances for current and estimated
> assignments, new functions are added to populate the current assignments
> and use the rxq scheduling data structs for variance calculations.
> 
> Now that the new rxq scheduling data structures are being used in PMD auto
> load balance, the older rr_* data structs and associated functions can be
> removed.
> 
> Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
> ---
>  lib/dpif-netdev.c | 508 +++++++++++++++-------------------------------
>  1 file changed, 161 insertions(+), 347 deletions(-)

<snipped>

LGTM.
Acked-by: Sunil Pai G <sunil.pai.g at intel.com>


More information about the dev mailing list