[dts] [PATCH V1 1/2] [next]conf/pktgen: update option description

yufengmx yufengx.mo at intel.com
Tue Aug 6 04:42:31 CEST 2019


*. change core mask to list format in pktgen.cfg and add description for core mask.
*. add synchronized option and its description in pktgen.cfg.

Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
 conf/pktgen.cfg | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/conf/pktgen.cfg b/conf/pktgen.cfg
index 667e1e8..90cf670 100644
--- a/conf/pktgen.cfg
+++ b/conf/pktgen.cfg
@@ -4,7 +4,19 @@
 #    trex server binary file is under this directory.
 # trex_lib_path(optional): trex stateless client libs directory, it is optional.
 #    If it is not set, use a default relative directory.
-# coremask -c: A hexadecimal bitmask of cores to run on
+# coremask:
+#    a list of masks (one core mask per port)
+#      0x3,0x5
+# synchronized:
+#    If coremask and synchronized are not set or None, trex will set core mask
+#    to:
+#       CORE_MASK_SPLIT
+#           In CORE_MASK_SPLIT all the traffic will be divided equally between all
+#           the cores, associated with each port
+#    If coremask is not set and synchronized is set to True, trex will set core 
+#    mask to:
+#       CORE_MASK_SINGLE
+            Only use one core for all ports
 # num -n: Number of memory channels
 # proc_type --proc-type: Type of this process
 # pci_blacklist --pci-blacklist, -b: Add a PCI device in black list.
@@ -21,7 +33,7 @@ config_file=/etc/trex_cfg.yaml
 server=10.67.111.143
 pcap_file=/opt/trex-core-2.26/scripts/stl/sample.pcap
 core_num=4
-#core_mask=0x3
+core_mask=0x3,0x5
 ip_src=16.0.0.1
 ip_dst=10.0.0.1
 warmup=15
-- 
1.9.3



More information about the dts mailing list