Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.06 broken ASTF bi-directionality #1149

Open
wtfbbqhax opened this issue Oct 6, 2024 · 1 comment
Open

v3.06 broken ASTF bi-directionality #1149

wtfbbqhax opened this issue Oct 6, 2024 · 1 comment

Comments

@wtfbbqhax
Copy link

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
Copy link
Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant