dump packets (e.g. dump 1 0 1) was in some cases dumping more
packets than expected.
Proper count of packets is now dumped.
Change-Id: I0974465d617eda00e77ee87148bf96991ecd3ed7
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
t = lconf->tasks_all[lconf->msg.task_id];
if (lconf->msg.val) {
- t->aux->task_rt_dump.n_trace = lconf->msg.val;
-
if (task_base_get_original_rx_pkt_function(t) != rx_pkt_dummy) {
+ t->aux->task_rt_dump.n_trace = lconf->msg.val;
task_base_add_rx_pkt_function(t, rx_pkt_trace);
if (t->tx_pkt == tx_pkt_l3) {
if (t->aux->tx_pkt_orig)
for (uint32_t i = 0; i < n_trace; ++i) {
plogdx_info(mbufs[i], "TX: ");
}
- tbase->aux->task_rt_dump.n_trace - n_trace;
+ tbase->aux->task_rt_dump.n_trace -= n_trace;
}
}