Open HouMinXi opened 2 years ago
Here is my trex_cfg.yaml. I use xxv710 25G dual port as traffic generator. But in my test actually use one port to send and receive traffic.
`# cat /etc/trex_cfg.yaml
version: 2 interfaces: ['13:00.0', '13:00.1'] port_bandwidth_gb: 25 port_info:
platform: master_thread_id: 0 latency_thread_id: 12 dual_if:
memory: mbuf_64 : 81920 mbuf_128 : 51200 mbuf_256 : 38400 mbuf_512 : 38400 mbuf_1024 : 38400 mbuf_2048 : 38400 mbuf_4096 : 38400 mbuf_9k : 38400 global : 5120
Here is my start trex command ./t-rex-64 --no-ofed-check --no-scapy-server -i 1 -c 11 `
attach the nic info as below:
driver: i40e version: 4.18.0-305.el8_4.x firmware-version: 8.15 0x800096ca 20.0.17 expansion-rom-version: bus-info: 0000:13:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes
when I send a long time test about 1H, this issue can occur.
I use one port to send traffic on v2.93, but the wait_on_traffic function meet some issues. Could you please kindly have a look?
Here is my code pharse: def generate_single_port_traffic(stlclient, traffic, duration):
the error as below: Traceback (most recent call last): File "trex_rfc2544.py", line 794, in generate_single_port_traffic stlclient.wait_on_traffic(ports=real_ports, timeout=timeout_seconds) File "./current/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 51, in wrap2 ret = f(*args, *kwargs) File "./current/automation/trex_control_plane/interactive/trex/stl/trex_stl_client.py", line 885, in wait_on_traffic TRexClient.wait_on_traffic(self, ports, timeout) File "./current/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 51, in wrap2 ret = f(args, **kwargs) File "./current/automation/trex_control_plane/interactive/trex/common/trex_client.py", line 2095, in wait_on_traffic while set(self.get_active_ports()).intersection(ports): File "./current/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 48, in wrap2 raise TRexError("'{0}' - is not valid while disconnected".format(func_name)) trex.common.trex_exceptions.TRexError: 'get_active_ports' - is not valid while disconnected
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "trex_rfc2544.py", line 1745, in
lossrate=MyTRex.args.lose_rate)
File "trex_rfc2544.py", line 1172, in single_port_send_rfc2544_throughput
TRAFFICGEN_TREX_VERIFICATION_DURATION)
File "trex_rfc2544.py", line 799, in generate_single_port_traffic
stlclient.stop(ports=port_list)
File "./current/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 48, in wrap2
raise TRexError("'{0}' - is not valid while disconnected".format(func_name))
trex.common.trex_exceptions.TRexError: 'stop' - is not valid while disconnected
Shutting down RPC client