Hi, I am trying to walk throught the code to see how the packet arrives into the system at dpdk rx side and finally leaves it at the dpdk tx side. I am using the context of the macswap sample plugin for this.
It is clear to me that dpdk-input is a graph node and it is an 'input' type graph node so it polls for the packets using dpdk functions. The frame is then eventually passed to the sample plugin because the sample plugin inserts itself at the right place. The sample plugin queues the packets to the interface-output graph node. So now I check the interface-output graph node function. I locate that in vpp/src/vnet/interface_output.c So the dispatch function for the graph node is vnet_per_buffer_interface_output Here the interface-output node is queueing the packets to a next node based on the following code -- hi0 = vnet_get_sup_hw_interface (vnm, vnet_buffer (b0)->sw_if_index [VLIB_TX]); next0 = hi0->output_node_next_index; Now I am a little lost, what is this output_node_next_index ? Which graph node function is really called for really emitting the packet ? Where exactly is this setup ? I do see that the actual dpdk tx burst function is called from tx_burst_vector_internal, which itself is called from dpdk_interface_tx (vpp/src/plugins/dpdk/device/device.c). But how the code reaches the dpdk_interface_tx after the packets are queued from interface-output graph node is not clear to me. If somebody could help me connect the dots, that would be great. Regards -Prashant -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9244): https://lists.fd.io/g/vpp-dev/message/9244 View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/19023164 Mute This Topic: https://lists.fd.io/mt/19023164/21656 New Topic: https://lists.fd.io/g/vpp-dev/post Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656 Group Home: https://lists.fd.io/g/vpp-dev Contact Group Owner: vpp-dev+ow...@lists.fd.io Terms of Service: https://lists.fd.io/static/tos Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub -=-=-=-=-=-=-=-=-=-=-=-