patches for DPDK stable branches
 help / color / mirror / Atom feed
From: "Zhang, Qi Z" <qi.z.zhang@intel.com>
To: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: RE: [PATCH] net/iavf: fix VLAN insertion in vector path
Date: Wed, 28 Jun 2023 06:57:19 +0000	[thread overview]
Message-ID: <DM4PR11MB5994AF27D0A65A1761E48F85D724A@DM4PR11MB5994.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1687310355-130696-1-git-send-email-wenzhuo.lu@intel.com>



> -----Original Message-----
> From: Wenzhuo Lu <wenzhuo.lu@intel.com>
> Sent: Wednesday, June 21, 2023 9:19 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; stable@dpdk.org
> Subject: [PATCH] net/iavf: fix VLAN insertion in vector path
>
> As the VLAN insertion is partially supported in vector path, the behavior is
> different in scalar and vector path.
> For a VLAN packet, if using scalar path, the new VLAN tag will be inserted after
> the original VLAN tag. If using vector path, the new VLAN tag is inserted before
> the original VLAN tag.
> To avoid any misleading, disable VLAN insertion in vector path.
>
> Fixes: 059f18ae2aec ("net/iavf: add offload path for Tx AVX512")
> Cc: stable@dpdk.org
>
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
> ---
>  drivers/net/iavf/iavf_rxtx.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index
> 547b68f..2459c15 100644
> --- a/drivers/net/iavf/iavf_rxtx.h
> +++ b/drivers/net/iavf/iavf_rxtx.h
> @@ -27,13 +27,13 @@
>  #define IAVF_VPMD_TX_MAX_FREE_BUF 64
>
>  #define IAVF_TX_NO_VECTOR_FLAGS (                             \
> +             RTE_ETH_TX_OFFLOAD_VLAN_INSERT |                 \
> +             RTE_ETH_TX_OFFLOAD_QINQ_INSERT |                 \
>               RTE_ETH_TX_OFFLOAD_MULTI_SEGS |          \
>               RTE_ETH_TX_OFFLOAD_TCP_TSO |             \
>               RTE_ETH_TX_OFFLOAD_SECURITY)
>
>  #define IAVF_TX_VECTOR_OFFLOAD (                              \
> -             RTE_ETH_TX_OFFLOAD_VLAN_INSERT |                 \
> -             RTE_ETH_TX_OFFLOAD_QINQ_INSERT |                 \
>               RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |          \
>               RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |          \
>               RTE_ETH_TX_OFFLOAD_UDP_CKSUM |           \
> --
> 1.8.3.1

We may need to update the iavf.ini to claim VLAN offload is partially supported to align with this implementation.

VLAN offload         = P

  reply	other threads:[~2023-06-28  6:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21  1:19 Wenzhuo Lu
2023-06-28  6:57 ` Zhang, Qi Z [this message]
2023-06-28  7:13   ` Lu, Wenzhuo
2023-06-28  8:59     ` Zhang, Qi Z
2023-06-29  0:16       ` Lu, Wenzhuo
2023-07-03  2:22 ` [PATCH v2] " Wenzhuo Lu
2023-07-03  6:47   ` Zhang, Qi Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM4PR11MB5994AF27D0A65A1761E48F85D724A@DM4PR11MB5994.namprd11.prod.outlook.com \
    --to=qi.z.zhang@intel.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    --cc=wenzhuo.lu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).