I'll bite __ why would you want to do that? 

/neale

-----Message d'origine-----
De : <vpp-dev@lists.fd.io> au nom de Prashant Upadhyaya <praupadhy...@gmail.com>
Date : lundi 4 mars 2019 à 16:06
À : "Dave Barach (dbarach)" <dbar...@cisco.com>
Cc : "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Objet : Re: [vpp-dev] Regarding node on a feature arc

    Thanks Dave, this is cool !
    
    Regards
    -Prashant
    
    
    On Mon, Mar 4, 2019 at 8:29 PM Dave Barach (dbarach) <dbar...@cisco.com> 
wrote:
    >
    > You have: vlib_node_runtime_t *node. Use n = vlib_get_node(vm, 
node->node_index) to recover the vlib_node_t.
    >
    > Index n->next_nodes to recover the node index 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 <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_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 as obtained from vnet_feature_next ?
    >
    > Regards
    > -Prashant
    

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12417): https://lists.fd.io/g/vpp-dev/message/12417
Mute This Topic: https://lists.fd.io/mt/30213927/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to