It looks to me more like a bug in the application. I got the following understanding (probably incomplete, please correct) about the relation between pktios and queues: When a pktio is associated a queue as default input queue it means that the queue is the only way to get packets from the pktio and this happens only through the scheduler. In all other cases direct receive call should be used. The case of setting a default input queue for pktio and then polling the queue seems to me to be equivalent with direct receive from that pktio.
Alex On 4 September 2014 17:04, Taras Kondratiuk <[email protected]> wrote: > On 09/04/2014 04:06 PM, Alexandru Badicioiu wrote: > >> Yes, it does this but later on calls odp_pktio_inq_setdef: >> inq_def = QUEUE_CREATE(inq_name, ODP_QUEUE_TYPE_PKTIN, &qparam); >> if (inq_def == ODP_QUEUE_INVALID) { >> ODP_ERR("Error: pktio queue creation failed for %s\n", >> intf); >> exit(EXIT_FAILURE); >> } >> >> ret = odp_pktio_inq_setdef(pktio, inq_def); --------> this >> schedules the queue >> if (ret != 0) { >> ODP_ERR("Error: default input-Q setup for %s\n", intf); >> exit(EXIT_FAILURE); >> } >> > > Right. Looks like a bug in linux-generic implementation. >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
