On Thu, Nov 06, 2025 at 11:50:13AM +0000, Ciara Loftus wrote:
> Commit 3aa4efa36438 ("net/iavf: support VLAN insertion in AVX512 Tx")
> re-enabled VLAN insertion on the AVX-512 path after it was disabled in
> commit efe1b63775e8 ("net/iavf: fix VLAN insertion in vector path"). The
> initial implementation introduced in commit 4f8259df563a ("net/iavf:
> enable Tx outer checksum offload on AVX512") was inconsistent in that if
> the vlan tag was to be placed in the L2TAG1 field, the offload was only
> performed if IAVF_TX_VLAN_QINQ_OFFLOAD was defined and if the path was
> an offload path. However if the vlan tag was to be placed in the L2TAG2
> field (requiring a context descriptor), the insert was performed
> unconditionally.
>
> When VLAN insertion was re-enabled, these inconsistencies remained. This
> commit fixes these and ensures the following two conditions are met
> before VLAN insert is offloaded on the AVX-512 path:
> 1. IAVF_TX_VLAN_QINQ_OFFLOAD is defined (defined by default)
> 2. The path is an "offload" path
>
> Fixes: 3aa4efa36438 ("net/iavf: support VLAN insertion in AVX512 Tx")
>
> Signed-off-by: Ciara Loftus <[email protected]>
> ---
Acked-by: Bruce Richardson <[email protected]>
- [PATCH v2 3/6] net/iavf: ensure correct conditions for AV... Ciara Loftus
- [PATCH v2 4/6] net/iavf: fix single VLAN insertion positi... Ciara Loftus
- [PATCH v2 5/6] net/iavf: fix QinQ insertion for single pa... Ciara Loftus
- [PATCH v2 6/6] net/iavf: fix QinQ insertion with mbuf fla... Ciara Loftus
- [PATCH v3 0/6] Fixes for iavf VLAN insertion offload Ciara Loftus
- [PATCH v3 2/6] net/iavf: remove duplication in AVX-5... Ciara Loftus
- Re: [PATCH v3 2/6] net/iavf: remove duplication ... Bruce Richardson
- [PATCH v3 1/6] net/iavf: fix compilation with VLAN i... Ciara Loftus
- Re: [PATCH v3 1/6] net/iavf: fix compilation wit... Bruce Richardson
- [PATCH v3 3/6] net/iavf: ensure correct conditions f... Ciara Loftus
- Re: [PATCH v3 3/6] net/iavf: ensure correct cond... Bruce Richardson
- [PATCH v3 4/6] net/iavf: fix single VLAN insertion p... Ciara Loftus
- Re: [PATCH v3 4/6] net/iavf: fix single VLAN ins... Bruce Richardson
- [PATCH v3 5/6] net/iavf: fix QinQ insertion for sing... Ciara Loftus
- Re: [PATCH v3 5/6] net/iavf: fix QinQ insertion ... Bruce Richardson
- [PATCH v3 6/6] net/iavf: fix QinQ insertion with mbu... Ciara Loftus
- Re: [PATCH v3 6/6] net/iavf: fix QinQ insertion ... Bruce Richardson
- Re: [PATCH v3 0/6] Fixes for iavf VLAN insertion off... Bruce Richardson

