summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stateless/cp/trex_stateless_port.cpp2
-rw-r--r--src/stateless/dp/trex_stateless_dp_core.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/stateless/cp/trex_stateless_port.cpp b/src/stateless/cp/trex_stateless_port.cpp
index f745bee9..a31847a5 100644
--- a/src/stateless/cp/trex_stateless_port.cpp
+++ b/src/stateless/cp/trex_stateless_port.cpp
@@ -22,10 +22,12 @@ limitations under the License.
#include <trex_stateless_port.h>
#include <string>
+#ifndef TREX_RPC_MOCK_SERVER
// DPDK c++ issue
#define UINT8_MAX 255
#define UINT16_MAX 0xFFFF
// DPDK c++ issue
+#endif
#include <rte_ethdev.h>
#include <os_time.h>
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp
index 1c96487d..3755b82c 100644
--- a/src/stateless/dp/trex_stateless_dp_core.cpp
+++ b/src/stateless/dp/trex_stateless_dp_core.cpp
@@ -26,10 +26,13 @@ limitations under the License.
#include <bp_sim.h>
+#ifndef TREX_RPC_MOCK_SERVER
+
// DPDK c++ issue
#define UINT8_MAX 255
#define UINT16_MAX 0xFFFF
// DPDK c++ issue
+#endif
#include <rte_ethdev.h>
#include "mbuf.h"