Hi, I am writing a plugin node which will get packets the usual way. I will pipeline these packets between my worker threads (in the same plugin node) using the handoff mechanism available.
Thus, when my plugin node gets a packet, it could have been from an internal handoff from one of my workers or it could be from anywhere else (eg. ip4-input). Question is, how can I safely distinguish what kind of a packet it is i.e. is it coming because of handoff or from an external node not due to a handoff ? It is clear that I can setup one of the opaque fields of vlib_buffer_t to some non zero custom values when I do internal handoff and then inspect at packet reception at my node. I will also set these back to zero when I am sending the packet to any other node. But are they guaranteed to be zero when the packet originates from the dpdk plugin and then via traversal eventually lands up at my node for the first time ? Regards -Prashant
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11085): https://lists.fd.io/g/vpp-dev/message/11085 Mute This Topic: https://lists.fd.io/mt/27845920/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-