Can't configure device: err=-22

891 views
Skip to first unread message

Martin Goldammer

unread,
May 17, 2017, 7:28:40 AM5/17/17
to TRex Traffic Generator
Hi all,
I have issue realted to DPDK. When I want to run Trex in statefull mode like:
./t-rex-64 -f cap2/imix.yaml -c 1 -m 1 -d 20 -l 1000 
everything is ok, the test will be fine.
But when I want to run Trex in stateless mode and run the Trex server like:
./t-rex-64 -i -c 1
I will get this output:
Killing Scapy server... Scapy server is killed
Starting Scapy server.... Scapy server is started
The ports are bound/configured.
Starting  TRex v2.25 please wait  ...
 set driver name net_e1000_em
zmq publisher at: tcp://*:4500
 Number of ports found: 2
EAL: Error - exiting with code: 1
  Cause: Cannot configure device: err=-22, port=0
I think that it is related with RX and TX queue, but I set the parametr on "-c 1".
My chipset is 82571EB. I dont know where can I finding some error or issue.
When someone has some idea how to resolve this problem, I will be very grateful.
Thank you very much

hanoh haim

unread,
May 17, 2017, 9:54:23 AM5/17/17
to Martin Goldammer, TRex Traffic Generator
Hi Martin,
Could you send the output in both cases with '-v 7' added to CLI

Another thing could you send output with --software -v 7



--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/456967bf-ae35-4525-8de4-abe0d2905319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Martin Goldammer

unread,
May 18, 2017, 3:10:11 AM5/18/17
to TRex Traffic Generator, martin.g...@gmail.com
Hi Hanoh,
sorry, my mistake. I tried tu run second statefull command (./t-rex-64 -f cap2/imix.yaml -c 1 -m 1 -d 10 -l 1000) on another version of Trex v2.18 but I cloned and testing stateless features on v2.25 where I can not run this command too.

Anyway here is my output from ./t-rex-64 -i -c 1 -v 7 run on Trex v2.25 :

Killing Scapy server... Scapy server is killed
Starting Scapy server.... Scapy server is started
The ports are bound/configured.
Starting  TRex v2.25 please wait  ...
Using configuration file /etc/trex_cfg.yaml
 port limit     :  2
 port_bandwidth_gb    :  10
 if_mask        : None
 thread_per_dual_if      : 1
 if        :  13:00.0, 13:00.1,
 enable_zmq_pub :  1
 zmq_pub_port   :  4500
 m_zmq_rpc_port    :  4501
 src     : 00:15:17:e9:cd:5d
 dest    : 00:15:17:e9:cd:5c
 src     : 00:15:17:e9:cd:5c
 dest    : 00:15:17:e9:cd:5d
 memory per 2x10G ports
 MBUF_64                                   : 16380
 MBUF_128                                  : 8190
 MBUF_256                                  : 8190
 MBUF_512                                  : 8190
 MBUF_1024                                 : 8190
 MBUF_2048                                 : 4095
 MBUF_4096                                 : 128
 MBUF_9K                                   : 512
 TRAFFIC_MBUF_64                           : 65520
 TRAFFIC_MBUF_128                          : 32760
 TRAFFIC_MBUF_256                          : 8190
 TRAFFIC_MBUF_512                          : 8190
 TRAFFIC_MBUF_1024                         : 8190
 TRAFFIC_MBUF_2048                         : 65520
 TRAFFIC_MBUF_4096                         : 128
 TRAFFIC_MBUF_9K                           : 512
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 master   thread  : 0
 rx  thread  : 1
 dual_if : 0
    socket  : 0
   [   2   3   4   5   6   7     ]
