ERROR number of dual if 3 is higher than defined in configuration file 2

440 views
Skip to first unread message

Kedar Deshpande

unread,
Aug 20, 2018, 6:14:31 PM8/20/18
to trex...@googlegroups.com

Hi,

Seeing this error when I increased the number of ports from 4 to 6. One of them is dummy port.

Am I missing something ?

sudo ./t-rex-64 -i
sudo: unable to resolve host localpc09
Killing Scapy server... Scapy server is killed
Starting Scapy server.... Scapy server is started
The ports are bound/configured.
Starting TRex v2.41 please wait ...
ERROR number of dual if 3 is higher than defined in configuration file 2
ERROR, the number of threads per dual ports should be the same for all dual ports


trex_cfg.yaml
### Config file generated by dpdk_setup_ports.py ###

- port_limit: 6
  version: 2
  interfaces: ['04:00.0','0c:00.0', '0b:00.0', '13:00.0', '1b:00.0','dummy']
  port_info:
      - ip: 11.11.11.2
        default_gw: 11.11.11.1
      - ip: 192.168.5.10
        default_gw: 192.168.5.1
      - ip: 192.168.4.10
        default_gw: 192.168.4.1
      - ip: 192.168.3.10
        default_gw: 192.168.3.1
      - ip: 192.168.2.10
        default_gw: 192.168.2.1

  platform:
      master_thread_id: 0
      latency_thread_id: 1
      dual_if:
        - socket: 0
          threads: [2]
        - socket: 0
          threads: [3]

Yaroslav Brustinov

unread,
Aug 20, 2018, 7:53:57 PM8/20/18
to keda...@gmail.com, TRex Traffic Generator
Hi,

Add one more section:

      - ip: 192.168.2.10
        default_gw: 192.168.2.1  

And one more section:

        - socket: 0
          threads: [3]  

(with different values) 
Reply all
Reply to author
Forward
0 new messages