[dpdk-users] callbacks for pktgen commands are not being invoked

Nagaraj Trivedi nagaraj.trivedi at tcs.com
Mon Feb 15 13:02:28 CET 2016


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 
whether info->seq_pkt is NULL and yes it is coming 'TRUE'

Due to this reason the continue; statement is executed and hence the 
'_action' never gets executed and the respective callbacks are not 
executed.

I have the captured logs for you as you have requested. Also it would be 
of greater help if you can point me to the places in the code where memory 
for pktgen->info->seq_pkt and where it is populated.

Below is the info you have requested


Ports 0-3 of 4   <Main Page>  Copyright (c) <2010-2015>, Wind River 
Systems
  Flags:Port    : 
Link State      :    ---TotalRate---
Pkts/s  Rx      :                  0
        Tx      :                  0
MBits/s Rx/Tx   :                0/0
Broadcast       : 
Multicast       : 
  64 Bytes      : 
  65-127        : 
  128-255       : 
  256-511       : 
  512-1023      : 
  1024-1518     : 
Runts/Jumbos    : 
Errors Rx/Tx    : 
Total Rx Pkts   : 
      Tx Pkts   : 
      Rx MBs    : 
      Tx MBs    : 
ARP/ICMP Pkts   : 
                :
Pattern Type    : 
Tx Count/% Rate : 
PktSize/Tx Burst: 
Src/Dest Port   : 
Pkt Type:VLAN ID: 
Dst  IP Address : 
Src  IP Address : 
Dst MAC Address : 
Src MAC Address 
-- Pktgen Ver:2.9.6(DPDK-2.3.0)  Powered by Intel® DPDK 
-----------------------



Pktgen > set 0-3 count 10000
going into for loop num of ports 
/home/poc/pktgen-2.9.7/app/cmd-functions.c 4
pid 0 idx 0 bit 0
continuing2 info->seq_pkt is NULL
pid 1 idx 0 bit 1
continuing2 info->seq_pkt is NULL
pid 2 idx 0 bit 2
continuing2 info->seq_pkt is NULL
pid 3 idx 0 bit 3
continuing2 info->seq_pkt is NULL
Pktgen> 
Pktgen> set 0-3 size 512
going into for loop num of ports 
/home/poc/pktgen-2.9.7/app/cmd-functions.c 4
pid 0 idx 0 bit 0
continuing2 info->seq_pkt is NULL
pid 1 idx 0 bit 1
continuing2 info->seq_pkt is NULL
pid 2 idx 0 bit 2
continuing2 info->seq_pkt is NULL
pid 3 idx 0 bit 3
continuing2 info->seq_pkt is NULL


The above lines which you are seeing is the additional logs I have placed 
within the foreach_ports macro. It clearly shows that for each of the 
ports the info->seq_pkt is NULL and continue; statement gets executed but 
_action will never be executed.

Thanks & Regards
Nagaraj Trivedi





From:   "Wiles, Keith" <keith.wiles at intel.com>
To:     Nagaraj Trivedi <nagaraj.trivedi at tcs.com>, "users at dpdk.org" 
<users at dpdk.org>
Date:   02/12/2016 09:03 PM
Subject:        Re: [dpdk-users] callbacks for pktgen commands are not 
being invoked



>Hi, I am facing the issue that none of the callbacks for the respective 
>commands in the pktgen application are being executed.
>
>Further debug showed me that from the macro
>
>foreach_port(_portlist, _action) from the file pktgen.h
>
>the statement 
>
>if (info->seq_pkt == NULL) { \
>    continue; \
>} \
>_action; \
>
>always yeilds NULL and hence repeats the loop. Due to this the statement
>_action
>never gets executed. Hence the callbacks for none of the commands are 
>invoked.
>Let me know what could be the reason for info->seq_pkt to become NULL 
>always.

Not sure I can debug your problem without more details, I do see 
info->seq_pkt 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 
using and the console startup output plus the command line would be 
helpful.
>
>Thanks & Regards
>Nagaraj Trivedi
>=====-----=====-----=====
>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
>
>
>


Regards,
Keith







More information about the users mailing list