CTimerWheelYamlInfo does not exist
 flags           : 8010f00
 write_file      : 0
 verbose         : 7
 realtime        : 1
 flip            : 0
 cores           : 1
 single core     : 0
 flow-flip       : 0
 no clean close  : 0
 zmq_publish     : 1
 vlan mode       : 0
 client_cfg      : 0
 mbuf_cache_disable  : 0
 cfg file        :
 mac file        :
 out file        :
 client cfg file :
 duration        : 0
 factor          : 1
 mbuf_factor     : 1
 latency         : 0 pkt/sec
 zmq_port        : 4500
 telnet_port     : 4501
 expected_ports  : 2
 tw_bucket_usec  : 20.000000 usec
 tw_buckets      : 1024 usec
 tw_levels       : 3 usec
 port : 0 dst:00:15:17:e9:cd:5c  src:00:15:17:e9:cd:5d
 port : 1 dst:00:15:17:e9:cd:5d  src:00:15:17:e9:cd:5c
 port : 2 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 3 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 4 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 5 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 6 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 7 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 8 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 9 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 10 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 11 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 12 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 13 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 14 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 15 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 Total Memory :
 MBUF_64                                   : 81900
 MBUF_128                                  : 40950
 MBUF_256                                  : 16380
 MBUF_512                                  : 16380
 MBUF_1024                                 : 16380
 MBUF_2048                                 : 69615
 MBUF_4096                                 : 1024
 MBUF_9K                                   : 1024
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 get_each_core_dp_flows                    : 524288
 Total memory                              :     104.00 Mbytes
 core_mask  7
 sockets : 0
 active sockets : 1
 ports_sockets : 1
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 phy   |   virt
 2      1
DPDK args
 xx  -c  0x7  -n  4  --log-level  8  --master-lcore  0  -w  0000:13:00.0  -w  0000:13:00.1 
 EAL: Probing VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: VFIO modules not loaded, skipping VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fda0ca00000 (size = 0x200000)
