Added packet output mode for sink queues (odp_queue_t). This
mode is replacement of usage of default output queue, which
defined ODP_QUEUE_TYPE_PKTOUT. Direct mode gives optimal
packet output performance but sink queue mode enable better
application modularity (a module does not have to know if it's
the one sending packets out).

Signed-off-by: Petri Savolainen <[email protected]>
---
 include/odp/api/packet_io.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h
index 55d5d81..169edba 100644
--- a/include/odp/api/packet_io.h
+++ b/include/odp/api/packet_io.h
@@ -89,6 +89,8 @@ typedef enum odp_pktio_input_mode_t {
 typedef enum odp_pktio_output_mode_t {
        /** Direct packet output on the interface */
        ODP_PKTOUT_MODE_DIRECT = 0,
+       /** Packet output through sink queues */
+       ODP_PKTOUT_MODE_SINK_QUEUE,
        /** Packet output through traffic manager API */
        ODP_PKTOUT_MODE_TM,
        /** Application will never send to this interface */
-- 
2.6.3

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to