The checks are there to avoid buffer overruns. Whether or not the copies
make sense is an application responsibility.

On Monday, October 5, 2015, Nicolas Morey-Chaisemartin <[email protected]>
wrote:

>
>
> On 10/01/2015 05:05 PM, Bill Fischofer wrote:
> > odp_packet_copy() can copy between pools, which may have different sized
> > user areas, hence the size checks.
> Ok. But then does it make sense to copy a subpart of the user data ?
> If dst user_area >= src user_area it's going to work well but in the other
> case,
> we throw away part of the user data.
> Meaning that the API documentation is "wrong"
> "The new packet is exact copy of the source packet (incl. data and
> metadata)"
>
> Nicolas
>
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to