EAL: Ask a virtual area of 0x33000000 bytes
EAL: Virtual area found at 0x7fd9d9800000 (size = 0x33000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fd9d9400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fd9d9000000 (size = 0x200000)
EAL: Ask a virtual area of 0xcc800000 bytes
EAL: Virtual area found at 0x7fd90c600000 (size = 0xcc800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7fd90c200000 (size = 0x200000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~2127890 KHz
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: Master lcore 0 is ready (tid=ff808c0;cpuset=[0])
EAL: lcore 1 is ready (tid=de6f700;cpuset=[1])
EAL: lcore 2 is ready (tid=d66e700;cpuset=[2])
EAL: PCI device 0000:13:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7fda0cc00000
EAL:   PCI memory mapped at 0x7fda0cc20000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10bc
EAL: PCI device 0000:13:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7fda0cc40000
EAL:   PCI memory mapped at 0x7fda0cc60000
PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x10bc
 set driver name net_e1000_em
                input : [0000:13:00.0, 0000:13:00.1]
                dpdk : [0000:13:00.0, 0000:13:00.1]
             pci_scan : [0000:13:00.0, 0000:13:00.1]
                  map : [ 0, 1]
 TRex port mapping
 -----------------
 TRex vport: 0 dpdk_rte_eth: 0
 TRex vport: 1 dpdk_rte_eth: 1
zmq publisher at: tcp://*:4500
 Number of ports found: 2


if_index : 0
driver name : net_e1000_em
min_rx_bufsize : 256
max_rx_pktlen  : 9234
max_rx_queues  : 1
max_tx_queues  : 1
max_mac_addrs  : 15
rx_offload_capa : 0x0
tx_offload_capa : 0x0
rss reta_size   : 0
flow_type_rss   : 0x0
port 0 desc: 82571EB Gigabit Ethernet Controller (Copper)
EAL: Error - exiting with code: 1
  Cause: Cannot configure device: err=-22, port=0
                                                               
Here is my output of command ./t-rex-64 -f cap2/imix.yaml -c 1 -m 1 -d 10 -l 1000 -v 7 on Trex v2.25:

The ports are bound/configured.
Starting  TRex v2.25 please wait  ...
Using configuration file /etc/trex_cfg.yaml
 port limit     :  2
 port_bandwidth_gb    :  10
 if_mask        : None
 thread_per_dual_if      : 1
 if        :  13:00.0, 13:00.1,
 enable_zmq_pub :  0
 zmq_pub_port   :  4500
 m_zmq_rpc_port    :  4501
 src     : 00:15:17:e9:cd:5d
 dest    : 00:15:17:e9:cd:5c
 src     : 00:15:17:e9:cd:5c
 dest    : 00:15:17:e9:cd:5d
 memory per 2x10G ports
 MBUF_64                                   : 16380
 MBUF_128                                  : 8190
 MBUF_256                                  : 8190
 MBUF_512                                  : 8190
 MBUF_1024                                 : 8190
 MBUF_2048                                 : 4095
 MBUF_4096                                 : 128
 MBUF_9K                                   : 512
 TRAFFIC_MBUF_64                           : 65520
 TRAFFIC_MBUF_128                          : 32760
 TRAFFIC_MBUF_256                          : 8190
 TRAFFIC_MBUF_512                          : 8190
 TRAFFIC_MBUF_1024                         : 8190
 TRAFFIC_MBUF_2048                         : 65520
 TRAFFIC_MBUF_4096                         : 128
 TRAFFIC_MBUF_9K                           : 512
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 no platform info
CTimerWheelYamlInfo does not exist
 flags           : 10f00
 write_file      : 0
 verbose         : 7
 realtime        : 1
 flip            : 0
 cores           : 1
 single core     : 0
 flow-flip       : 0
 no clean close  : 0
 zmq_publish     : 0
 vlan mode       : 0
 client_cfg      : 0
 mbuf_cache_disable  : 0
 cfg file        : cap2/imix.yaml
 mac file        :
 out file        :
 client cfg file :
 duration        : 10
 factor          : 1
 mbuf_factor     : 1
 latency         : 1000 pkt/sec
 zmq_port        : 4500
 telnet_port     : 4501
 expected_ports  : 2
 tw_bucket_usec  : 20.000000 usec
 tw_buckets      : 1024 usec
 tw_levels       : 3 usec
 port : 0 dst:00:15:17:e9:cd:5c  src:00:15:17:e9:cd:5d
 port : 1 dst:00:15:17:e9:cd:5d  src:00:15:17:e9:cd:5c
 port : 2 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 3 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 4 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 5 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 6 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 7 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 8 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 9 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 10 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 11 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 12 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 13 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 14 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 15 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 Total Memory :
 MBUF_64                                   : 81900
 MBUF_128                                  : 40950
 MBUF_256                                  : 16380
 MBUF_512                                  : 16380
 MBUF_1024                                 : 16380
 MBUF_2048                                 : 69615
 MBUF_4096                                 : 1024
 MBUF_9K                                   : 1024
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 get_each_core_dp_flows                    : 524288
 Total memory                              :     104.00 Mbytes
 there is no configuration file given
DPDK args
 xx  -c  0x7  -n  4  --log-level  8  --master-lcore  0  -w  0000:13:00.0  -w  0000:13:00.1
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 0 on socket 0
EAL: Detected lcore 2 as core 1 on socket 0
EAL: Detected lcore 3 as core 1 on socket 0
EAL: Detected lcore 4 as core 2 on socket 0
EAL: Detected lcore 5 as core 2 on socket 0
EAL: Detected lcore 6 as core 3 on socket 0
EAL: Detected lcore 7 as core 3 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 8 lcore(s)
 EAL: Probing VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: VFIO modules not loaded, skipping VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f4b3cc00000 (size = 0x200000)
EAL: Ask a virtual area of 0x33000000 bytes
EAL: Virtual area found at 0x7f4b09a00000 (size = 0x33000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f4b09600000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f4b09200000 (size = 0x200000)
EAL: Ask a virtual area of 0xcc800000 bytes
EAL: Virtual area found at 0x7f4a3c800000 (size = 0xcc800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f4a3c400000 (size = 0x200000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~2127891 KHz
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: Master lcore 0 is ready (tid=402c98c0;cpuset=[0])
EAL: lcore 2 is ready (tid=3d9b7700;cpuset=[2])
EAL: lcore 1 is ready (tid=3e1b8700;cpuset=[1])
EAL: PCI device 0000:13:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7f4b3ce00000
EAL:   PCI memory mapped at 0x7f4b3ce20000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10bc
EAL: PCI device 0000:13:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7f4b3ce40000
EAL:   PCI memory mapped at 0x7f4b3ce60000
PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x10bc
 set driver name net_e1000_em
                input : [0000:13:00.0, 0000:13:00.1]
                 dpdk : [0000:13:00.0, 0000:13:00.1]
             pci_scan : [0000:13:00.0, 0000:13:00.1]
                  map : [ 0, 1]
 TRex port mapping
 -----------------
 TRex vport: 0 dpdk_rte_eth: 0
 TRex vport: 1 dpdk_rte_eth: 1
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 flags           : 10f00
 write_file      : 0
 verbose         : 7
 realtime        : 1
 flip            : 0
 cores           : 1
 single core     : 0
 flow-flip       : 0
 no clean close  : 0
 zmq_publish     : 0
 vlan mode       : 0
 client_cfg      : 0
 mbuf_cache_disable  : 0
 cfg file        : cap2/imix.yaml
 mac file        :
 out file        :
 client cfg file :
 duration        : 10
 factor          : 1
 mbuf_factor     : 1
 latency         : 1000 pkt/sec
 zmq_port        : 4500
 telnet_port     : 4501
 expected_ports  : 2
 tw_bucket_usec  : 20.000000 usec
 tw_buckets      : 1024 usec
 tw_levels       : 3 usec
 port : 0 dst:00:15:17:e9:cd:5c  src:00:15:17:e9:cd:5d
 port : 1 dst:00:15:17:e9:cd:5d  src:00:15:17:e9:cd:5c
 port : 2 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 3 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 4 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 5 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 6 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 7 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 8 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 9 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 10 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 11 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 12 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 13 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 14 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 15 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 Total Memory :
 MBUF_64                                   : 81900
 MBUF_128                                  : 40950
 MBUF_256                                  : 16380
 MBUF_512                                  : 16380
 MBUF_1024                                 : 16380
 MBUF_2048                                 : 69615
 MBUF_4096                                 : 1024
 MBUF_9K                                   : 1024
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 get_each_core_dp_flows                    : 524288
 Total memory                              :     104.00 Mbytes
 Number of ports found: 2


if_index : 0
driver name : net_e1000_em
min_rx_bufsize : 256
max_rx_pktlen  : 9234
max_rx_queues  : 1
max_tx_queues  : 1
max_mac_addrs  : 15
rx_offload_capa : 0x0
tx_offload_capa : 0x0
rss reta_size   : 0
flow_type_rss   : 0x0
port 0 desc: 82571EB Gigabit Ethernet Controller (Copper)
EAL: Error - exiting with code: 1
  Cause: Cannot configure device: err=-22, port=0


And here is my output of command ./t-rex-64 -f cap2/imix.yaml -c 1 -m 1 -d 10 -l 1000 -v 7 on Trex v2.18

Starting  TRex v2.18 please wait  ...
Using configuration file /etc/trex_cfg.yaml
 port limit     :  2
 port_bandwidth_gb    :  10
 if_mask        : None
 thread_per_dual_if      : 1
 if        :  13:00.0, 13:00.1,
 enable_zmq_pub :  0
 zmq_pub_port   :  4500
 m_zmq_rpc_port    :  4501
 src     : 00:15:17:e9:cd:5d
 dest    : 00:15:17:e9:cd:5c
 src     : 00:15:17:e9:cd:5c
 dest    : 00:15:17:e9:cd:5d
 memory per 2x10G ports
 MBUF_64                                   : 16380
 MBUF_128                                  : 8190
 MBUF_256                                  : 8190
 MBUF_512                                  : 8190
 MBUF_1024                                 : 8190
 MBUF_2048                                 : 4095
 MBUF_4096                                 : 128
 MBUF_9K                                   : 512
 TRAFFIC_MBUF_64                           : 65520
 TRAFFIC_MBUF_128                          : 32760
 TRAFFIC_MBUF_256                          : 8190
 TRAFFIC_MBUF_512                          : 8190
 TRAFFIC_MBUF_1024                         : 8190
 TRAFFIC_MBUF_2048                         : 65520
 TRAFFIC_MBUF_4096                         : 128
 TRAFFIC_MBUF_9K                           : 512
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 no platform info
CTimerWheelYamlInfo does not exist
 flags           : 10f00
 write_file      : 0
 verbose         : 7
 realtime        : 1
 flip            : 0
 cores           : 1
 single core     : 0
 flow-flip       : 0
 no clean close  : 0
 zmq_publish     : 0
 vlan mode       : 0
 client_cfg      : 0
 mbuf_cache_disable  : 0
 vm mode         : 0
 cfg file        : cap2/imix.yaml
 mac file        :
 out file        :
 client cfg file :
 duration        : 5
 factor          : 1
 mbuf_factor     : 1
 latency         : 1000 pkt/sec
 zmq_port        : 4500
 telnet_port     : 4501
 expected_ports  : 2
 tw_bucket_usec  : 20.000000 usec
 tw_buckets      : 1024 usec
 tw_levels       : 3 usec
 port : 0 dst:00:15:17:e9:cd:5c  src:00:15:17:e9:cd:5d
 port : 1 dst:00:15:17:e9:cd:5d  src:00:15:17:e9:cd:5c
 port : 2 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 3 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 4 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 5 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 6 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 7 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 8 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 9 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 10 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 11 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 12 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 13 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 14 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 15 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 Total Memory :
 MBUF_64                                   : 81900
 MBUF_128                                  : 40950
 MBUF_256                                  : 16380
 MBUF_512                                  : 16380
 MBUF_1024                                 : 16380
 MBUF_2048                                 : 69615
 MBUF_4096                                 : 256
 MBUF_9K                                   : 1024
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 get_each_core_dp_flows                    : 524288
 Total memory                              :     104.00 Mbytes
 there is no configuration file given
args
 xx
 -c
 0x7
 -n
 4
 --log-level
 8
 --master-lcore
 0
 -w
 13:00.0
 -w
 13:00.1
EAL: Probing VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: VFIO modules not loaded, skipping VFIO support...
EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or directory)
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f0240400000 (size = 0x200000)
EAL: Ask a virtual area of 0x33000000 bytes
EAL: Virtual area found at 0x7f020d200000 (size = 0x33000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f020ce00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f020ca00000 (size = 0x200000)
EAL: Ask a virtual area of 0xcc800000 bytes
EAL: Virtual area found at 0x7f0140000000 (size = 0xcc800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f013fc00000 (size = 0x200000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~2127891 KHz
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: Master lcore 0 is ready (tid=4355f900;cpuset=[0])
EAL: lcore 2 is ready (tid=3fbff700;cpuset=[2])
EAL: lcore 1 is ready (tid=4144e700;cpuset=[1])
EAL: PCI device 0000:13:00.0 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7f0240600000
EAL:   PCI memory mapped at 0x7f0240620000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x10bc
EAL: PCI device 0000:13:00.1 on NUMA socket -1
EAL:   probe driver: 8086:10bc net_e1000_em
EAL:   PCI memory mapped at 0x7f0240640000
EAL:   PCI memory mapped at 0x7f0240660000
PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x10bc
TRex cfg port id: 0 <-> DPDK port id: 0
TRex cfg port id: 1 <-> DPDK port id: 1
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 flags           : 10f00
 write_file      : 0
 verbose         : 7
 realtime        : 1
 flip            : 0
 cores           : 1
 single core     : 0
 flow-flip       : 0
 no clean close  : 0
 zmq_publish     : 0
 vlan mode       : 0
 client_cfg      : 0
 mbuf_cache_disable  : 0
 vm mode         : 0
 cfg file        : cap2/imix.yaml
 mac file        :
 out file        :
 client cfg file :
 duration        : 5
 factor          : 1
 mbuf_factor     : 1
 latency         : 1000 pkt/sec
 zmq_port        : 4500
 telnet_port     : 4501
 expected_ports  : 2
 tw_bucket_usec  : 20.000000 usec
 tw_buckets      : 1024 usec
 tw_levels       : 3 usec
 port : 0 dst:00:15:17:e9:cd:5c  src:00:15:17:e9:cd:5d
 port : 1 dst:00:15:17:e9:cd:5d  src:00:15:17:e9:cd:5c
 port : 2 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 3 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 4 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 5 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 6 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 7 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 8 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 9 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 10 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 11 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 12 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 13 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 14 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 port : 15 dst:00:00:00:01:00:00  src:00:00:00:00:00:00
 Total Memory :
 MBUF_64                                   : 81900
 MBUF_128                                  : 40950
 MBUF_256                                  : 16380
 MBUF_512                                  : 16380
 MBUF_1024                                 : 16380
 MBUF_2048                                 : 69615
 MBUF_4096                                 : 256
 MBUF_9K                                   : 1024
 MBUF_DP_FLOWS                             : 524288
 MBUF_GLOBAL_FLOWS                         : 5120
 get_each_core_dp_flows                    : 524288
 Total memory                              :     104.00 Mbytes
 Number of ports found: 2


if_index : 0
driver name : net_e1000_em
min_rx_bufsize : 256
max_rx_pktlen  : 9234
max_rx_queues  : 1
max_tx_queues  : 1
max_mac_addrs  : 15
rx_offload_capa : 0
tx_offload_capa : 0
 set driver name net_e1000_em
port 0 desc: 82571EB Gigabit Ethernet Controller (Copper)
PMD: eth_em_rx_queue_setup(): sw_ring=0x7f0240413240 hw_ring=0x7f0240414340 dma_addr=0xa7414340
PMD: eth_em_tx_queue_setup(): sw_ring=0x7f0240401100 hw_ring=0x7f0240403200 dma_addr=0xa7403200
PMD: eth_em_rx_init(): forcing scatter mode
PMD: eth_em_start(): <<
port 1 desc: 82571EB Gigabit Ethernet Controller (Copper)
PMD: eth_em_rx_queue_setup(): sw_ring=0x7f013fc02e40 hw_ring=0x7f013fc03e80 dma_addr=0x5f7803e80
PMD: eth_em_tx_queue_setup(): sw_ring=0x7f013fc00e00 hw_ring=0x7f020ca6fe40 dma_addr=0x52706fe40
PMD: eth_em_rx_init(): forcing scatter mode
PMD: eth_em_start(): <<
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 1000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 1000 Mbps - full-duplex
promiscuous  : 0
 -------------------------------
RX core uses TX queue number 0 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0      0
 -------------------------------
 number of ports         : 2
 max cores for 2 ports   : 1
 max queue per port      : 3
no client generator pool configured, using default pool
no server generator pool configured, using default pool
 -- loading cap file cap2/udp_64B.pcap
.......

I hope that will help you and thank you for your help.

Dne středa 17. května 2017 15:54:23 UTC+2 Hanoch Haim napsal(a):

ido barnea

unread,
May 18, 2017, 4:26:19 AM5/18/17
to Martin Goldammer, TRex Traffic Generator
Hi Martin,
Our guess here is that your driver supports (or does not support actually) different capabilities than the e1000_em we have in our lab.
Did you compile the code, or loaded formal version?

If you are able to compile, please get latest code from GitHub, and remove following line from dpdk_main.cpp:
m_port_conf.rxmode.hw_strip_crc=1;    (should be around line 1336. Exact line number depends on your version).

Then run, and report the results.

If this still does not work, will help if you could try different versions, and identify the exact version where it stopped working (again, on our cards this is working, so we can’t do this test).

Thanks,
Ido
 

ido barnea

unread,
May 18, 2017, 4:47:48 AM5/18/17
to Martin Goldammer, TRex Traffic Generator
Hi Martin,
I accidentally copied the wrong line below.
Please remove the following:
m_port_conf.rxmode.enable_scatter = 1;  (it is in the same place, 1 line below the previous one I mentioned).

Thanks,
Ido

ido barnea

unread,
May 18, 2017, 5:06:30 AM5/18/17
to Martin Goldammer, TRex Traffic Generator
And another small change you can test (together with below).
Change one line (other lines are for context)

class CTRexExtendedDriverVirtBase : public CTRexExtendedDriverBase {
public:
    TRexPortAttr * create_port_attr(tvpid_t tvpid,repid_t repid) {
        return new DpdkTRexPortAttr(tvpid, repid,true, true);
    }
    virtual void update_global_config_fdir(port_cfg_t * cfg) {}

    virtual int get_min_sample_rate(void){
        return ( RX_CHECK_MIX_SAMPLE_RATE_1G);
    }
    virtual void get_dpdk_drv_params(CTrexDpdkParams &p) {
        p.rx_data_q_num = 1;
        p.rx_drop_q_num = 0;
        p.rx_desc_num_data_q = RX_DESC_NUM_DATA_Q_VM;
        p.rx_desc_num_drop_q = RX_DESC_NUM_DROP_Q;
        p.tx_desc_num = TX_DESC_NUM;
        p.rx_mbuf_type = MBUF_2048;  <————— change this to:
        p.rx_mbuf_type = MBUF_9k;

/// 2048 should change to 9k

Martin Goldammer

unread,
May 18, 2017, 5:55:30 AM5/18/17
to TRex Traffic Generator, martin.g...@gmail.com
So I edited both files  (I can't found dpdk_main.cpp but only main_dpdk.cpp but I think that is the same file) after I run git pull and I have still the same issue. 
So I can try different versions of Trex and we will see. Do you have another hint?
I builded from source this way
cd linux_dpdk
./b configure
./b build
It is correct? Or I have to use this way?
cd linux
./b configure
./b build
Thank you for your reply.


Dne čtvrtek 18. května 2017 11:06:30 UTC+2 Ido napsal(a):

ido barnea

unread,
May 18, 2017, 6:14:16 AM5/18/17
to Martin Goldammer, TRex Traffic Generator
You are correct about file name.
Also, compilation from linux_dpdk is correct. (linux dir is simulation).
Since problem is reproducible very fast, another idea is to use git bisect (better than trying different versions). If you can tell us the exact commit that caused the issue, we will have much better understanding.

Thanks,
Ido

Martin Goldammer

unread,
May 18, 2017, 6:38:31 AM5/18/17
to TRex Traffic Generator, martin.g...@gmail.com
Now I am on commit b2db8e4d35a6cf1a2476d4dcfdee51c3d94209b9 after git pull command. But I will use git bisect and I will try to find commit with issue.

Dne čtvrtek 18. května 2017 12:14:16 UTC+2 Ido napsal(a):

Martin Goldammer

unread,
May 19, 2017, 5:18:32 AM5/19/17
to TRex Traffic Generator
So I tried build v2.18 and Trex stateless mode run correctly but there is problem with scapy server which don't starting. 

Output with scapy messages:

Starting Scapy server.... Scapy server failed to run
Output: Traceback (most recent call last):
 
File "./scapy_zmq_server.py", line 10, in <module>
   
from trex_stl_lib.api import *
 
File "/traffic_gen/trex-core/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py", line 4, in <module>
   
from .trex_stl_client import STLClient, LoggerApi
 
File "/traffic_gen/trex-core/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py", line 7, in <module>
   
from .trex_stl_jsonrpc_client import JsonRpcClient, BatchMessage
 
File "/traffic_gen/trex-core/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py", line 3, in <module>
   
import zmq
 
File "/traffic_gen/trex-core/scripts/external_libs/pyzmq-14.5.0/python2/ucs4/64bit/zmq/__init__.py", line 53, in <module>
   
from zmq import devices
 
File "/traffic_gen/trex-core/scripts/external_libs/pyzmq-14.5.0/python2/ucs4/64bit/zmq/devices/__init__.py", line 7, in <module>
   
from zmq.devices import basedevice, proxydevice, monitoredqueue, monitoredqueuedevice
ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory


Could not start scapy_daemon_server, which is needed by GUI to create packets.
If you don't need it, use --no-scapy-server flag.


I think that I need scapy for creating own packets for future so it's important for me. 
Anyway I can this commit (6fbb4da4f40da82e5825b484a904691da461cdf3) mark as good and continue with finding bad commit where can not run stateless mode on my interfaces.

Dne středa 17. května 2017 13:28:40 UTC+2 Martin Goldammer napsal(a):

Martin Goldammer

unread,
May 19, 2017, 8:58:46 AM5/19/17
to TRex Traffic Generator
Now, I can run
 ./t-rex-64 -i
 but when I want to connect to trex console via command 
./trex-console -v
I have this output:
Using '/usr/bin/python' as Python interpeter


Connecting to RPC server on localhost:4501

[verbose] Sending Request To Server:

{
    "id": "oq1lwl0c",
    "jsonrpc": "2.0",
    "method": "ping",
    "params": {}
}



[verbose] Server Response:

[
    {
        "id": "oq1lwl0c",
        "jsonrpc": "2.0",
        "result": {}
    }
]

[SUCCESS]


Connecting to publisher server on localhost:4500

[verbose] Sending Request To Server:

{
    "id": "mblkz56m",
    "jsonrpc": "2.0",
    "method": "publish_now",
    "params": {
        "baseline": false,
        "key": 475650816
    }
}



[verbose] Server Response:

[
    {
        "error": {
            "code": -32602,
            "message": "Bad paramters for method",
            "specific_err": "field 'api_h' is missing"
        },
        "id": "mblkz56m",
        "jsonrpc": "2.0"
    }
]

[FAILED]

Log:
field 'api_h' is missing

Shutting down RPC client

Do you know where is the issue?
Thank you very much.

PS:
I am sorry about mixing two kind of topics together.
I was looking for bad commit related for NIC driver issue but after build several commits I have another issue related with python, so I will be continued with testing later.


Dne středa 17. května 2017 13:28:40 UTC+2 Martin Goldammer napsal(a):
Hi all,

ido barnea

unread,
May 19, 2017, 10:51:43 AM5/19/17
to Martin Goldammer, TRex Traffic Generator
Regarding scapy-server. If you don’t use the GUI, you can run as suggested with   - - no-scappy.
Regarding other issue. Is it possible that you are using server from v2.18 and client from other version? Might cause issues.

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages