X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=docs%2Freport%2Fintroduction%2Ftest_environment_tg.rst;h=28b233a574af5c7a9f1a0965b1214b04f1265df7;hp=4ec30e5e805e22af1d03e6770c739c06059e8f64;hb=0bde2421b13ca9a420e7d68c23a3ff191b665b8c;hpb=ee1321d27bc39baab5bc2615834fd7392b79a160 diff --git a/docs/report/introduction/test_environment_tg.rst b/docs/report/introduction/test_environment_tg.rst index 4ec30e5e80..28b233a574 100644 --- a/docs/report/introduction/test_environment_tg.rst +++ b/docs/report/introduction/test_environment_tg.rst @@ -1,38 +1,60 @@ -TG Configuration - TRex ------------------------ +TG Settings - TRex +------------------ -**TG Version** +TG Version +~~~~~~~~~~ |trex-release| -**DPDK version** +DPDK Version +~~~~~~~~~~~~ -DPDK v17.11 +DPDK v19.05 -**TG Build Script used** +TG Installation +~~~~~~~~~~~~~~~ -`TRex intallation`_ +T-Rex installation is managed via Ansible role. -**TG Startup Configuration** +TG Startup Configuration +~~~~~~~~~~~~~~~~~~~~~~~~ :: - $ cat /etc/trex_cfg.yaml - - port_limit : 2 - 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: 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) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -**TG Startup Command** +:: + + $ 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: :: - $ sh -c 'cd /scripts/ && sudo nohup ./t-rex-64 -i -c 7 --iom 0 > /tmp/trex.log 2>&1 &'> /dev/null + core_mask=STLClient.CORE_MASK_PIN -**TG common API - pointer to driver** +TG API Driver +~~~~~~~~~~~~~ `TRex driver`_