Depends upon what you mean by "right now". The normal way to send a packet out in VPP is to just put the buffers to the interface-output node with vlib_buffer_t.sw_if_index[VLIB_TX] set to the correct interface. There will be some latency, as the interface-output node and then the drivers node must run afterwards, but you'll skip any other nodes (eg. let's say you're on the device-input feature arc and you want to skip the whole L3 path - ip4-lookup and friends).
Best ben > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Prashant > Upadhyaya > Sent: jeudi 6 janvier 2022 11:31 > To: vpp-dev <vpp-dev@lists.fd.io> > Subject: [vpp-dev] Prioritized packet sending > > Hi, > > Assume we are inside the code of a node in a plugin on a worker. > Normally we would do the packet processing the usual way, enqueue the > packets to various other nodes and return and the graph scheduler > would send the packets out as normal dispatch logic. > But what if from my node code, I want to send a packet out the NIC > like right now ? We can assume that I have the fully constructed L2 > packet with me. Is it possible to achieve this somehow from the plugin > node code so that this packet goes out right away and the rest of the > packets undergo the normal dispatch logic ? > > Regards > -Prashant
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20681): https://lists.fd.io/g/vpp-dev/message/20681 Mute This Topic: https://lists.fd.io/mt/88234983/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-