From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from inblrg02.tcs.com (inblrg02.tcs.com [121.242.48.116]) by dpdk.org (Postfix) with ESMTP id 008423237 for ; Wed, 20 Jul 2016 08:09:57 +0200 (CEST) IronPort-PHdr: =?us-ascii?q?9a23=3A6vG/eh0WpxyxK9klsmDT+DRfVm0co7zxezQtwd8Z?= =?us-ascii?q?segRLfad9pjvdHbS+e9qxAeQG96Ks7QZ0aGG4ujJYi8p2d65qncMcZhBBVcuqP?= =?us-ascii?q?49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMz?= =?us-ascii?q?fbWtXNOIxJTmn8mJuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM8?= =?us-ascii?q?5fxGdvOE7B102kvpT41NdZ/i9Ro/Ms8dJbGeW/JvxgDO8QMDNzeVg8+NHis12L?= =?us-ascii?q?dwaU5n4VGC1CiBdTAw3MqgnzQov4tAP7sPZw3G+ROsigHp4uXjH31a5pQVfKgT?= =?us-ascii?q?YOLzc9uDXNg855yqBSsRu5rhhX34XPJoqSMawtLevmYdoGSD8ZDY5qXCtbD9b5?= =?us-ascii?q?NtNXAg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CrBACaFI9X/6fBE6xdgnGBJHy4boF6h?= =?us-ascii?q?hoCgW4SAQEBAQEBAQGBC4IyBAESAYISAQEFJwZBCwwEBQQCDQQDAQEBIQcHRgk?= =?us-ascii?q?IBgsIEZpFnDgBAQGOWAEBAQEBAQEBAQEBAQEBAQEBAQEBARyGKoRNhGAMCoJ2g?= =?us-ascii?q?i8FiH+GAIRlhUKBXoojhEwXhEKIdJAgJQuCLB+BVGYBAYduAQEB?= X-IPAS-Result: =?us-ascii?q?A2CrBACaFI9X/6fBE6xdgnGBJHy4boF6hhoCgW4SAQEBAQE?= =?us-ascii?q?BAQGBC4IyBAESAYISAQEFJwZBCwwEBQQCDQQDAQEBIQcHRgkIBgsIEZpFnDgBA?= =?us-ascii?q?QGOWAEBAQEBAQEBAQEBAQEBAQEBAQEBARyGKoRNhGAMCoJ2gi8FiH+GAIRlhUK?= =?us-ascii?q?BXoojhEwXhEKIdJAgJQuCLB+BVGYBAYduAQEB?= X-IronPort-AV: E=Sophos;i="5.28,392,1464633000"; d="scan'208,217";a="24154595" X-DISCLAIMER: FALSE MIME-Version: 1.0 Importance: Normal X-Priority: 3 (Normal) In-Reply-To: <3AEA2BF9852C6F48A459DA490692831F0105ABD7@IRSMSX109.ger.corp.intel.com> References: <3AEA2BF9852C6F48A459DA490692831F0105ABD7@IRSMSX109.ger.corp.intel.com>, <3AEA2BF9852C6F48A459DA490692831F0105A1B4@IRSMSX109.ger.corp.intel.com>, From: Raja Jayapal To: "Pattan, Reshma" Cc: "users@dpdk.org" , "De Lara Guarch, Pablo" Message-ID: Date: Wed, 20 Jul 2016 11:39:35 +0530 X-Mailer: Lotus Domino Web Server Release 9.0.1FP6HF144 June 24, 2016 X-MIMETrack: Serialize by http on InBlrM16/TCS(Release 9.0.1FP6HF144 | June 24, 2016) at 07/20/2016 11:39:35, Serialize complete at 07/20/2016 11:39:35, Itemize by http on InBlrM16/TCS(Release 9.0.1FP6HF144 | June 24, 2016) at 07/20/2016 11:39:35, Serialize by Router on InBlrM16/TCS(Release 9.0.1FP6HF144 | June 24, 2016) at 07/20/2016 11:39:39, Serialize complete at 07/20/2016 11:39:39 Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 20 Jul 2016 06:09:58 -0000 Hi Reshma/All, Please find the "show config fwd" output below. =A0testpmd> show config fwd Warning! Cannot handle an odd number of ports with the current port topolog= y. Configuration must be changed to have an even number of ports, or relaun= ch application with --port-topology=3Dchained io packet forwarding - ports=3D3 - cores=3D1 - streams=3D3 - NUMA support d= isabled, MP over anonymous pages disabled Logical Core 1 (socket 0) forwards packets on 3 streams: =A0 RX P=3D0/Q=3D0 (socket 0) -> TX P=3D2/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:02 =A0 RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:00 =A0 RX P=3D2/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:00 As described above, i have modified the topology to have even number of por= ts. testpmd> show config fwd io packet forwarding - ports=3D4 - cores=3D1 - streams=3D4 - NUMA support d= isabled, MP over anonymous pages disabled Logical Core 1 (socket 0) forwards packets on 4 streams: =A0 RX P=3D0/Q=3D0 (socket 0) -> TX P=3D1/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:01 =A0 RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:00 =A0 RX P=3D2/Q=3D0 (socket 0) -> TX P=3D3/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:03 =A0 RX P=3D3/Q=3D0 (socket 0) -> TX P=3D2/Q=3D0 (socket 0) peer=3D02:00:00:= 00:00:02 I could confirm that the packet is getting forwarded as per the config and = setting the IP and MAC in packet generator does not take effect. In testpmd app, whatever the MAC/IP is configured on traffic generator, the= packets are forwaded in adjacent ports. If i want to forward the packet based on IP&MAC, will it be achieved by run= ning l2fwd or l3fwd ? Kindly suggest. Thanks, Raja -----"Pattan, Reshma" wrote: ----- To: Raja Jayapal From: "Pattan, Reshma" Date: 07/19/2016 07:12PM Cc: "users@dpdk.org" , "De Lara Guarch, Pablo" Subject: RE: [dpdk-dev] capture packets on VM =20 Hi Raja, =A0 Since this is a usability question this should be discussed under users@dp= dk.org mailing list. Hence I removed dev@dpdk.org.=20 Ya actually packets received from port 0 should be transmitted on to port1= and packets received from port1 should go to port2. =A0 Can you paste o/p of =A0”show config fwd” and also interpret i= f =A0traffic on your board is flowing as per existing flow rules. =A0 Ex: testpmd> show=A0 config fwd io packet forwarding - ports=3D2 - cores=3D1 - streams=3D2 - NUMA support = disabled, MP over anonymous pages disabled Logical Core 5 (socket 0) forwards packets on 2 streams: =A0 RX P=3D0/Q=3D0 (socket 0) -> TX P=3D1/Q=3D0 (socket 0) peer=3D02:00:00= :00:00:01 =A0=E8 this means, Streams received on port 0 will be sent on to= port1 .=20 =A0=A0RX P=3D1/Q=3D0 (socket 0) -> TX P=3D0/Q=3D0 (socket 0) peer=3D02:00:= 00:00:00:00 =E8 this means, Streams received on port1 will be sent onto por= t0. =A0 Thanks, Reshma =A0 =20 =20 =20 From: Raja Jayapal [mailto:raja.jayapal@tcs.com]=20 Sent: Tuesday, July 19, 2016 12:38 PM To: Pattan, Reshma Cc: dev@dpdk.org Subject: RE: [dpdk-dev] capture packets on VM =A0 Hi Reshma,=20 =20 Thanks for your information. I have been trying to run the testpmd app and would like to get some idea = on the packet flow in testpmd. =20 br0 -----vnet0----- (port0)VM NIC =20 br1------vnet1------(port1)VM NIC =20 br2------vnet2------(port2)VM NIC =20 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 =20 Ran testpmd application on VM and sending packets from Host using packeth. =20 Using PackETH generator, sent traffic from br0 destined to br1(modified th= e source / destination MAC and IP in packeth tool), but i could see that th= e packets are received on port0 and transmitted on port2. =20 Sending packets from br0 to br1: =20 ./testpmd -c 3 -n 4 -- -i --total-num-mbufs=3D3000 testpmd> show port stats all =A0 ######################## NIC statistics for port 0=A0 ################= ######## =A0 RX-packets: 4=A0=A0=A0=A0=A0=A0=A0=A0=A0 RX-missed: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 RX-bytes:=A0 0 =A0 RX-errors: 0 =A0 RX-nombuf:=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=20 =A0 TX-packets: 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 TX-errors: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 TX-bytes:=A0 0 =A0 ######################################################################= ###### =A0 ######################## NIC statistics for port 1=A0 ################= ######## =A0 RX-packets: 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 RX-missed: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 RX-bytes:=A0 0 =A0 RX-errors: 0 =A0 RX-nombuf:=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=20 =A0 TX-packets: 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 TX-errors: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 TX-bytes:=A0 0 =A0 ######################################################################= ###### =A0 ######################## NIC statistics for port 2=A0 ################= ######## =A0 RX-packets: 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 RX-missed: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 RX-bytes:=A0 0 =A0 RX-errors: 0 =A0 RX-nombuf:=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=20 =A0 TX-packets: 4=A0=A0=A0=A0=A0=A0=A0=A0=A0 TX-errors: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 TX-bytes:=A0 0 =A0 ######################################################################= ###### testpmd>=20 =20 Second time, sent traffic from br1 to br2, but the packets are received on= port2 and transmitted on port0. =20 Sending packets from br1 to br2: =20 testpmd> show port stats all =A0 ######################## NIC statistics for port 0=A0 ################= ######## =A0 RX-packets: 0=A0=A0=A0=A0=A0=A0=A0=A0=A0 RX-missed: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 RX-bytes:=A0 0 =A0 RX-errors: 0 =A0 RX-nombuf:=A0 0=A0=A0=A0=A0=A0=A0=A0=A0=20 =A0 TX-packets: 6=A0=A0=A0=A0=A0=A0=A0=A0=A0 TX-errors: 0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 TX-bytes:=A0 0 =A0 ######################################################################= ###### =A0 ######################## NIC statistics for port 1=A0 ################= ######## =A0 RX-packets: 6=FF=FF=FF=FF=FF=FF=FF=FF=FF RX-missed: 0=FF=FF=FF=FF=FF= =FF=FF=FF=FF RX-bytes:=FF 0 =FF RX-errors: 0 =FF RX-nombuf:=FF 0=FF=FF=FF=FF=FF=FF=FF=FF=20 =FF TX-packets: 0=FF=FF=FF=FF=FF=FF=FF=FF=FF TX-errors: 0=FF=FF=FF=FF=FF= =FF=FF=FF=FF TX-bytes:=FF 0 =FF ######################################################################= ###### =FF ######################## NIC statistics for port 2=FF ################= ######## =FF RX-packets: 0=FF=FF=FF=FF=FF=FF=FF=FF=FF RX-missed: 0=FF=FF=FF=FF=FF= =FF=FF=FF=FF RX-bytes:=FF 0 =FF RX-errors: 0 =FF RX-nombuf:=FF 0=FF=FF=FF=FF=FF=FF=FF=FF=20 =FF TX-packets: 0=FF=FF=FF=FF=FF=FF=FF=FF=FF TX-errors: 0=FF=FF=FF=FF=FF= =FF=FF=FF=FF TX-bytes:=FF 0 =FF ######################################################################= ###### testpmd>=20 =20 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.=20 =20 =20 Thanks, Raja =20 -----"Pattan, Reshma" wrote: ----- =20 =20 To: Raja Jayapal From: "Pattan, Reshma" Date: 07/15/2016 07:33PM Cc: "dev@dpdk.org" Subject: RE: [dpdk-dev] capture packets on VM =20 =20 > -----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 >=20 > Hi All, >=20 > I have installed dpdk on VM and would like to know how to capture the pa= ckets > on dpdk ports. > I am sending traffic from host=FF and want to know how to confirm whethe= r the > packets are flowing via dpdk ports. > I tried with tcpdump and wireshark but could not capture the packets ins= ide VM. > setup : bridge1(Host)------- VM(Guest with DPDK) ----- bridge2(Host) >=20 =20 Hi, =20 On DPDK you can capture packets with app/pdump/ tool. This tool is availab= le for use from 16.07RC1.=20 What you can do is run testpmd and see if packets are seen in testpmd, tha= t 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.=20 The pdump tool captures the packet to pcap file, so you can use tcpdump -n= i to view the packets.=20 More about the tool usage can be found under doc/guides/sample=5Fapp=5Fug/= pdump.rst =20 Let me know if you need further help on this. =20 Thanks, Reshma =20 =20 =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=20 confidential or privileged information. If you are=20 not the intended recipient, any dissemination, use,=20 review, distribution, printing or copying of the=20 information contained in this e-mail message=20 and/or attachments to it are strictly prohibited. If=20 you have received this communication in error,=20 please notify us by reply e-mail or telephone and=20 immediately and permanently delete the message=20 and any attachments. Thank you =20 >From Volkan.Atli@argela.com.tr Wed Jul 20 09:40:40 2016 Return-Path: Received: from MX2.argela.com.tr (unknown [95.0.156.15]) by dpdk.org (Postfix) with ESMTP id BBA48377E for ; Wed, 20 Jul 2016 09:40:40 +0200 (CEST) Received: from MX2.argela.com.tr (192.168.0.26) by MX2.argela.com.tr (192.168.0.26) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 20 Jul 2016 10:40:32 +0300 Received: from MX2.argela.com.tr ([fe80::e817:b333:ea71:7f88]) by MX2.argela.com.tr ([fe80::e817:b333:ea71:7f88%12]) with mapi id 15.00.1178.000; Wed, 20 Jul 2016 10:40:32 +0300 From: Ali Volkan Atli To: "users@dpdk.org" Thread-Topic: How to get instant pmd rx queue occupancy after rte_eth_rx_burst() Thread-Index: AQHR4ln+DKfwU7W5DE++bXSZAMDvAw== Date: Wed, 20 Jul 2016 07:40:31 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.3.72] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-users] How to get instant pmd rx queue occupancy after rte_eth_rx_burst() 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: Wed, 20 Jul 2016 07:40:41 -0000 Hi=20 I'm trying to use a DPDK dropper by using rte_red_enqueue() and I need to k= now queue size after rte_eth_rx_burst(). Is there any sample application or= a way to get queue occupancy? Thanks in advance. - Volkan=