public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ciara Loftus <ciara.loftus@intel.com>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH 1/2] net/iavf: use mbuf packet type instead of dynfield for LLDP
Date: Mon, 9 Feb 2026 16:10:40 +0000	[thread overview]
Message-ID: <aYoHAPSKLXs3m67F@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20260209152049.1640121-2-ciara.loftus@intel.com>

On Mon, Feb 09, 2026 at 03:20:48PM +0000, Ciara Loftus wrote:
> Instead of using a dynamic mbuf field to flag a packet as LLDP, instead
> utilise the mbuf packet type field as the identifier instead. If the
> type is RTE_PTYPE_L2_ETHER_LLDP the packet is identified as LLDP. This
> approach is preferable because the use of dynamic mbuf fields should be
> reserved for features that are not easily implemented using the existing
> mbuf infrastructure. No negative performance impacts were observed with
> the new approach.
> 
> Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>

For ABI compatibility, though, I think we need to keep the old method of
identifying LLDP packets there too. While I completely agree that using
packet types is the better approach, we need to go through a deprecation
process for the old dynamic field method, though.

> ---
>  doc/guides/nics/intel_vf.rst           | 16 +++++++++-------
>  doc/guides/rel_notes/release_26_03.rst |  1 +
>  drivers/net/intel/iavf/iavf_ethdev.c   | 13 ++++++++-----
>  drivers/net/intel/iavf/iavf_rxtx.c     |  3 +--
>  drivers/net/intel/iavf/iavf_rxtx.h     |  8 +++-----
>  drivers/net/intel/iavf/iavf_testpmd.c  | 20 +++++---------------
>  drivers/net/intel/iavf/rte_pmd_iavf.h  | 10 ++++++++++
>  7 files changed, 37 insertions(+), 34 deletions(-)
> 
> diff --git a/doc/guides/nics/intel_vf.rst b/doc/guides/nics/intel_vf.rst
> index bc600e4b58..197918b2e8 100644
> --- a/doc/guides/nics/intel_vf.rst
> +++ b/doc/guides/nics/intel_vf.rst
> @@ -668,19 +668,21 @@ Inline IPsec Support
>  Diagnostic Utilities
>  --------------------
>  

<snip>
>  

> +RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_pmd_iavf_enable_tx_lldp, 26.03)
> +void
> +rte_pmd_iavf_enable_tx_lldp(bool enable)
> +{
> +	iavf_tx_lldp_enabled = enable;
> +}
> +
Rather than a private function, this looks something that should be a
feature flag or capability somewhere, e.g. like TSO.

  reply	other threads:[~2026-02-09 16:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-09 15:20 [PATCH 0/2] iavf: use ptype for LLDP and add AVX2 ctx paths Ciara Loftus
2026-02-09 15:20 ` [PATCH 1/2] net/iavf: use mbuf packet type instead of dynfield for LLDP Ciara Loftus
2026-02-09 16:10   ` Bruce Richardson [this message]
2026-03-06 11:49     ` Loftus, Ciara
2026-02-09 15:20 ` [PATCH 2/2] net/iavf: add AVX2 context descriptor Tx paths Ciara Loftus
2026-03-06 11:52 ` [PATCH v2 0/3] iavf: LLDP ptype and AVX2 ctx paths Ciara Loftus
2026-03-06 11:52   ` [PATCH v2 1/3] net/iavf: support LLDP Tx based on mbuf ptype or dynfield Ciara Loftus
2026-03-06 11:52   ` [PATCH v2 2/3] net/iavf: add AVX2 context descriptor Tx paths Ciara Loftus
2026-03-06 11:52   ` [PATCH v2 3/3] doc: announce change to LLDP packet detection in iavf PMD Ciara Loftus

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=aYoHAPSKLXs3m67F@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=ciara.loftus@intel.com \
    --cc=dev@dpdk.org \
    /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