VLIB_TX setup issues can be caught with a Python test that plugins write. It would be good to write a Python test for your plugin and flush out interface-output issues. Several plugins in src/plugins/ directory include a "test" directory which has Python code. You can run an existing test using "sudo make test TEST=test_cdp" where "cdp" is a plugin whose "test" directory includes a test_cdp.py.
Hemant From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Neale Ranns Sent: Friday, January 08, 2021 11:14 AM To: merveorakc...@gmail.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] VPP New Plugin-Packet Forwarding Hi, In addition to defining what the next-node is, you need to be sure that your node sets all the necessary buffer meta data that the next node will use. For example interface-output expects that vnet_buffer(b)->sw_if_index[VLIB_TX] is set to the interface to transmit on. /neale From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > Date: Friday, 8 January 2021 at 11:45 To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > Subject: [vpp-dev] VPP New Plugin-Packet Forwarding Hi everyone, I added a new node to vpp and passed packets through this node during packet forwarding. Packet forwarding is between Trex and VPP. My packets passing through the new node were forwarded to vpp, but the packet transmission was not continued. There is no problem transmitting packets that I have not passed through my node. For my new node, my packets that appeared as black holes were not retransmitted to trex. Since I pass the packets through my own node, do I need to set up an additional route? İ defined as next node "interface-output" for my new node.
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18494): https://lists.fd.io/g/vpp-dev/message/18494 Mute This Topic: https://lists.fd.io/mt/79521036/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-