summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.h
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-08-18 20:34:13 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-08-18 23:46:32 +0300
commit08def8d3b3e909b9bbafcb0f4820a84ab7d522ad (patch)
tree57d87f1ec9161ae9f2f7dc841fec131c7bcd18b6 /src/bp_sim.h
parent1069c2c1b67899515e9769aac5f23642cc85410c (diff)
TRex argument --dump-interfaces <list of PCI> (by default will take interfaces from /etc/trex_cfg.yaml if exists, if does not exists, will show all DPDK interfaces)
get interface speed from DPDK instead of using constants per driver add script to generate config file /etc/trex_cfg.yaml: sudo ./dpdk_setup_ports.py -c <list of PCI> show table of interfaces in sudo ./dpdk_setup_ports.py -t
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-xsrc/bp_sim.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h
index e1852da4..b1033496 100755
--- a/src/bp_sim.h
+++ b/src/bp_sim.h
@@ -764,7 +764,8 @@ public:
enum trex_run_mode_e {
RUN_MODE_INVALID,
RUN_MODE_BATCH,
- RUN_MODE_INTERACTIVE
+ RUN_MODE_INTERACTIVE,
+ RUN_MODE_DUMP_INFO,
};
enum trex_learn_mode_e {
@@ -837,6 +838,7 @@ public:
std::string out_file;
std::string prefix;
+ std::vector<std::string> dump_interfaces;
CMacAddrCfg m_mac_addr[TREX_MAX_PORTS];