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 3C3575938 for ; Mon, 15 Feb 2016 13:02:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DNAQDJvMFW/6fBE6xbA4R5uhkBDYFnhg0CgWUUAQEBAQEBAYEKhEEBAQEEJ1IQCw0EAwECL08IBgsItTQBAQGPHAEBAQEBAQEBAQEBAQEBAQEBARiGEYQ1hFIBCxuDcwWHU4YMO4hfgTuJZYQRFoQtiFWOPh4BAYJBAxmBUGKIeAEBAQ X-IPAS-Result: A2DNAQDJvMFW/6fBE6xbA4R5uhkBDYFnhg0CgWUUAQEBAQEBAYEKhEEBAQEEJ1IQCw0EAwECL08IBgsItTQBAQGPHAEBAQEBAQEBAQEBAQEBAQEBARiGEYQ1hFIBCxuDcwWHU4YMO4hfgTuJZYQRFoQtiFWOPh4BAYJBAxmBUGKIeAEBAQ X-IronPort-AV: E=Sophos;i="5.22,450,1449513000"; d="scan'208";a="13490424" X-DISCLAIMER: FALSE In-Reply-To: References: To: "Wiles, Keith" MIME-Version: 1.0 X-KeepSent: 6674F533:5D74F760-65257F5A:0040BF0A; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0 March 08, 2013 From: Nagaraj Trivedi Message-ID: Date: Mon, 15 Feb 2016 17:32:28 +0530 X-MIMETrack: Serialize by Router on InBlrM08/TCS(Release 9.0.1FP4|June 07, 2015) at 02/15/2016 17:32:29, Serialize complete at 02/15/2016 17:32:29 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "users@dpdk.org" Subject: Re: [dpdk-users] callbacks for pktgen commands are not being invoked 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: Mon, 15 Feb 2016 12:02:33 -0000 Hi Keith, the version are Pktgen Ver:2.9.6(DPDK-2.3.0) I have verified putting printf in the if statement where it checks for=20 whether info->seq=5Fpkt is NULL and yes it is coming 'TRUE' Due to this reason the continue; statement is executed and hence the=20 '=5Faction' never gets executed and the respective callbacks are not=20 executed. I have the captured logs for you as you have requested. Also it would be=20 of greater help if you can point me to the places in the code where memory = for pktgen->info->seq=5Fpkt and where it is populated. Below is the info you have requested Ports 0-3 of 4
Copyright (c) <2010-2015>, Wind River=20 Systems Flags:Port :=20 Link State : ---TotalRate--- Pkts/s Rx : 0 Tx : 0 MBits/s Rx/Tx : 0/0 Broadcast :=20 Multicast :=20 64 Bytes :=20 65-127 :=20 128-255 :=20 256-511 :=20 512-1023 :=20 1024-1518 :=20 Runts/Jumbos :=20 Errors Rx/Tx :=20 Total Rx Pkts :=20 Tx Pkts :=20 Rx MBs :=20 Tx MBs :=20 ARP/ICMP Pkts :=20 : Pattern Type :=20 Tx Count/% Rate :=20 PktSize/Tx Burst:=20 Src/Dest Port :=20 Pkt Type:VLAN ID:=20 Dst IP Address :=20 Src IP Address :=20 Dst MAC Address :=20 Src MAC Address=20 -- Pktgen Ver:2.9.6(DPDK-2.3.0) Powered by Intel=C2=AE DPDK=20 ----------------------- Pktgen > set 0-3 count 10000 going into for loop num of ports=20 /home/poc/pktgen-2.9.7/app/cmd-functions.c 4 pid 0 idx 0 bit 0 continuing2 info->seq=5Fpkt is NULL pid 1 idx 0 bit 1 continuing2 info->seq=5Fpkt is NULL pid 2 idx 0 bit 2 continuing2 info->seq=5Fpkt is NULL pid 3 idx 0 bit 3 continuing2 info->seq=5Fpkt is NULL Pktgen>=20 Pktgen> set 0-3 size 512 going into for loop num of ports=20 /home/poc/pktgen-2.9.7/app/cmd-functions.c 4 pid 0 idx 0 bit 0 continuing2 info->seq=5Fpkt is NULL pid 1 idx 0 bit 1 continuing2 info->seq=5Fpkt is NULL pid 2 idx 0 bit 2 continuing2 info->seq=5Fpkt is NULL pid 3 idx 0 bit 3 continuing2 info->seq=5Fpkt is NULL The above lines which you are seeing is the additional logs I have placed=20 within the foreach=5Fports macro. It clearly shows that for each of the=20 ports the info->seq=5Fpkt is NULL and continue; statement gets executed but= =20 =5Faction will never be executed. Thanks & Regards Nagaraj Trivedi From: "Wiles, Keith" To: Nagaraj Trivedi , "users@dpdk.org"=20 Date: 02/12/2016 09:03 PM Subject: Re: [dpdk-users] callbacks for pktgen commands are not=20 being invoked >Hi, I am facing the issue that none of the callbacks for the respective=20 >commands in the pktgen application are being executed. > >Further debug showed me that from the macro > >foreach=5Fport(=5Fportlist, =5Faction) from the file pktgen.h > >the statement=20 > >if (info->seq=5Fpkt =3D=3D NULL) { \ > continue; \ >} \ >=5Faction; \ > >always yeilds NULL and hence repeats the loop. Due to this the statement >=5Faction >never gets executed. Hence the callbacks for none of the commands are=20 >invoked. >Let me know what could be the reason for info->seq=5Fpkt to become NULL=20 >always. Not sure I can debug your problem without more details, I do see=20 info->seq=5Fpkt being valid, is some specific commands not working or more = details would be great. I need to know version of DPDK and Pktgen you are=20 using and the console startup output plus the command line would be=20 helpful. > >Thanks & Regards >Nagaraj Trivedi >=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 > > > Regards, Keith