David,
Any reason you decided to skip using VPP SPAN for packet mirroring? https://docs.fd.io/vpp/17.01.1/md_vnet_vnet_span_span.html Hemant From: [email protected] <[email protected]> On Behalf Of David Gohberg Sent: Thursday, April 08, 2021 9:06 AM To: [email protected] Subject: Re: [vpp-dev] vlib_buffer_clone behavior when trying to send to two interfaces > why do you need to open host_if_frame for each packet If you refer to the fact that I can just create one frame outside the loop, you are correct :). I tried to get the code to the simplest working example that will correctly mirror the packets so I started to "dumb down" things :) I'm aware that it is not efficient. > why do you use vlib_get_frame_to_node instead of simply registering next > indices like 99% of VPP nodes are doing…. I followed this code example from the documentation: https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vnet.html?highlight=quad#enqueueing-packets-for-lookup-and-transmission Is there a better way of doing this?
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19156): https://lists.fd.io/g/vpp-dev/message/19156 Mute This Topic: https://lists.fd.io/mt/81938105/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
