summaryrefslogtreecommitdiffstats
path: root/src/stateless
diff options
context:
space:
mode:
Diffstat (limited to 'src/stateless')
-rw-r--r--src/stateless/cp/trex_stateless_port.cpp8
-rw-r--r--src/stateless/cp/trex_streams_compiler.cpp4
-rw-r--r--src/stateless/cp/trex_streams_compiler.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/stateless/cp/trex_stateless_port.cpp b/src/stateless/cp/trex_stateless_port.cpp
index 10e863c5..0e45bf0b 100644
--- a/src/stateless/cp/trex_stateless_port.cpp
+++ b/src/stateless/cp/trex_stateless_port.cpp
@@ -128,10 +128,10 @@ TrexStatelessPort::start_traffic(const TrexPortMultiplier &mul, double duration)
TrexStreamsCompiler compiler;
bool rc = compiler.compile(m_port_id,
- get_dp_core_count(),
- factor,
streams,
compiled_objs,
+ get_dp_core_count(),
+ factor,
&fail_msg);
if (!rc) {
throw TrexRpcException(fail_msg);
@@ -556,10 +556,10 @@ TrexStatelessPort::validate(void) {
std::string fail_msg;
bool rc = compiler.compile(m_port_id,
- get_dp_core_count(),
- 1.0,
streams,
compiled_objs,
+ get_dp_core_count(),
+ 1.0,
&fail_msg);
if (!rc) {
throw TrexException(fail_msg);
diff --git a/src/stateless/cp/trex_streams_compiler.cpp b/src/stateless/cp/trex_streams_compiler.cpp
index 36b165d1..d83e4ab6 100644
--- a/src/stateless/cp/trex_streams_compiler.cpp
+++ b/src/stateless/cp/trex_streams_compiler.cpp
@@ -370,10 +370,10 @@ TrexStreamsCompiler::pre_compile_check(const std::vector<TrexStream *> &streams,
*************************************/
bool
TrexStreamsCompiler::compile(uint8_t port_id,
- uint8_t dp_core_count,
- double factor,
const std::vector<TrexStream *> &streams,
std::vector<TrexStreamsCompiledObj *> &objs,
+ uint8_t dp_core_count,
+ double factor,
std::string *fail_msg) {
#if 0
diff --git a/src/stateless/cp/trex_streams_compiler.h b/src/stateless/cp/trex_streams_compiler.h
index 93a63061..e193a749 100644
--- a/src/stateless/cp/trex_streams_compiler.h
+++ b/src/stateless/cp/trex_streams_compiler.h
@@ -85,10 +85,10 @@ public:
*
*/
bool compile(uint8_t port_id,
- uint8_t dp_core_count,
- double factor,
const std::vector<TrexStream *> &streams,
std::vector<TrexStreamsCompiledObj *> &objs,
+ uint8_t dp_core_count = 1,
+ double factor = 1.0,
std::string *fail_msg = NULL);