diff options
author | pmikus <peter.mikus@protonmail.ch> | 2022-10-03 14:42:34 +0200 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-10-03 14:09:10 +0000 |
commit | 7931974228faf0900ab01273fa1edc60a170b2f4 (patch) | |
tree | f3059f198c4b408892775d09a59e86c89da93ae5 /docs/report/introduction/environment/tg.rst | |
parent | 64a688096073d08fe063b78615971aafab53cdb8 (diff) |
fix(docs): Static content
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I29c2c108cec7badbe302095d5797d39c0d34ad58
(cherry picked from commit 14fe52e81c59a5a3558f4f587e56b75e388191dc)
Diffstat (limited to 'docs/report/introduction/environment/tg.rst')
-rw-r--r-- | docs/report/introduction/environment/tg.rst | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/docs/report/introduction/environment/tg.rst b/docs/report/introduction/environment/tg.rst new file mode 100644 index 0000000000..411af83eb5 --- /dev/null +++ b/docs/report/introduction/environment/tg.rst @@ -0,0 +1,72 @@ +.. _test_environment_tg: + +TG Settings - TRex +------------------ + +TG Version +~~~~~~~~~~ + +|trex-release| + +DPDK Version +~~~~~~~~~~~~ + +DPDK v21.02 + +TG Installation +~~~~~~~~~~~~~~~ + +T-Rex installation is managed via Ansible role. + +TG Startup Configuration +~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml + - version: 2 + c: 8 + limit_memory: 8192 + interfaces: ["${pci1}","${pci2}"] + port_info: + - dest_mac: [${dest_mac1}] + src_mac: [${src_mac1}] + - dest_mac: [${dest_mac2}] + src_mac: [${src_mac2}] + platform : + master_thread_id: 0 + latency_thread_id: 9 + dual_if: + - socket: 0 + threads: [1, 2, 3, 4, 5, 6, 7, 8] + EOF' + +TG Startup Command (Stateless Mode) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + $ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \ + nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \ + --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null + +Also, Python client is now starting traffic with: + +:: + + core_mask=STLClient.CORE_MASK_PIN + +TG Startup Command (Stateful Mode) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + $ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \ + nohup ./t-rex-64 -i --prefix $(hostname) --astf --hdrh --no-scapy-server \ + --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null + + +TG API Driver +~~~~~~~~~~~~~ + +`TRex driver`_ |