> Subject: [PATCH 12/13] net/intel: improve Tx path selection logic
> 
> Rework the relevant priority of context descriptor vs SIMD width when
> selecting a Tx path so that presence of context descriptors is only
> considered when all else is equal.
> 
> Normally, path select takes place without having to worry about context
> descriptors, since offloads requiring context descriptors are specified
> using the offloads bitmap for each Tx path. However, in some cases, the
> need to use a context descriptor is not encodable via this offload path,
> e.g. VLAN offload for iavf can sometimes use the data descriptor and
> sometimes the context depending on what PF specifies at runtime. To
> account for those cases, we separate out the use of contexts from the
> path features, but instead note it as part of the path information, and
> add an additional parameter to the Tx path selection for drivers to
> mandate a context descriptor be present. Otherwise, ctx is largely
> ignored in path selection, except as a last-resort tie-breaker between
> two paths.
> 
> Signed-off-by: Bruce Richardson <[email protected]>

Acked-by: Ciara Loftus <[email protected]>

> ---
>  drivers/net/intel/common/tx.h      | 41 +++++++++++++++++---------
>  drivers/net/intel/cpfl/cpfl_rxtx.c |  3 +-
>  drivers/net/intel/i40e/i40e_rxtx.c |  2 +-
>  drivers/net/intel/iavf/iavf_rxtx.c | 46 ++++++++++++++++--------------
>  drivers/net/intel/ice/ice_rxtx.c   |  3 +-
>  drivers/net/intel/idpf/idpf_rxtx.c |  3 +-
>  6 files changed, 58 insertions(+), 40 deletions(-)
> 

Reply via email to