From: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
To: skori@marvell.com, Thomas Monjalon <thomas@monjalon.net>,
Ferruh Yigit <ferruh.yigit@amd.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH v2 2/2] ethdev: remove callback checks from fast path
Date: Sat, 26 Jul 2025 12:15:50 +0300 [thread overview]
Message-ID: <fb47cc2e-17a2-4e75-8adb-54933a756d00@oktetlabs.ru> (raw)
In-Reply-To: <20250512150732.65743-2-skori@marvell.com>
On 5/12/25 18:07, skori@marvell.com wrote:
> From: Sunil Kumar Kori <skori@marvell.com>
>
> rte_eth_fp_ops contains ops for fast path APIs. Each API
> validates availability of callback and then invoke it.
> These checks impact data path performace.
>
> Hence removing these NULL checks instead using dummy
> callbacks.
>
> Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
with few nits fixed (see below):
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
[snip]
> diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h
> index 2b4d2ae9c3..71085bddff 100644
> --- a/lib/ethdev/ethdev_driver.h
> +++ b/lib/ethdev/ethdev_driver.h
> @@ -1874,6 +1874,77 @@ rte_eth_pkt_burst_dummy(void *queue __rte_unused,
> struct rte_mbuf **pkts __rte_unused,
> uint16_t nb_pkts __rte_unused);
>
> +/**
> + * @internal
> + * Dummy DPDK callback for Tx packet prepare.
> + *
> + * @param queue
> + * Pointer to Tx queue
> + * @param pkts
> + * Packet array
> + * @param nb_pkts
> + * Number of packets in packet array
Such descriptions do not help. Please, document return value since it is
always the same.
Fix all descriptions in the patch.
next prev parent reply other threads:[~2025-07-26 9:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-29 18:11 [PATCH] " skori
2025-04-29 23:55 ` Stephen Hemminger
2025-04-29 23:59 ` Stephen Hemminger
2025-04-30 7:26 ` Morten Brørup
2025-05-12 15:07 ` [PATCH v2 1/2] ethdev: remove unnecessary type conversion skori
2025-05-12 15:07 ` [PATCH v2 2/2] ethdev: remove callback checks from fast path skori
2025-05-12 16:12 ` Morten Brørup
2025-05-28 9:35 ` Morten Brørup
2025-06-10 5:11 ` Sunil Kumar Kori
2025-06-16 8:36 ` Sunil Kumar Kori
2025-06-16 14:30 ` Morten Brørup
2025-07-26 9:09 ` Andrew Rybchenko
2025-07-26 9:15 ` Andrew Rybchenko [this message]
2025-05-12 16:04 ` [PATCH v2 1/2] ethdev: remove unnecessary type conversion Morten Brørup
2025-07-26 8:44 ` Andrew Rybchenko
2025-05-27 15:07 ` Stephen Hemminger
2025-05-27 16:24 ` Morten Brørup
2025-05-28 8:17 ` Konstantin Ananyev
2025-05-28 8:23 ` Konstantin Ananyev
2025-05-28 8:48 ` Morten Brørup
2025-05-28 9:14 ` Konstantin Ananyev
2025-05-28 9:39 ` Morten Brørup
2025-05-26 12:30 ` [EXTERNAL] [PATCH] ethdev: remove callback checks from fast path Jerin Jacob
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=fb47cc2e-17a2-4e75-8adb-54933a756d00@oktetlabs.ru \
--to=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@amd.com \
--cc=skori@marvell.com \
--cc=thomas@monjalon.net \
/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).