[ovs-dev] [PATCH v4 3/7] dpif-netdev: Sort PMD list by core id for rxq scheduling.

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


Hi Kevin,

<snipped>

> Subject: [PATCH v4 3/7] dpif-netdev: Sort PMD list by core id for rxq
> scheduling.
> 
> The list of PMDs is round robined through for the selection when assigning an
> rxq to a PMD. The list is based on a hash map, so there is no defined order.
> 
> It means the same set of PMDs may get assigned different rxqs on different
> runs for no reason other than how the PMDs are stored in the hash map.
> 
> This can be easily changed by sorting the PMDs by core id after they are
> extracted, so the PMDs will be used in a consistent order.
> 
> Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
> ---
>  lib/dpif-netdev.c | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)

<snipped>

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


More information about the dev mailing list