Re: [vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Dave Barach via Lists.Fd.Io
Message- From: Prashant Upadhyaya Sent: Monday, March 4, 2019 1:21 PM To: Neale Ranns (nranns) Cc: Dave Barach (dbarach) ; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Regarding node on a feature arc Hi Neale, In one of the usecases I deviated from the normal boilerplate and started getting

Re: [vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Prashant Upadhyaya
> > Date : lundi 4 mars 2019 à 16:06 > À : "Dave Barach (dbarach)" > Cc : "vpp-dev@lists.fd.io" > Objet : Re: [vpp-dev] Regarding node on a feature arc > > Thanks Dave, this is cool ! > > Regards > -Prashant > > > On Mon,

Re: [vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Neale Ranns via Lists.Fd.Io
I'll bite __ why would you want to do that? /neale -Message d'origine- De : au nom de Prashant Upadhyaya Date : lundi 4 mars 2019 à 16:06 À : "Dave Barach (dbarach)" Cc : "vpp-dev@lists.fd.io" Objet : Re: [vpp-dev] Regarding node on a feature arc

Re: [vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Prashant Upadhyaya
corresponding to the next index > you have in mind: nNext = vlib_get_node (vm, n->next_nodes[i]) > > HTH... Dave > > -Original Message- > From: vpp-dev@lists.fd.io On Behalf Of Prashant > Upadhyaya > Sent: Monday, March 4, 2019 9:29 AM > To: vpp-dev@lists.fd.

Re: [vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Dave Barach via Lists.Fd.Io
l Message- From: vpp-dev@lists.fd.io On Behalf Of Prashant Upadhyaya Sent: Monday, March 4, 2019 9:29 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] Regarding node on a feature arc Hi, When a node is on a feature arc, a good practice for that node is to inspect the next feature with vnet_feature_nex

[vpp-dev] Regarding node on a feature arc

2019-03-04 Thread Prashant Upadhyaya
Hi, When a node is on a feature arc, a good practice for that node is to inspect the next feature with vnet_feature_next, obtain the next0 from that and send the packets to the next0. All this works properly. My question -- how can I obtain the true vlib_node_t pointer corresponding to the next0