[PATCH v3 6/6] net/iavf: fix QinQ insertion with mbuf flags VLAN and QINQ

Bruce Richardson bruce.richardson at intel.com
Thu Nov 6 16:10:55 CET 2025


On Thu, Nov 06, 2025 at 11:50:16AM +0000, Ciara Loftus wrote:
> Fix an issue that would arise in the event an mbuf had both the VLAN and
> QINQ insertion offload flags set. In this case the L2TAG2 field would be
> written to twice and could cause the tag to be corrupted. Reorder the
> logic of populating the L2TAG2 field and ensure that the field is only
> written to once.
> 
> Fixes: 3aa4efa36438 ("net/iavf: support VLAN insertion in AVX512 Tx")
> 
> Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
> ---
>  drivers/net/intel/iavf/iavf_rxtx_vec_avx512.c | 26 +++++++++----------
>  drivers/net/intel/iavf/iavf_rxtx_vec_common.h |  9 +++----
>  2 files changed, 15 insertions(+), 20 deletions(-)
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list