summaryrefslogtreecommitdiffstats
path: root/src/trex_defs.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-08-10 17:45:36 +0300
committerimarom <imarom@cisco.com>2016-08-15 16:03:59 +0300
commitba7b5dff853a3b11b0cc2e7b29cfc1cd99e606f7 (patch)
tree25a2d72756217ef5d364a4c9b5a6e5e9a9d165a7 /src/trex_defs.h
parentce1de344579505665b88c2d548ca8d2acc135988 (diff)
core mask - first phase
Diffstat (limited to 'src/trex_defs.h')
-rw-r--r--src/trex_defs.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/trex_defs.h b/src/trex_defs.h
index 9abb38f5..c659c337 100644
--- a/src/trex_defs.h
+++ b/src/trex_defs.h
@@ -39,9 +39,18 @@ limitations under the License.
#define UINT64_MAX 0xFFFFFFFFFFFFFFFF
#endif
+struct cpu_vct_st {
+ cpu_vct_st() {
+ m_port1 = -1;
+ m_port2 = -1;
+ }
+ std::vector<uint8_t> m_history;
+ int m_port1;
+ int m_port2;
+};
+
typedef std::set<uint32_t> flow_stat_active_t;
typedef std::set<uint32_t>::iterator flow_stat_active_it_t;
-typedef std::vector<std::vector<uint8_t>> cpu_util_full_t;
-typedef std::vector<uint8_t> cpu_vct_t;
+typedef std::vector<cpu_vct_st> cpu_util_full_t;
#endif