> -----Original Message-----
> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of ext
> Zoltan Kiss
> Sent: Tuesday, April 28, 2015 8:59 PM
> To: lng-odp
> Subject: [lng-odp] how to receive and send on multiple threads with
> multiple NIC queues?
> 
> Hi,
> 
> During fixing a bug in odp-dpdk I've raised the above question and I
> realized I'm not sure about the answer.
> odp_pktio_open let's you open one handle per device, and the code

Note that the "device" is defined by the system. Multiple ODP pktio "devices" 
may share a physical interface. Each have unique name and application does not 
see the difference if the interface is physical or virtual. We may need to 
group pktio control API calls to physical vs. virtual - or otherwise handle 
physical interface control (e.g. link up/down) on these potentially virtual 
interfaces.

> doesn't seem to allow you to send/receive with different queues. You can
> only set the default queue.

This will be improved. Either use always classifier and output shaper/scheduler 
for this, or define a simple way to setup multiple input/output queues per 
interface. The current assumption is that classifier/output scheduler APIs are 
used always and thus per interface default queues may disappear.

> You can do the receive by odp_queue_deq(), but where are you supposed to
> assign the queue with the NIC queue? odp_queue_create()?

This patch adds pktio param that application must use to define which way it's 
going to receive the packets from the interface. Only one way can be selected 
per interface.

[lng-odp] [API-NEXT PATCH v2 3/5] api: packet_io: added odp_pktio_param_t


Default "queue" is an ODP queue. The type must match the POLL / SCHED selection.

-Petri

> 
> Regards,
> 
> Zoltan
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to