Thanks Benoit, let me be more specific than last time -- Suppose my node is on the ip4-unicast feature arc and thus handling the packets from ip4-input, say I get a frame here of 25 packets. Now my node runs through these 25 packets, the first packet is special and needs to go out on priority so I enqueue it to interface output at L2 level like you said which is mighty fine. The node also finishes the rest of packets processing and pushes them all to ip4-lookup for further routing and sending. In this scenario is it guaranteed that the first packet would be sent out of the NIC first i.e. before the other 24 packets -- I am not aware of the entire mechanics of the scheduling out here, but if that's the net effect then that's exactly what I want.
Regards -Prashant On Thu, Jan 6, 2022 at 4:17 PM Benoit Ganne (bganne) <bga...@cisco.com> wrote: > > 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 (#20682): https://lists.fd.io/g/vpp-dev/message/20682 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] -=-=-=-=-=-=-=-=-=-=-=-