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 v2] net/intel: reduce size of common Tx queue struct
Date: Thu, 15 May 2025 15:24:28 +0100 [thread overview]
Message-ID: <aCX5HAL9CpIa9SsO@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20250515062130.1396060-1-shaiq.wani@intel.com>
On Thu, May 15, 2025 at 11:51:30AM +0530, Shaiq Wani wrote:
> Removed redundant and unused fields from the idpf pmd specific field
> in common Tx queue structure to reduce its memory footprint.
>
> Signed-off-by: Shaiq Wani <shaiq.wani@intel.com>
> ---
> drivers/net/intel/common/tx.h | 6 +--
> drivers/net/intel/cpfl/cpfl_ethdev.c | 6 ---
> drivers/net/intel/cpfl/cpfl_rxtx.c | 13 +------
> drivers/net/intel/idpf/idpf_common_rxtx.c | 34 ++---------------
> drivers/net/intel/idpf/idpf_common_rxtx.h | 7 ----
> .../net/intel/idpf/idpf_common_rxtx_avx512.c | 37 +++----------------
> drivers/net/intel/idpf/idpf_rxtx.c | 9 +----
> 7 files changed, 13 insertions(+), 99 deletions(-)
>
> diff --git a/drivers/net/intel/common/tx.h b/drivers/net/intel/common/tx.h
> index c99bd5420f..b0a68bae44 100644
> --- a/drivers/net/intel/common/tx.h
> +++ b/drivers/net/intel/common/tx.h
> @@ -106,16 +106,12 @@ struct ci_tx_queue {
> struct idpf_flex_tx_sched_desc *desc_ring;
> struct idpf_splitq_tx_compl_desc *compl_ring;
> };
> - const struct idpf_txq_ops *idpf_ops;
> struct ci_tx_queue *complq;
> void **txqs; /*only valid for split queue mode*/
> - bool q_started; /* if tx queue has been started */
> - /* only valid for split queue mode */
> uint32_t tx_start_qid;
> uint16_t sw_nb_desc;
> uint16_t sw_tail;
> -#define IDPF_TX_CTYPE_NUM 8
> - uint16_t ctype[IDPF_TX_CTYPE_NUM];
> + uint16_t rs_compl_count;
> uint8_t expected_gen_id;
> };
> };
Before:
(gdb) print /d sizeof(struct ci_tx_queue)
$1 = 160
After:
(gdb) print /d sizeof(struct ci_tx_queue)
$1 = 136
So a 15% saving, with a code size reduction of 86 lines too. Seems all good
to me!
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Pushed to dpdk-next-net-intel.
Thanks,
/Bruce
prev parent reply other threads:[~2025-05-15 14:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-14 12:57 [PATCH] " Shaiq Wani
2025-05-15 6:21 ` [PATCH v2] " Shaiq Wani
2025-05-15 14:24 ` Bruce Richardson [this message]
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=aCX5HAL9CpIa9SsO@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).