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 <[email protected]> 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 <[email protected]> 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: [email protected]
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11035): https://lists.fd.io/g/vpp-dev/message/11035
Mute This Topic: https://lists.fd.io/mt/27783711/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-