diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-18 20:34:13 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-18 23:46:32 +0300 |
commit | 08def8d3b3e909b9bbafcb0f4820a84ab7d522ad (patch) | |
tree | 57d87f1ec9161ae9f2f7dc841fec131c7bcd18b6 /src/bp_sim.h | |
parent | 1069c2c1b67899515e9769aac5f23642cc85410c (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-x | src/bp_sim.h | 4 |
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]; |