[dts] [next][PATCH V1 2/14] conf/pktgen: packet generator configure file definition

yufengmx yufengx.mo at intel.com
Sun Apr 28 04:48:59 CEST 2019


packet generator configure file definition

Create a file named pktgen.cfg under conf folder to save ixia/trex configuration content.
Ixia and trex configuration content can be set in different section of pktgen.cfg.
Section title should be ixia/trex and it is case insensitive.

Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
 conf/pktgen.cfg | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/conf/pktgen.cfg b/conf/pktgen.cfg
index cc3fe61..667e1e8 100644
--- a/conf/pktgen.cfg
+++ b/conf/pktgen.cfg
@@ -1,9 +1,13 @@
 #PkTGEN configuration
 #[PKTGEN DPDK]
+# trex_root_path: trex tar package decompression directory
+#    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
 # 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. 
+# pci_blacklist --pci-blacklist, -b: Add a PCI device in black list.
 # pci_whitelist --pci-whitelist, -w: Add a PCI device in white list.
 # file_prefix --file-prefix: Prefix for hugepage filenames
 # socket_memory --socket-mem: Memory to allocate on specific sockets
@@ -12,6 +16,7 @@
 # start_trex: Set to a nonempty value to start trex ourselves.
 [TREX]
 trex_root_path=/opt/trex-core-2.26
+trex_lib_path=/opt/trex/vx.xxx/automation/trex_control_plane/interactive
 config_file=/etc/trex_cfg.yaml
 server=10.67.111.143
 pcap_file=/opt/trex-core-2.26/scripts/stl/sample.pcap
@@ -22,3 +27,19 @@ ip_dst=10.0.0.1
 warmup=15
 duration=-1
 #start_trex=yes
+
+# IXIA port Configuration
+# IxiaGroup: Group name for IXIA ports
+# Version  : IXIA TCL server version
+# IP       : IXIA server IP address
+# Ports    : [IXIA port list]
+# ixia_force100g: We need to set this to enable if we need IXIA port work in 100G mode.
+[IXIA]
+ixia_version=6.62
+ixia_ip=xxx.xxx.xxx.xxx
+ixia_ports=
+    card=1,port=1;
+    card=1,port=2;
+    card=1,port=3;
+    card=1,port=4;
+ixia_force100g=disable
-- 
1.9.3



More information about the dts mailing list