On Thu, Feb 24, 2022 at 3:19 PM Vamsi Attunuru <vattun...@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 <vattun...@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 <jer...@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 <vattun...@marvell.com> Acked-by: Jerin Jacob <jer...@marvell.com>