DPDK patches and discussions
 help / color / mirror / Atom feed
* Reuse Of lcore after returning from its worker thread
@ 2022-04-20 12:22 Ansar Kannankattil
  2022-04-26 14:56 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Ansar Kannankattil @ 2022-04-20 12:22 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

Hi,
As per my understanding "*rte_eal_wait_lcore" *is a blocking call in case
of lcore state running.
1. Is there any direct way to reuse the lcore which we returned from a
worker thread?
2. Technically is there any issue in reusing the lcore by some means?

[-- Attachment #2: Type: text/html, Size: 1621 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reuse Of lcore after returning from its worker thread
  2022-04-20 12:22 Reuse Of lcore after returning from its worker thread Ansar Kannankattil
@ 2022-04-26 14:56 ` Stephen Hemminger
  2022-04-26 19:11   ` Ansar Kannankattil
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2022-04-26 14:56 UTC (permalink / raw)
  To: Ansar Kannankattil; +Cc: dev

On Wed, 20 Apr 2022 17:52:20 +0530
Ansar Kannankattil <ansarkannankat@gmail.com> wrote:

> Hi,
> As per my understanding "*rte_eal_wait_lcore" *is a blocking call in case
> of lcore state running.
> 1. Is there any direct way to reuse the lcore which we returned from a
> worker thread?
> 2. Technically is there any issue in reusing the lcore by some means?

Yes just relaunch with new work function.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reuse Of lcore after returning from its worker thread
  2022-04-26 14:56 ` Stephen Hemminger
@ 2022-04-26 19:11   ` Ansar Kannankattil
  0 siblings, 0 replies; 3+ messages in thread
From: Ansar Kannankattil @ 2022-04-26 19:11 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

But how the state is changed to WAIT once the worker thread function
returned

On Tue, 26 Apr, 2022, 8:26 pm Stephen Hemminger, <stephen@networkplumber.org>
wrote:

> On Wed, 20 Apr 2022 17:52:20 +0530
> Ansar Kannankattil <ansarkannankat@gmail.com> wrote:
>
> > Hi,
> > As per my understanding "*rte_eal_wait_lcore" *is a blocking call in case
> > of lcore state running.
> > 1. Is there any direct way to reuse the lcore which we returned from a
> > worker thread?
> > 2. Technically is there any issue in reusing the lcore by some means?
>
> Yes just relaunch with new work function.
>

[-- Attachment #2: Type: text/html, Size: 1003 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-28 12:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 12:22 Reuse Of lcore after returning from its worker thread Ansar Kannankattil
2022-04-26 14:56 ` Stephen Hemminger
2022-04-26 19:11   ` Ansar Kannankattil

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).