diff options
author | Hanoh Haim <hhaim@cisco.com> | 2015-11-11 15:37:46 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2015-11-11 15:37:46 +0200 |
commit | cc352e04fd45913132f3e1ddc86d88571c926879 (patch) | |
tree | 7d295ea1a2d68ec7587781a7567d3e17997d4eba /src/stateless/dp/trex_stream_node.h | |
parent | d04fb533c0843ebcd3eac5fbefa6f418582db7fc (diff) |
add first stl test and cleanup valgrind
Diffstat (limited to 'src/stateless/dp/trex_stream_node.h')
-rw-r--r-- | src/stateless/dp/trex_stream_node.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/stateless/dp/trex_stream_node.h b/src/stateless/dp/trex_stream_node.h index 92b428ab..2ffe04c3 100644 --- a/src/stateless/dp/trex_stream_node.h +++ b/src/stateless/dp/trex_stream_node.h @@ -22,6 +22,7 @@ limitations under the License. #define __TREX_STREAM_NODE_H__ #include <bp_sim.h> +#include <stdio.h> class TrexStatelessDpCore; @@ -42,6 +43,7 @@ private: public: + inline bool is_active() { return m_is_stream_active; } @@ -82,8 +84,6 @@ public: return ((pkt_dir_t)( m_flags &1)); } - - inline void set_cache_mbuf(rte_mbuf_t * m){ m_cache_mbuf=(void *)m; m_flags |= NODE_FLAGS_MBUF_CACHE; @@ -97,6 +97,12 @@ public: } } + void free_stl_node(); + + + void Dump(FILE *fd){ + fprintf(fd," %f, %lu, %lu \n",m_time,(ulong)m_port_id,(ulong)get_mbuf_cache_dir()); + } } __rte_cache_aligned; |