From: Bruce Richardson <bruce.richardson@intel.com>
To: Shaiq Wani <shaiq.wani@intel.com>
Cc: <dev@dpdk.org>, <aman.deep.singh@intel.com>
Subject: Re: [PATCH v5 2/2] common/idpf: enable AVX2 for single queue Tx
Date: Mon, 10 Feb 2025 11:54:50 +0000 [thread overview]
Message-ID: <Z6npCsFlnhgmUfTr@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20250203075508.1304702-3-shaiq.wani@intel.com>
On Mon, Feb 03, 2025 at 01:25:08PM +0530, Shaiq Wani wrote:
> In case some CPUs don't support AVX512. Enable AVX2 for them to
> get better per-core performance.
>
> The single queue model processes all packets in order while
> the split queue model separates packet data and metadata into
> different queues for parallel processing and improved performance.
>
> Signed-off-by: Shaiq Wani <shaiq.wani@intel.com>
> ---
> doc/guides/nics/idpf.rst | 8 +-
> doc/guides/rel_notes/release_25_03.rst | 7 +
> drivers/common/idpf/idpf_common_device.h | 1 +
> drivers/common/idpf/idpf_common_rxtx.h | 4 +
> drivers/common/idpf/idpf_common_rxtx_avx2.c | 224 ++++++++++++++++++++
> drivers/common/idpf/version.map | 1 +
> drivers/net/intel/idpf/idpf_rxtx.c | 13 ++
> 7 files changed, 255 insertions(+), 3 deletions(-)
>
> diff --git a/doc/guides/nics/idpf.rst b/doc/guides/nics/idpf.rst
> index 0370989a07..90b651d193 100644
> --- a/doc/guides/nics/idpf.rst
> +++ b/doc/guides/nics/idpf.rst
<snip>
> +static __rte_always_inline int
> +idpf_singleq_tx_free_bufs_vec(struct idpf_tx_queue *txq)
> +{
> + struct idpf_tx_entry *txep;
> + uint32_t n;
> + uint32_t i;
> + int nb_free = 0;
> + struct rte_mbuf *m, *free[txq->rs_thresh];
> +
Use of these variable-length arrays is no longer allowed in DPDK. The
AVX512 equivalent of this code uses alloca, so will update this on apply to
match that.
/Bruce
next prev parent reply other threads:[~2025-02-10 11:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 12:17 [PATCH 0/2] enable AVX2 for IDPF single queue Shaiq Wani
2025-01-08 12:17 ` [PATCH 1/2] common/idpf: enable AVX2 for single queue Rx Shaiq Wani
2025-01-20 14:15 ` Bruce Richardson
2025-01-27 8:19 ` Wani, Shaiq
2025-01-29 12:18 ` [PATCH v2 0/3] enable AVX2 for single queue Rx/Tx Shaiq Wani
2025-01-29 12:18 ` [PATCH v2 1/3] common/idpf: enable AVX2 for single queue Rx Shaiq Wani
2025-01-29 16:48 ` Bruce Richardson
2025-01-30 8:24 ` [PATCH v3 0/2] enable AVX2 for single queue Rx/Tx Shaiq Wani
2025-01-30 8:24 ` [PATCH v3 1/2] common/idpf: enable AVX2 for single queue Rx Shaiq Wani
2025-01-30 8:21 ` David Marchand
2025-02-03 5:24 ` [PATCH v4 0/2] enable AVX2 for single queue Rx/Tx Shaiq Wani
2025-02-03 5:24 ` [PATCH v4 1/2] common/idpf: enable AVX2 for single queue Rx Shaiq Wani
2025-02-03 7:55 ` [PATCH v5 0/2] enable AVX2 for single queue Rx/Tx Shaiq Wani
2025-02-03 7:55 ` [PATCH v5 1/2] common/idpf: enable AVX2 for single queue Rx Shaiq Wani
2025-02-07 11:58 ` Bruce Richardson
2025-02-03 7:55 ` [PATCH v5 2/2] common/idpf: enable AVX2 for single queue Tx Shaiq Wani
2025-02-07 12:03 ` Bruce Richardson
2025-02-07 14:55 ` Wani, Shaiq
2025-02-07 15:09 ` Bruce Richardson
2025-02-10 11:54 ` Bruce Richardson [this message]
2025-02-10 11:58 ` [PATCH v5 0/2] enable AVX2 for single queue Rx/Tx Bruce Richardson
2025-02-03 5:24 ` [PATCH v4 2/2] common/idpf: enable AVX2 for single queue Tx Shaiq Wani
2025-01-30 8:24 ` [PATCH v3 " Shaiq Wani
2025-01-29 12:18 ` [PATCH v2 2/3] " Shaiq Wani
2025-01-29 16:53 ` Bruce Richardson
2025-01-29 12:18 ` [PATCH v2 3/3] doc: documentaion update for idpf pmd Shaiq Wani
2025-01-29 16:55 ` Bruce Richardson
2025-01-08 12:17 ` [PATCH 2/2] common/idpf: enable AVX2 for single queue Tx Shaiq Wani
2025-01-20 14:23 ` Bruce Richardson
2025-01-27 9:46 ` Wani, Shaiq
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=Z6npCsFlnhgmUfTr@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=aman.deep.singh@intel.com \
--cc=dev@dpdk.org \
--cc=shaiq.wani@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).