diff mbox

[PATCHv4,06/11] API: odp_pktio_open loop back interface

Message ID 1417450537-7640-7-git-send-email-maxim.uvarov@linaro.org
State Accepted
Commit e7cf1ba4365c3047373d81c71c5e0851cb5d11db
Headers show

Commit Message

Maxim Uvarov Dec. 1, 2014, 4:15 p.m. UTC
Define special name for loop back interface. That interface
can be used mostly for testing. Each implementation can interpret
that loop to any other device.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/include/api/odp_packet_io.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/platform/linux-generic/include/api/odp_packet_io.h b/platform/linux-generic/include/api/odp_packet_io.h
index 65adbe5..1190355 100644
--- a/platform/linux-generic/include/api/odp_packet_io.h
+++ b/platform/linux-generic/include/api/odp_packet_io.h
@@ -36,6 +36,10 @@  extern "C" {
  * @param pool   Pool to use for packet IO
  *
  * @return ODP packet IO handle or ODP_PKTIO_INVALID on error
+ *
+ * @note dev name loop is specially pktio reserved name for
+ *	 device used for testing. Usually it's loop back
+ *	 interface.
  */
 odp_pktio_t odp_pktio_open(const char *dev, odp_buffer_pool_t pool);