From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A0A892B9D for ; Tue, 19 Jul 2016 15:41:56 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 19 Jul 2016 06:41:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,389,1464678000"; d="scan'208,217";a="736630451" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jul 2016 06:41:53 -0700 Received: from irsmsx109.ger.corp.intel.com ([169.254.13.193]) by IRSMSX107.ger.corp.intel.com ([169.254.10.204]) with mapi id 14.03.0248.002; Tue, 19 Jul 2016 14:41:52 +0100 From: "Pattan, Reshma" To: Raja Jayapal CC: "users@dpdk.org" , "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev] capture packets on VM Thread-Index: AQHR3l3PBM/NNSIisUSz4M/pXmgUeKAZg6mggAYS8ACAAC/NoA== Date: Tue, 19 Jul 2016 13:41:52 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F0105ABD7@IRSMSX109.ger.corp.intel.com> References: <3AEA2BF9852C6F48A459DA490692831F0105A1B4@IRSMSX109.ger.corp.intel.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWU1YzY2NjctNGYwNy00YmZlLTkyZjYtODNhOWJmODY4OTk1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IktGMUp2eXFrblFHR2VHZVwvSDVadCtcL09iTHJreWI0eGhvVWk3RGJmK1dWZz0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.181] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] [dpdk-dev] capture packets on VM X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 13:41:57 -0000 Hi Raja, Since this is a usability question this should be discussed under users@dpd= k.org mailing list. Hence I removed dev@dpdk.org. Ya actually packets received from port 0 should be transmitted on to port1 = and packets received from port1 should go to port2. Can you paste o/p of "show config fwd" and also interpret if traffic on y= our board is flowing as per existing flow rules. Ex: testpmd> show config fwd io packet forwarding - ports=3D2 - cores=3D1 - streams=3D2 - NUMA support d= isabled, MP over anonymous pages disabled Logical Core 5 (socket 0) forwards packets on 2 streams: RX P=3D0/Q=3D0 (socket 0) -> TX P=3D1/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:01 =3D=3D> this means, Streams received on port 0 will be sent on to p= ort1 . RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:00= :00:00 =3D=3D> this means, Streams received on port1 will be sent onto port= 0. Thanks, Reshma From: Raja Jayapal [mailto:raja.jayapal@tcs.com] Sent: Tuesday, July 19, 2016 12:38 PM To: Pattan, Reshma Cc: dev@dpdk.org Subject: RE: [dpdk-dev] capture packets on VM Hi Reshma, Thanks for your information. I have been trying to run the testpmd app and would like to get some idea o= n the packet flow in testpmd. br0 -----vnet0----- (port0)VM NIC br1------vnet1------(port1)VM NIC br2------vnet2------(port2)VM NIC br0 IP and MAC: fe:54:00:0d:af:af - 192.168.100.10 br1 IP and MAC: fe:54:00:4e:5b:df - 192.168.100.20 br2 IP and MAC: fe:54:00:93:78:6d - 192.168.100.30 Ran testpmd application on VM and sending packets from Host using packeth. Using PackETH generator, sent traffic from br0 destined to br1(modified the= source / destination MAC and IP in packeth tool), but i could see that the= packets are received on port0 and transmitted on port2. Sending packets from br0 to br1: ./testpmd -c 3 -n 4 -- -i --total-num-mbufs=3D3000 testpmd> show port stats all ######################## NIC statistics for port 0 #####################= ### RX-packets: 4 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 #########################################################################= ### ######################## NIC statistics for port 1 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 #########################################################################= ### ######################## NIC statistics for port 2 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 4 TX-errors: 0 TX-bytes: 0 #########################################################################= ### testpmd> Second time, sent traffic from br1 to br2, but the packets are received on = port2 and transmitted on port0. Sending packets from br1 to br2: testpmd> show port stats all ######################## NIC statistics for port 0 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 6 TX-errors: 0 TX-bytes: 0 #########################################################################= ### ######################## NIC statistics for port 1 #####################= ### RX-packets: 6 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 #########################################################################= ### ######################## NIC statistics for port 2 #####################= ### RX-packets: 0 RX-missed: 0 RX-bytes: 0 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 #########################################################################= ### testpmd> Could you please suggest whether this is expected behaviour? Also suggest if any configuarion needs to be done to make the flow to work = correctly. Thanks, Raja -----"Pattan, Reshma" > wrote: ----- To: Raja Jayapal > From: "Pattan, Reshma" > Date: 07/15/2016 07:33PM Cc: "dev@dpdk.org" > Subject: RE: [dpdk-dev] capture packets on VM > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Raja Jayapal > Sent: Friday, July 15, 2016 6:55 AM > To: dev@dpdk.org > Subject: [dpdk-dev] capture packets on VM > > Hi All, > > I have installed dpdk on VM and would like to know how to capture the pac= kets > on dpdk ports. > I am sending traffic from host and want to know how to confirm whether t= he > packets are flowing via dpdk ports. > I tried with tcpdump and wireshark but could not capture the packets insi= de VM. > setup : bridge1(Host)------- VM(Guest with DPDK) ----- bridge2(Host) > Hi, On DPDK you can capture packets with app/pdump/ tool. This tool is availabl= e for use from 16.07RC1. What you can do is run testpmd and see if packets are seen in testpmd, that= confirms if packets are landing on dpdk ports or not. If you also want to capture packet for analysis, you need to run app/pdump/= tool along with testpmd. The pdump tool captures the packet to pcap file, so you can use tcpdump -ni= to view the packets. More about the tool usage can be found under doc/guides/sample_app_ug/pdump= .rst Let me know if you need further help on this. Thanks, Reshma =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you