diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-25 18:55:41 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-12-02 18:06:16 +0300 |
commit | e7cf1ba4365c3047373d81c71c5e0851cb5d11db (patch) | |
tree | 83897675dd1edbc45af1fd5f33646a95ba8f354c /platform/linux-generic/include | |
parent | 8e1b6c2a8121bdb0fb60a7a17be3558ee22772a8 (diff) |
API: odp_pktio_open loop back interface
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.
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include')
-rw-r--r-- | platform/linux-generic/include/api/odp_packet_io.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/linux-generic/include/api/odp_packet_io.h b/platform/linux-generic/include/api/odp_packet_io.h index 667395c3f..5f7ba7c5c 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); |