diff mbox

[PATCHv3,06/10] API: odp_pktio_open loop back interface

Message ID 1417442928-20680-7-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov Dec. 1, 2014, 2:08 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(+)

Comments

Maxim Uvarov Dec. 2, 2014, 3:11 p.m. UTC | #1
Merged this patch from my patches.

Maxim.

On 12/01/2014 06:13 PM, Savolainen, Petri (NSN - FI/Espoo) wrote:
> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
>
>
>> -----Original Message-----
>> From: lng-odp-bounces@lists.linaro.org [mailto:lng-odp-
>> bounces@lists.linaro.org] On Behalf Of ext Maxim Uvarov
>> Sent: Monday, December 01, 2014 4:09 PM
>> To: lng-odp@lists.linaro.org
>> Subject: [lng-odp] [PATCHv3 06/10] 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.
>>
>> 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 --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);
>>
>> --
>> 1.8.5.1.163.gd7aced9
>>
>>
>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/lng-odp
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);