diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-11-09 14:18:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-09 14:18:06 +0000 |
commit | c5dfa2ba7c21dac5ff6895f6e0fa2dc1dcc50cc1 (patch) | |
tree | 53c2b81de0c9abdc089484956e88bdf59e63f2cc /VNFs | |
parent | e70037210bf844e7681003f806498f0cc18eba63 (diff) | |
parent | 1541251d789dca4799d8589317b91376eae4bcf3 (diff) |
Merge "Fix changing impair delay through command line"
Diffstat (limited to 'VNFs')
-rw-r--r-- | VNFs/DPPD-PROX/handle_impair.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_impair.c b/VNFs/DPPD-PROX/handle_impair.c index 78c9e400..805dedfc 100644 --- a/VNFs/DPPD-PROX/handle_impair.c +++ b/VNFs/DPPD-PROX/handle_impair.c @@ -193,6 +193,7 @@ static int handle_bulk_random_drop(struct task_base *tbase, struct rte_mbuf **mb struct task_impair *task = (struct task_impair *)tbase; uint8_t out[MAX_PKT_BURST]; struct ether_hdr * hdr[MAX_PKT_BURST]; + int ret = 0; for (uint16_t i = 0; i < n_pkts; ++i) { PREFETCH0(mbufs[i]); } @@ -210,8 +211,9 @@ static int handle_bulk_random_drop(struct task_base *tbase, struct rte_mbuf **mb out[i] = rand_r(&task->seed) <= task->tresh? 0 : OUT_DISCARD; } } - return task->base.tx_pkt(&task->base, mbufs, n_pkts, out); + ret = task->base.tx_pkt(&task->base, mbufs, n_pkts, out); task_impair_update(tbase); + return ret; } static int handle_bulk_impair(struct task_base *tbase, struct rte_mbuf **mbufs, uint16_t n_pkts) |