Re: [vpp-dev] Storing vlib buffer index for later processing

2020-04-17 Thread Klement Sekera via lists.fd.io
You can reference reassembly code, which does something similar.

e.g. ip4_sv_reass.c

HTH,
Klement

> On 17 Apr 2020, at 18:03, Satya Murthy  wrote:
> 
> Hi ,
> 
> We are having a scenario to support as below and we would like to know what 
> we are doing here is correct or not.
> 
> 1. Our graph node receives a frame with TWO buffers
> 2. Graph node decides to process FIRST buffer and enqueues the packet to a 
> next-node.
> 3. Graph node decides to store the SECOND buffer index to process it after 10 
> sec. Hence, it stores the second buffer index to a vector for later 
> processing.
> 4. Graph node returns a value of 2  ( Is this correct ? or do we need to 
> return 1, since one buffer we want to consume at a later point of time ?)
> 5. After 10 sec, we process the vector of buffer indices and process them to 
> send to another node. 
> 6. While sending to another node, we create a new frame and add this buffer 
> index to that.
>
> Basically, when a graph node want to consume a buffer for a later point of 
> time, is there anything specific we need to do ?
> Or is it just enough to store the buffer index for a later use.
> 
> Any inputs on this would help us in our design/implementation.
> 
> -- 
> Thanks & Regards,
> Murthy 

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

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


[vpp-dev] Storing vlib buffer index for later processing

2020-04-17 Thread Satya Murthy
Hi ,

We are having a scenario to support as below and we would like to know what we 
are doing here is correct or not.

1. Our graph node receives a frame with TWO buffers
2. Graph node decides to process FIRST buffer and enqueues the packet to a 
next-node.
3. Graph node decides to store the SECOND buffer index to process it after 10 
sec. Hence, it stores the second buffer index to a vector for later processing.
4. Graph node returns a value of 2  ( Is this correct ? or do we need to return 
1, since one buffer we want to consume at a later point of time ?)
5. After 10 sec, we process the vector of buffer indices and process them to 
send to another node.
6. While sending to another node, we create a new frame and add this buffer 
index to that.

Basically, when a graph node want to consume a buffer for a later point of 
time, is there anything specific we need to do ?
Or is it just enough to store the buffer index for a later use.

Any inputs on this would help us in our design/implementation.

--
Thanks & Regards,
Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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