summaryrefslogtreecommitdiffstats
path: root/src/stateless/dp/trex_stateless_dp_core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stateless/dp/trex_stateless_dp_core.cpp')
-rw-r--r--src/stateless/dp/trex_stateless_dp_core.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp
index 56184aeb..b6aa15be 100644
--- a/src/stateless/dp/trex_stateless_dp_core.cpp
+++ b/src/stateless/dp/trex_stateless_dp_core.cpp
@@ -27,11 +27,16 @@ limitations under the License.
#include "trex_streams_compiler.h"
#include "mbuf.h"
-
-class DPCoreWrapper : public CVirtualIF {
+/**
+ * a wrapper for service mode
+ * it will move the fast send_node virtual call
+ * to send_node_service_mode which does capturing
+ *
+ */
+class ServiceModeWrapper : public CVirtualIF {
public:
-
- DPCoreWrapper() {
+
+ ServiceModeWrapper() {
m_wrapped = nullptr;
}
@@ -644,7 +649,7 @@ TrexStatelessDpCore::TrexStatelessDpCore() {
m_core = NULL;
m_duration = -1;
m_is_service_mode = NULL;
- m_wrapper = new DPCoreWrapper();
+ m_wrapper = new ServiceModeWrapper();
}
TrexStatelessDpCore::~TrexStatelessDpCore() {