summaryrefslogtreecommitdiffstats
path: root/src/stub
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-10-28 12:45:57 +0200
committerimarom <imarom@cisco.com>2015-10-28 12:45:57 +0200
commitcb8bc9bda11c951b8b91a635d8d4d6df8d5a0ab8 (patch)
treecf63a7ec23094b48bcf59e5c0d95aa6d6aeb4e26 /src/stub
parentea0b6efc3a41f425e46d81f4b6b8bbbf3238add1 (diff)
support for multiple streams
Diffstat (limited to 'src/stub')
-rw-r--r--src/stub/trex_stateless_stub.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/stub/trex_stateless_stub.cpp b/src/stub/trex_stateless_stub.cpp
index 8e8d4fa8..06a9e189 100644
--- a/src/stub/trex_stateless_stub.cpp
+++ b/src/stub/trex_stateless_stub.cpp
@@ -4,7 +4,17 @@
class CFlowGenListPerThread;
class TrexStatelessCpToDpMsgBase;
-TrexStatelessDpCore::TrexStatelessDpCore(unsigned char, CFlowGenListPerThread*) {}
+TrexStatelessDpCore::TrexStatelessDpCore(unsigned char, CFlowGenListPerThread*) {
+ m_thread_id = 0;
+ m_core = NULL;
+
+ m_state = STATE_IDLE;
+
+ CMessagingManager * cp_dp = CMsgIns::Ins()->getCpDp();
+
+ m_ring_from_cp = cp_dp->getRingCpToDp(0);
+ m_ring_to_cp = cp_dp->getRingDpToCp(0);
+}
void TrexStatelessDpCore::start(){}