Message ID | 1440692327-8123-3-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show |
After sending that patch to mailing list I thought that it will be good just to move start in top level function. Will send v2, please skip it. Maxim. On 08/27/15 19:18, Maxim Uvarov wrote: > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> > --- > test/performance/odp_l2fwd.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c > index b25b978..014da16 100644 > --- a/test/performance/odp_l2fwd.c > +++ b/test/performance/odp_l2fwd.c > @@ -294,8 +294,14 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, > odp_pktio_to_u64(pktio), dev); > > /* no further setup needed for burst mode */ > - if (mode == APPL_MODE_PKT_BURST) > + if (mode == APPL_MODE_PKT_BURST) { > + ret = odp_pktio_start(pktio); > + if (ret) { > + LOG_ERR("Error: unable to start %s\n", dev); > + return ODP_PKTIO_INVALID; > + } > return pktio; > + } > > odp_queue_param_init(&qparam); > qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index b25b978..014da16 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -294,8 +294,14 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, odp_pktio_to_u64(pktio), dev); /* no further setup needed for burst mode */ - if (mode == APPL_MODE_PKT_BURST) + if (mode == APPL_MODE_PKT_BURST) { + ret = odp_pktio_start(pktio); + if (ret) { + LOG_ERR("Error: unable to start %s\n", dev); + return ODP_PKTIO_INVALID; + } return pktio; + } odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT;
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- test/performance/odp_l2fwd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)