trex-core icon indicating copy to clipboard operation
trex-core copied to clipboard

v3.06 broken ASTF bi-directionality

Open wtfbbqhax opened this issue 1 year ago • 1 comments
trafficstars

I recently upgraded from v3.02 to v3.06, but I hadn't run TRex in almost a year, so I was surprised when thet tx counters for port 1 would not increment in any of the astf tests that I was running.

sudo ./t-rex-64 --astf -c 3 -i --learn-verify --cfg /volumes/trex/config.yaml

I start the traffic in the trex-console like this

trex>start -f astf/emix2.py -d 10
Loading traffic at acquired ports.                           [SUCCESS]
Starting traffic.                                            [SUCCESS]
2.26 [sec]

Actual Result

      ports |               0 |               1
 -----------------------------------------------------------------------------------------
   opackets |          150566 |               0
     obytes |        69388674 |               0
   ipackets |               0 |           12261
     ibytes |               0 |        68835454
    ierrors |               0 |          138305
    oerrors |               0 |               0
      Tx Bw |       5.92 Mbps |       0.00  bps

Expected Result

I ran the same test again with the prior version of Trex that I have, v3.02 and as you can see tx and rx counters for both ports is increasing.

-Per port stats table
      ports |               0 |               1
 -----------------------------------------------------------------------------------------
   opackets |          336607 |          509197
     obytes |        93198268 |       410406285
   ipackets |          509197 |          336607
     ibytes |       410406285 |        93198268
    ierrors |               0 |               0
    oerrors |               0 |               0
      Tx Bw |     153.22 Mbps |     651.74 Mbps

wtfbbqhax avatar Oct 06 '24 11:10 wtfbbqhax

Adding my trex config

- port_limit: 2
  version: 2
  interfaces: ["86:00.0", "86:00.1"]
  c: 3
  platform:
    master_thread_id: 0
    latency_thread_id: 1
    dual_if:
      - socket: 0
        threads: [3,4,5]
      - socket: 1
        threads: [6,7,8]
  port_info:  # set eh mac addr  mandatory
    # Either default_gw or dest_mac is mandatory
    - dest_mac: '40:A6:B7:BF:73:D1'
      src_mac: '40:A6:B7:BF:73:D0'
    - dest_mac: '40:A6:B7:BF:73:D0' # port 1
      src_mac: '40:A6:B7:BF:73:D1'

wtfbbqhax avatar Oct 06 '24 11:10 wtfbbqhax