From: Jerin Jacob <jerinjacobk@gmail.com>
To: Vamsi Attunuru <vattunuru@marvell.com>
Cc: dpdk-dev <dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>,
Nithin Dabilpuram <ndabilpuram@marvell.com>
Subject: Re: [PATCH v2 1/1] net/cnxk: support outbound soft expiry notification
Date: Fri, 25 Feb 2022 02:08:58 +0530 [thread overview]
Message-ID: <CALBAE1Nst6DUP2RtNbC66TfdDoHn3sevVXGkhGAd7kNeSRYxiQ@mail.gmail.com> (raw)
In-Reply-To: <20220224094931.1359968-1-vattunuru@marvell.com>
On Thu, Feb 24, 2022 at 3:19 PM Vamsi Attunuru <vattunuru@marvell.com> wrote:
>
> Patch implements soft expiry notification mechanism in outbound
> path by creating required number of ring buffers and a common poll
> thread which polls for soft expiry events enqueued by microcode.
>
> Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
> ---
> v2: fix subject and commit message.
> +static void *
> +nix_inl_outb_poll_thread(void *args)
> +{
> + struct nix_inl_dev *inl_dev = args;
> + uint32_t poll_freq;
> + uint32_t i;
> + bool bit;
> +
> + poll_freq = inl_dev->soft_exp_poll_freq;
> +
> + while (!soft_exp_poll_thread_exit) {
> + if (soft_exp_consumer_cnt) {
> + for (i = 0; i < ROC_NIX_INL_MAX_SOFT_EXP_RNGS; i++) {
> + bit = plt_bitmap_get(
> + inl_dev->soft_exp_ring_bmap, i);
> + if (bit)
> + inl_outb_soft_exp_poll(inl_dev, i);
> + }
> + }
> + plt_delay_us(poll_freq);
Changed delay to avoid wasting cycles as it is busy loop.
Acked-by: Jerin Jacob <jerinj@marvell.com>
Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks
net/cnxk: support outbound soft expiry notification
Add support for soft expiry notification mechanism in outbound
path by creating required number of ring buffers and a common poll
thread which polls for soft expiry events enqueued by microcode.
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
prev parent reply other threads:[~2022-02-24 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-24 6:10 [PATCH 1/1] net/cnxk: add outb soft expiry notification support Vamsi Attunuru
2022-02-24 8:01 ` Jerin Jacob
2022-02-24 9:49 ` [PATCH v2 1/1] net/cnxk: support outbound soft expiry notification Vamsi Attunuru
2022-02-24 20:38 ` Jerin Jacob [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=CALBAE1Nst6DUP2RtNbC66TfdDoHn3sevVXGkhGAd7kNeSRYxiQ@mail.gmail.com \
--to=jerinjacobk@gmail.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=vattunuru@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 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).