[PATCH 3/3] net/iavf: fix Tx path selection for VLAN offload

Bruce Richardson bruce.richardson at intel.com
Thu Sep 4 19:10:25 CEST 2025


On Thu, Sep 04, 2025 at 10:44:40AM +0000, Ciara Loftus wrote:
> For the vlan insert offload a different tx vector offload path is
> required depending on where the tag must be placed in the descriptor
> which can vary from one VF to another. Some VFs use the L2TAG2 field
> which requires the use of a context descriptor. Adjust the logic for
> selecting the tx path so that the correct path is used for each vlan tag
> location. Before this fix, if the tag was to be put in the L2TAG1 field,
> the scalar path was always used which was incorrect, because the AVX-512
> vector path also supports this offload.
> 
> Fixes: abca31f780e1 ("net/iavf: support VLAN insertion for the AVX-512 path")
> 
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> ---
>  drivers/net/intel/iavf/iavf_rxtx.h            |  1 -
>  drivers/net/intel/iavf/iavf_rxtx_vec_common.h | 23 +++++++++++--------
>  2 files changed, 13 insertions(+), 11 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Will squash into commit on next-net-intel


More information about the dev mailing list