Hi Damjan,
Thanks for your mail.
While the regular behavior is that all nodes run on same thread, it is
possible to offload some of the nodes to secondary threads via
handoff(*worker_handoff_node,
handoff_dispatch_node*) mechanism.
I did this between two fixed nodes and its working(node1 runs on worker1
and node2 runs on worker2).

My problem is to do this between any two nodes selected at runtime.

Best Regards,
Satish

On Mon, Jun 25, 2018 at 8:04 PM, Damjan Marion <dmar...@me.com> wrote:

>
> Dear Satish,
>
> Your question indicates what you are missing basic understanding of how
> VPP works (i.e. fact that all nodes are running on the same thread).
> I suggest that you go trough series of videos available on the youtube,
> some of them are explaining how that works.
>
> Regards,
>
> Damjan
>
> On 25 Jun 2018, at 14:47, satishp <satishpitchik...@gmail.com> wrote:
>
> Thanks Dave for your reply.
> Below is my usecase:
> Currently I have a single worker thread processing traffic. To scale the
> throughput, I would like to 'handoff' some packet processing to second
> worker thread. I would like to do this dynamically(i.e handoff packet from
> any node based on a cli command).
>
> For example:
> *node1(on worker 1) => handoff=> node2(on worker 2)*
>  node1, node2 are inputs to cli which should setup this flow.
>
> Currently, I was able to handoff between two fixed nodes(using readily
> available handoff nodes). I'm now trying to extend this to any two nodes.
>
> Best Regards,
> Satish
>
>
>
> On Mon, Jun 25, 2018 at 5:25 PM, Dave Barach (dbarach) <dbar...@cisco.com>
> wrote:
>
>> What you’re describing is at least marginally possible, but before I
>> describe how one might do such a thing I want to know why you plan to do
>> it. There are far less invasive techniques already available, e.g. for
>> adding features.
>>
>>
>>
>> HTH... Dave
>>
>>
>>
>> *From:* vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> *On Behalf Of *satish
>> pitchikala
>> *Sent:* Monday, June 25, 2018 2:30 AM
>> *To:* vpp-dev@lists.fd.io
>> *Subject:* [vpp-dev] Adding a node dynamically between any two nodes
>>
>>
>>
>> Hi,
>>
>> My requirement is to add a node at runtime between any two nodes.
>> Addition is to be done via cli.
>>
>>
>>
>> eg:* set handoff node1 node2*
>>
>>
>>
>> 1. This should create a node by name *node1_handoff_node2.*
>>
>> 2.* node1_handoff_node2* previous node should be *node1*
>>
>> 3. *node1_handoff_node2*  next node should be *node2*
>>
>>
>>
>> I tried using VLIB_NODE_TYPE_PROCESS to create a node inside cli It
>> creates a node but couldn't insert it between node 1 and node 2.
>>
>>
>>
>> Request for some pointers in this regard.
>>
>>
>>
>> Best Regards,
>>
>> Satish P
>>
>>
> 
>
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9693): https://lists.fd.io/g/vpp-dev/message/9693
Mute This Topic: https://lists.fd.io/mt/22674708/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to