aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2016-09-08 09:30:39 +0200
committerAnders Roxell <anders.roxell@linaro.org>2016-09-08 10:03:05 +0200
commit433c46eebf26c93e1a91744de8330d99752b83c0 (patch)
treec0c14c062d2c9afb3c087581006b142a88069408
parentc133ef881f59fab86b1be788e15efc3dca0e2ed2 (diff)
l2fwd: pull latest changes from odp
sha in odp: "2d63311 test: l2fwd: remove wait time from sched mode" Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r--l2fwd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/l2fwd.c b/l2fwd.c
index 6ac5a29..340f089 100644
--- a/l2fwd.c
+++ b/l2fwd.c
@@ -305,7 +305,6 @@ static int run_worker_sched_mode(void *arg)
odp_packet_t pkt_tbl[MAX_PKT_BURST];
int pkts;
int thr;
- uint64_t wait;
int dst_idx;
int thr_idx;
int i;
@@ -344,14 +343,13 @@ static int run_worker_sched_mode(void *arg)
odp_barrier_wait(&barrier);
- wait = odp_schedule_wait_time(ODP_TIME_MSEC_IN_NS * 100);
-
/* Loop packets */
while (!exit_threads) {
int sent;
unsigned tx_drops;
- pkts = odp_schedule_multi(NULL, wait, ev_tbl, MAX_PKT_BURST);
+ pkts = odp_schedule_multi(NULL, ODP_SCHED_NO_WAIT, ev_tbl,
+ MAX_PKT_BURST);
if (pkts <= 0)
continue;