summaryrefslogtreecommitdiffstats
path: root/src/stateless/cp/trex_stream.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-01 08:59:38 -0500
committerimarom <imarom@cisco.com>2016-02-01 09:03:03 -0500
commit11bcf4ca8fed5259e321c535bf90d0442e9b9746 (patch)
treed0c632c77fdb15773b7151c394224d6e7253c743 /src/stateless/cp/trex_stream.h
parentbdc690e8229808974a8f899e145931c06db6e082 (diff)
fix for http://trex-tgn.cisco.com/youtrack/issue/trex-174
Diffstat (limited to 'src/stateless/cp/trex_stream.h')
-rw-r--r--src/stateless/cp/trex_stream.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stateless/cp/trex_stream.h b/src/stateless/cp/trex_stream.h
index e854cdf7..525bf594 100644
--- a/src/stateless/cp/trex_stream.h
+++ b/src/stateless/cp/trex_stream.h
@@ -165,6 +165,19 @@ public:
}
+ /* can this stream be split ? */
+ bool is_splitable(uint8_t dp_core_count) const {
+
+ /* cont stream is always splitable */
+ if (m_type == stCONTINUOUS) {
+ return true;
+ }
+
+ int per_core_burst_total_pkts = (m_burst_total_pkts / dp_core_count);
+
+ return (per_core_burst_total_pkts > 0);
+
+ }
void set_multi_burst(uint32_t burst_total_pkts,
uint32_t num_bursts,