Hello,

I am trying to understand a piece of code that enqueues a frame to next-node.
But when a frame is traversing feature-nodes, I see the following boiler-plate 
code that seems to be sending the frames to two nodes at the same time.
Is my understanding correct?

218 #define 
vlib_validate_buffer_enqueue_x1(vm,node,next_index,to_next,n_left_to_next,bi0,next0)
 \
219 do {                          \
220   if (PREDICT_FALSE (next0 != next_index))            \
221     {                         \
222       vlib_put_next_frame (vm, node, next_index, n_left_to_next + 1);   \
223       next_index = next0;                 \
224       vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next); \
225                            \
226       to_next[0] = bi0;                   \
227       to_next += 1;                    \
228       n_left_to_next -= 1;                \
229     }                         \
230 } while (0)

If yes, why the frame needs to traverse two directions?    Should it not 
traverse only feature-arc?

Any pointers in understanding would really help.

Thanks,
Leela sankar
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12211): https://lists.fd.io/g/vpp-dev/message/12211
Mute This Topic: https://lists.fd.io/mt/29698182/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