[PATCH v2 1/1] net/cnxk: support outbound soft expiry notification
Jerin Jacob
jerinjacobk at gmail.com
Thu Feb 24 21:38:58 CET 2022
On Thu, Feb 24, 2022 at 3:19 PM Vamsi Attunuru <vattunuru at 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 at 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 at 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 at marvell.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
More information about the dev
mailing list