If you add the observations that (for linux-generic)
/**
* ODP buffer
*/
typedef uint32_t odp_buffer_t;
and
/**
* ODP packet descriptor
*/
typedef odp_buffer_t odp_packet_t;
and conversion is done as
odp_packet_t odp_packet_from_buffer(odp_buffer_t buf)
{
return (odp_packet_t)buf;
}
odp_buffer_t odp_buffer_from_packet(odp_packet_t pkt)
{
return (odp_buffer_t)pkt;
}
you might want to ask the same questions for odp_packet_t.
Best regards,
Ola
On Tue, Oct 21, 2014 at 4:52 PM, Gilad Ben Yossef <[email protected]> wrote:
>
>
> Quick question –
>
> What are the assumptions about an odp_buffer_t ?
>
> For example -
>
> Can an application assume the odp_buffer_t is always the same for the same
> buffer? I would assume no.
>
> Can an application assume the odp_buffer_t is globally unique? I would
> assume no.
>
> Can an application assume the odp_buffer_t it may be passed via shared
> memory and be expected keep its meaning? I would assume no.
>
> Anyone has any thought about this?
>
> Thanks,
>
> Gilad
>
>
>
>
>
>
>
> *Gilad Ben-Yossef*
>
> Software Architect
>
> EZchip Technologies Ltd.
>
> 37 Israel Pollak Ave, Kiryat Gat 82025 ,Israel
>
> Tel: +972-4-959-6666 ext. 576, Fax: +972-8-681-1483
> Mobile: +972-52-826-0388, US Mobile: +1-973-826-0388
>
> Email: [email protected], Web: http://www.ezchip.com
>
>
>
> *"Ethernet always wins."*
>
> — Andy Bechtolsheim
>
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp