Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-18 Thread Damjan Marion

If software RSS is not available or not sufficient  you can use vpp worker 
handoff infrastructure.
See "set interface handoff" command. Same infra can be used for your own nodes 
(i.e. NAT plugin is using it).

-- 
Damjan

> On 18 Apr 2018, at 09:53, tieudaotu...@gmail.com wrote:
> 
> More than one worker thread.
> I dig in deep and I know that when enable handoff feature, "worker thread 
> read from dpdk-input after that, it will also redirect packet to frame queue 
> for appropriate worker thread queue based on hash key function". That is why 
> i'm said worker thread is io threads also.
> 
> Of course, I know that RSS feature, but it depends on the NIC feature.
> --> Supporting RSS software (using IO thread) on NIC without RSS feature and 
> I can enable if needed.
> 



Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-18 Thread tieudaotu137
More than one worker thread.
I dig in deep and I know that when enable handoff feature, "worker thread read 
from dpdk-input after that, it will also redirect packet to frame queue for 
appropriate worker thread queue based on hash key function". That is why i'm 
said worker thread is io threads also.

Of course, I know that RSS feature, but it depends on the NIC feature.
--> Supporting RSS software (using IO thread) on NIC without RSS feature and I 
can enable if needed.


Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-18 Thread Avinash Gonsalves
Worker Thread is your IO thread? How many worker-threads have you enabled?
If you're flow based, you might want to explore the RSS feature
https://wiki.fd.io/view/VPP/Using_VPP_In_A_Multi-thread_Model



On Wed, Apr 18, 2018 at 9:16 AM,  wrote:

> Thanks Damjan, Avinash
>
> I just want the packet flow always goes directly to the same worker
> thread. And I think that it should use io thread to redirect packet of the
> flow to an appropriate worker thread.
> has that already existed in vpp?  Damjan, Could you tell me how can i do
> that?
>
> I follow Avinash's answer and enable handoff_worker feature,  I find out
> worker thread is my needed io thread also, i am wrong?
> Any help will be highly appreciated!
> 
>
>


Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-17 Thread tieudaotu137
Thanks Damjan, Avinash

I just want the packet flow always goes directly to the same worker thread. And 
I think that it should use io thread to redirect packet of the flow to an 
appropriate worker thread.
has that already existed in vpp?  Damjan, Could you tell me how can i do that?

I follow Avinash's answer and enable handoff_worker feature,  I find out worker 
thread is my needed io thread also, i am wrong?
Any help will be highly appreciated!


Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-17 Thread Damjan Marion

Deprecated long time ago, but we have similar mechanisms.

Please describe your use case...

-- 
Damjan

> On 17 Apr 2018, at 11:41, Avinash Gonsalves  
> wrote:
> 
> If i'm not mistaken i think the io is supported by a cli, have a look if this 
> is what you're looking for.
> > set interface  handoff  ...
> 
> On Tue, Apr 17, 2018 at 8:18 AM,  > wrote:
> Hello, 
> 
> I have watched the series CodeWalkingThrough video on their Youtube channel 
> and it show me some configuration about the IO thread,
> But currently, I dig the vpp's source(v18.04). I couldn't find anything about 
> the IO thread,
> Does VPP multi-thread model support the IO thread?
> Could you tell me is that IO thread exists in the lastest release? If it 
> does, how can I configure and run?
> 
> 
> 
> 
> 
> 



Re: [vpp-dev] vpp io Multi-thread Model #vpp

2018-04-17 Thread Avinash Gonsalves
If i'm not mistaken i think the io is supported by a cli, have a look if
this is what you're looking for.
> set interface  handoff  ...

On Tue, Apr 17, 2018 at 8:18 AM,  wrote:

> Hello,
>
> I have watched the series CodeWalkingThrough video on their Youtube
> channel and it show me some configuration about the IO thread,
> But currently, I dig the vpp's source(v18.04). I couldn't find anything
> about the IO thread,
> Does VPP multi-thread model support the IO thread?
> Could you tell me is that IO thread exists in the lastest release? If it
> does, how can I configure and run?
> 
>
>


[vpp-dev] vpp io Multi-thread Model #vpp

2018-04-16 Thread tieudaotu137
Hello,

I have watched the series CodeWalkingThrough video on their Youtube channel and 
it show me some configuration about the IO thread,
But currently, I dig the vpp's source(v18.04). I couldn't find anything about 
the IO thread,
Does VPP multi-thread model support the IO thread?
Could you tell me is that IO thread exists in the lastest release? If it does, 
how can I configure and run?