aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report/introduction/test_environment_tg.rst
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2020-05-05 12:30:44 +0000
committerTibor Frank <tifrank@cisco.com>2020-05-27 05:38:14 +0000
commit7fda95c23cfc3eb05c252d70f0dc8acf10afb07e (patch)
tree6c9afee927569c5532c81150e5b3db37e8b0a863 /docs/report/introduction/test_environment_tg.rst
parent9fcbd26ba980767467fb902af603dd4a803daa9b (diff)
Report: Infra update
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: Ie39585e88460d9a5e3764726d93dc065f5cbacfb (cherry picked from commit 9c459a2b303eb8d776ac040bc82830d850a67623)
Diffstat (limited to 'docs/report/introduction/test_environment_tg.rst')
-rw-r--r--docs/report/introduction/test_environment_tg.rst35
1 files changed, 23 insertions, 12 deletions
diff --git a/docs/report/introduction/test_environment_tg.rst b/docs/report/introduction/test_environment_tg.rst
index 38dfb90070..190c7c3f5b 100644
--- a/docs/report/introduction/test_environment_tg.rst
+++ b/docs/report/introduction/test_environment_tg.rst
@@ -11,31 +11,42 @@ DPDK Version
DPDK v19.05
-TG Build Script Used
-~~~~~~~~~~~~~~~~~~~~
+TG Installation
+~~~~~~~~~~~~~~~
-`TRex installation`_
+T-Rex installation is managed via Ansible role.
TG Startup Configuration
~~~~~~~~~~~~~~~~~~~~~~~~
::
- $ cat /etc/trex_cfg.yaml
- - version : 2
- interfaces : ["0000:0d:00.0","0000:0d:00.1"]
- port_info :
- - dest_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf5]
- src_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf4]
- - dest_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf4]
- src_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf5]
+ $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml
+ - version: 2
+ c: 15
+ 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: 16
+ dual_if:
+ - socket: 0
+ threads: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
+ EOF'
TG Startup Command
~~~~~~~~~~~~~~~~~~
::
- $ sh -c 'cd <t-rex-install-dir>/scripts/ && sudo nohup ./t-rex-64 -i -c 7 --prefix $(hostname) --hdrh > /tmp/trex.log 2>&1 &'> /dev/null
+ $ sh -c 'cd <t-rex-install-dir>/scripts/ && \
+ sudo nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \
+ > /tmp/trex.log 2>&1 &' > /dev/null
TG API Driver
~~~~~~~~~~~~~