I'm having an issues running traffic out of the specified ports in the configuration yaml file. I am trying to run out of the interfaces as such:
cisco@sre-ubjh2:/opt/trex/v2.91$ cat /etc/trex_cfg_mac.yaml
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: ['13:00.0', '04:00.0']
port_info:
- dest_mac: 00:50:56:a8:d6:c0 # TS 1 - 3
src_mac: 00:50:56:a8:e3:3b
- dest_mac: 00:50:56:a8:e3:3b
src_mac: 00:50:56:a8:d6:c0
platform:
master_thread_id: 0
latency_thread_id: 1
dual_if:
- socket: 0
threads: [2]
- socket: 0
threads: [3]
In that file you can see I have specified the correct masks and you can see that output from the ports here:
cisco@sre-ubjh2:/opt/trex/v2.91$ sudo ./dpdk_setup_ports.py -t
[sudo] password for cisco:
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| ID | NUMA | PCI | MAC | Name | Driver | Linux IF | Active |
+====+======+=========+===================+=============================+=========+==========+==========+
| 0 | -1 | 03:00.0 | 00:50:56:a8:cc:a1 | VMXNET3 Ethernet Controller | vmxnet3 | ens160 | *Active* |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| 1 | -1 | 04:00.0 | 00:50:56:a8:d6:c0 | VMXNET3 Ethernet Controller | igb_uio | | |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| 2 | -1 | 0b:00.0 | 00:50:56:a8:28:e8 | VMXNET3 Ethernet Controller | vmxnet3 | ens192 | *Active* |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| 3 | -1 | 0c:00.0 | 00:50:56:a8:7e:8a | VMXNET3 Ethernet Controller | igb_uio | | |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| 4 | -1 | 13:00.0 | 00:50:56:a8:e3:3b | VMXNET3 Ethernet Controller | igb_uio | | |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
| 5 | -1 | 1b:00.0 | 00:50:56:a8:70:bf | VMXNET3 Ethernet Controller | igb_uio | | |
+----+------+---------+-------------------+-----------------------------+---------+----------+----------+
When I run traffic the Total-Tx always matches the drop-rate as shown here:
-Per port stats table
ports | 0 | 1
-----------------------------------------------------------------------------------------
opackets | 101450 | 169049
obytes | 8137910 | 226941896
ipackets | 2 | 1
ibytes | 128 | 64
ierrors | 0 | 0
oerrors | 0 | 0
Tx Bw | 961.35 Kbps | 26.84 Mbps
-Global stats enabled
Cpu Utilization : 0.5 % 12.3 Gb/core
Platform_factor : 1.0
Total-Tx : 27.80 Mbps
Total-Rx : 0.00 bps
Total-PPS : 4.00 Kpps
Total-CPS : 100.27 cps
Expected-PPS : 4.00 Kpps
Expected-CPS : 100.00 cps
Expected-BPS : 27.81 Mbps
Active-flows : 13 Clients : 5 Socket-util : 2.1506 %
Open-flows : 6772 Servers : 8 Socket : 6772 Socket/Clients : 1354.4
drop-rate : 27.80 Mbps
current time : 68.9 sec
test duration : 3531.1 sec
*** TRex is shutting down - cause: 'CTRL + C detected'
Is there something that sticks out in my configuration file that is causing the traffic not to go out the correct interface?