Hi Dave, Actually while enabling my plugin on physical interface after spanning traffic from physical interface to physical interface I could see the packets on my plugin. But enabling my plugin on virtual interface after spanning traffic from physical interface to virtual interface I couldn’t see packets on my plugin. If I tried to packet capture on virtual interface. Packet is landing on pcap.
Please clarify on query whether it’s possible to process the packet on virtual interface.if it’s possible then after the span-input where packet will land. Regarding clib_warning messages only printing on my plugin alone. For testing purpose we add some more clib_warning on interface-output and dpdk-input. But no luck no logs are printing. Regards Muthukumar S ________________________________ From: Dave Barach (dbarach) <dbar...@cisco.com> Sent: Wednesday, November 20, 2019 8:41:20 PM To: Muthukumar Sivaperumal <muthukumar.sivaperu...@veryxtech.com>; vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> Subject: RE: [vpp-dev] VPP New plugin intergation Does “show interface VirtualEthernet0/0/0 features” show your output feature? You might try “trace add dpdk-input 10” and “show trace” to see what’s happening to packet received on GigabitEthernet0/8/0. The story about debug messages not appearing makes me wonder if you’re actually running the code that you think you’re running. Try running vpp manually: “.../build-root/build-vpp_debug_native/vpp unix interactive” and see if your message appear. If not, work out what’s going on before you do anything else... HTH... Dave From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of muthukumar.sivaperu...@veryxtech.com Sent: Wednesday, November 20, 2019 9:04 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP New plugin intergation Hi Team, We are trying to implement a plugin to process all packets on virtual interface. We are doing span from physical interface to virtual interface on vpp,by running plugin arc node with interface-output. We are facing some problems. Could you please help us to resolve the issue by giving your valuable inputs/suggestions in this regard?. Steps: ===== 1. Creating virtual interface cmd: create vhost-user socket /var/run/vpp/vhost1.sock 2.Spanning packet received from physical interface to virtual interface cmd: set interface span GigabitEthernet0/8/0 destination VirtualEthernet0/0/0 both 3.Enable my plugin to process all packets on virtual interface. cmd:myplugin enable-disable VirtualEthernet0/0/0 Problems: ======== 1. Couldn't receive packets from virtual interface using myplugin(while mirroring from physical interface). 2.For debugging in VPP nodes ,tried to add clib messages(clib_warning,clib_unix_warning,clib_error,clib_unix_error) using library but we couldn't get any debug message. Even we didn't get debug messages from dpdk-input and ethernet-input nodes. 3. In general , in VPP , how to enable to debug each node ? 4. Any input /document related to virtual interface packet processing ? VPP version: ========== 20.01-rc0~519-g669f4e341 Our plugin implementation: ======================= [cid:image001.png@01D59F8A.D9171710] Thank You very much in advance . Awaiting for your reply as early as possible . Thanks & Regards, MuthuKumar S DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14641): https://lists.fd.io/g/vpp-dev/message/14641 Mute This Topic: https://lists.fd.io/mt/60892257/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-