X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=docs%2Freport%2Fintroduction%2Ftest_environment_tg.rst;h=411af83eb51e599f6ce80e474aba2ccb3c435c0b;hp=0d1f9143be7358231294d0fd0bf58e05f3c9fdd2;hb=07dc2213e6c0e95147e7025b02e91ed89ea07209;hpb=f619cc7649671f38fa23c11bf005a9acc4438bc1 diff --git a/docs/report/introduction/test_environment_tg.rst b/docs/report/introduction/test_environment_tg.rst index 0d1f9143be..411af83eb5 100644 --- a/docs/report/introduction/test_environment_tg.rst +++ b/docs/report/introduction/test_environment_tg.rst @@ -1,3 +1,5 @@ +.. _test_environment_tg: + TG Settings - TRex ------------------ @@ -9,7 +11,7 @@ TG Version DPDK Version ~~~~~~~~~~~~ -DPDK v19.05 +DPDK v21.02 TG Installation ~~~~~~~~~~~~~~~ @@ -23,31 +25,47 @@ TG Startup Configuration $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml - version: 2 - c: 7 + 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}] + - dest_mac: [${dest_mac1}] + src_mac: [${src_mac1}] + - dest_mac: [${dest_mac2}] + src_mac: [${src_mac2}] platform : master_thread_id: 0 - latency_thread_id: 8 + latency_thread_id: 9 dual_if: - socket: 0 - threads: [1, 2, 3, 4, 5, 6, 7] + threads: [1, 2, 3, 4, 5, 6, 7, 8] EOF' -TG Startup Command -~~~~~~~~~~~~~~~~~~ +TG Startup Command (Stateless Mode) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: - $ sudo -E -S sh -c "cd '/scripts/' && \ + $ 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 ~~~~~~~~~~~~~