aboutsummaryrefslogtreecommitdiffstats
path: root/docs/report/introduction/test_environment_tg.rst
blob: 0d1f9143be7358231294d0fd0bf58e05f3c9fdd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
TG Settings - TRex
------------------

TG Version
~~~~~~~~~~

|trex-release|

DPDK Version
~~~~~~~~~~~~

DPDK v19.05

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: 7
    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: 8
        dual_if:
            - socket: 0
              threads: [1, 2, 3, 4, 5, 6, 7]
  EOF'

TG Startup Command
~~~~~~~~~~~~~~~~~~

::

  $ sudo -E -S sh -c "cd '<t-rex-install-dir>/scripts/' && \
    nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \
    --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null

TG API Driver
~~~~~~~~~~~~~

`TRex driver`_