From: Stephen Hemminger <stephen@networkplumber.org>
To: Nawal Kishor <nkishor@marvell.com>
Cc: <dev@dpdk.org>, Ashwin Sekhar T K <asekhar@marvell.com>,
Pavan Nikhilesh <pbhagavatula@marvell.com>, <jerinj@marvell.com>
Subject: Re: [PATCH v4 2/2] mempool/cnxk: add halo support in mempool
Date: Thu, 19 Feb 2026 09:33:41 -0800 [thread overview]
Message-ID: <20260219093341.3f6bb261@phoenix.local> (raw)
In-Reply-To: <20260217103932.679806-3-nkishor@marvell.com>
On Tue, 17 Feb 2026 16:09:22 +0530
Nawal Kishor <nkishor@marvell.com> wrote:
> +static struct rte_mempool_ops cn20k_mempool_ops = {
> + .name = "cn20k_mempool_ops",
> + .alloc = cn20k_mempool_alloc,
> + .free = cn10k_mempool_free,
> + .enqueue = cn10k_mempool_enq,
> + .dequeue = cn10k_mempool_deq,
> + .get_count = cn10k_mempool_get_count,
> + .calc_mem_size = cnxk_mempool_calc_mem_size,
> + .populate = cnxk_mempool_populate,
> +};
> +
If possible ops structures should be const to protect from modification.
> +static int
> +parse_halo_ena_handler(const char *key, const char *value, void *extra_args)
> +{
> + RTE_SET_USED(key);
Prefer __rte_unused attribute
> + uint8_t val;
> +
> + val = atoi(value);
> + if (val != 0 && val != 1)
> + return -EINVAL;
> +
> + *(uint8_t *)extra_args = val;
> + return 0;
> +}
Using atoi() allows non-string values. You should be using a more robust handler.
Actually kvargs should have handlers for common types, but that is an enhancement.
next prev parent reply other threads:[~2026-02-19 17:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 6:51 [PATCH 0/2] cnxk: Add HALO support for CN20K mempool Nawal Kishor
2025-12-04 6:51 ` [PATCH 1/2] common/cnxk: add support for halos Nawal Kishor
2025-12-05 5:51 ` [PATCH v2 0/2] cnxk: add HALO support for CN20K mempool Nawal Kishor
2025-12-05 5:51 ` [PATCH v2 1/2] common/cnxk: add support for halos Nawal Kishor
2025-12-05 5:51 ` [PATCH v2 2/2] mempool/cnxk: add halo support in mempool Nawal Kishor
2026-02-17 5:34 ` [PATCH v3 0/2] Add HALO support for CN20K mempool Nawal Kishor
2026-02-17 5:34 ` [PATCH v3 1/2] common/cnxk: add support for halos Nawal Kishor
2026-02-17 5:34 ` [PATCH v3 2/2] mempool/cnxk: add halo support in mempool Nawal Kishor
2026-02-17 8:43 ` [PATCH v3 0/2] Add HALO support for CN20K mempool Jerin Jacob
2026-02-17 10:39 ` [PATCH v4 " Nawal Kishor
2026-02-17 10:39 ` [PATCH v4 1/2] common/cnxk: add support for halos Nawal Kishor
2026-02-19 17:19 ` Stephen Hemminger
2026-02-17 10:39 ` [PATCH v4 2/2] mempool/cnxk: add halo support in mempool Nawal Kishor
2026-02-19 17:33 ` Stephen Hemminger [this message]
2026-01-14 6:04 ` [PATCH v2 0/2] cnxk: add HALO support for CN20K mempool Stephen Hemminger
2026-01-14 7:52 ` Morten Brørup
2026-01-19 5:21 ` [EXTERNAL] " Nawal Kishor
2025-12-04 6:51 ` [PATCH 2/2] mempool/cnxk: add halo support in mempool Nawal Kishor
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=20260219093341.3f6bb261@phoenix.local \
--to=stephen@networkplumber.org \
--cc=asekhar@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=nkishor@marvell.com \
--cc=pbhagavatula@marvell.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.