When you register a feature node on the "device-input" arc, that node will receive EVERY packet on all interfaces which have the feature enabled...
-----Original Message----- From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Prashant Upadhyaya Sent: Monday, October 29, 2018 10:11 PM To: Damjan Marion <dmar...@me.com> Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Snooping non-IP packets Thanks Damjan ! Just to be sure, when I use the device-input feature arc thus -- VNET_FEATURE_INIT (myfeature, static) = { .arc_name = "device-input", .node_name = "mynode", .runs_before = VNET_FEATURES ("ethernet-input"), }; I get to see only the non-IP packets inside mynode, is that correct ? I do get your point about sub-interfacing and that is fine. Do the IPv4 and IPv6 packets go directly from dpdk-input to ip4-input and ip6-input, just to be sure ? I also see a wiki link https://wiki.fd.io/view/VPP/Feature_Arcs It is mentioned there how to setup the next0 in mynode. I suppose doing a call to vnet_feature_next is a shortcut. Perhaps the wiki can mention that I think. Regards -Prashant Regards -Prashant On Mon, Oct 29, 2018 at 11:31 PM Damjan Marion <dmar...@me.com> wrote: > > > Yes, you can just use device-input feature arc instead. > > Please note that packets on that arc are not (optionally) assigned to > sub-interfaces yet. > So if you have vlan subinterface, packets will show up as main > interface packets and with original l2 header. > > -- > Damjan > > On 29 Oct 2018, at 18:22, Prashant Upadhyaya <praupadhy...@gmail.com> wrote: > > Hi, > > I am using DPDK Plugin > I want to write a node which will get to observe all the non-IP packets. > By observe, I mean that I want my node to see the non-IP packets, but > when I return from my node, the packets should traverse the original > graph of VPP which they would have followed had my node not been > there. > > I am wondering what's the best way to achieve the above. > I have done VNET_FEATURE_INIT before using which eg. I got to observe > all the IPv4 packets by making my feature node sit on the ip4-unicast > arc and running before ip4-lookup. > > Can I do something similar for my requirement of observing all the > non-IP packets in a similar way or some other way, any advice would be > helpful. > > Regards > -Prashant > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#11021): > https://lists.fd.io/g/vpp-dev/message/11021 > Mute This Topic: https://lists.fd.io/mt/27783711/675642 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [dmar...@me.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11037): https://lists.fd.io/g/vpp-dev/message/11037 Mute This Topic: https://lists.fd.io/mt/27783711/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-