summaryrefslogtreecommitdiffstats
path: root/src/stateless/dp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-05-09 14:25:21 +0300
committerimarom <imarom@cisco.com>2016-05-09 16:48:16 +0300
commitc4e6748cedf1f9f3a3c1916c96c4f044561b075b (patch)
treecc4a3f77bd6bc3127af9587eef765f9b11ff0cd9 /src/stateless/dp
parentdb9145d248720c633dd4da6c785e071198986326 (diff)
PCAP remote code review fixes
Diffstat (limited to 'src/stateless/dp')
-rw-r--r--src/stateless/dp/trex_stateless_dp_core.cpp10
-rw-r--r--src/stateless/dp/trex_stream_node.h2
2 files changed, 1 insertions, 11 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp
index dff5285d..1a730e66 100644
--- a/src/stateless/dp/trex_stateless_dp_core.cpp
+++ b/src/stateless/dp/trex_stateless_dp_core.cpp
@@ -946,19 +946,9 @@ TrexStatelessDpCore::stop_traffic(uint8_t port_id,
TrexStatelessDpPerPort * lp_port = get_port_db(port_id);
if ( lp_port->stop_traffic(port_id,stop_on_id,event_id) == false){
- /* nothing to do ! already stopped */
- //printf(" skip .. %f\n",m_core->m_cur_time_sec);
return;
}
- /* inform the control plane we stopped - this might be a async stop
- (streams ended)
- */
- #if 0
- if ( are_all_ports_idle() ) {
- /* just a place holder if we will need to do somthing in that case */
- }
- #endif
CNodeRing *ring = CMsgIns::Ins()->getCpDp()->getRingDpToCp(m_core->m_thread_id);
TrexStatelessDpToCpMsgBase *event_msg = new TrexDpPortEventMsg(m_core->m_thread_id,
diff --git a/src/stateless/dp/trex_stream_node.h b/src/stateless/dp/trex_stream_node.h
index bdbc5084..de4c21de 100644
--- a/src/stateless/dp/trex_stream_node.h
+++ b/src/stateless/dp/trex_stream_node.h
@@ -552,7 +552,7 @@ private:
uint8_t m_port_id;
/* pad to match the size of CGenNode */
- uint8_t m_pad_end[25];
+ uint8_t m_pad_end[33];
} __rte_cache_aligned;