It would help to describe the problem at a higher level. First question: why pass packets to a process node?
From: [email protected] <[email protected]> On Behalf Of Jacques Samain via Lists.Fd.Io Sent: Monday, October 14, 2019 11:02 AM To: [email protected] Cc: [email protected] Subject: [vpp-dev] What is the best way to pass packets from an internal node to a process node? Hello, I am trying to pass packets from an internal node (running on a worker thread) to a process node, and I am looking for the best way to do that. Currently, I have a pool of arrays that is shared between the two nodes (using a spinlock for pool_get and pool_put). In the internal node, I copy each packet of a frame to one of the array of the pool (pool_get) and then pass this array to the process node, using vlib_process_signal_event_mt. In the process node, I do some processing on the packets and then release the array (pool_put). Is there a better way of doing this, without spinlocks for example? Thanks, Jacques
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14173): https://lists.fd.io/g/vpp-dev/message/14173 Mute This Topic: https://lists.fd.io/mt/34534267/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
