Re: [lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added limits for packet len on alloc

2016-11-11 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: Maxim Uvarov [mailto:maxim.uva...@linaro.org] > Sent: Friday, November 11, 2016 3:01 PM > To: Savolainen, Petri (Nokia - FI/Espoo) labs.com>; lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added l

Re: [lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added limits for packet len on alloc

2016-11-11 Thread Maxim Uvarov
On 11/11/16 13:50, Savolainen, Petri (Nokia - FI/Espoo) wrote: + /** Maximum packet length that will be allocated from + the pool. The maximum value is defined by pool + capability pkt.max_len. Use 0 for default (the +

Re: [lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added limits for packet len on alloc

2016-11-11 Thread Savolainen, Petri (Nokia - FI/Espoo)
> > + /** Maximum packet length that will be allocated from > > + the pool. The maximum value is defined by pool > > + capability pkt.max_len. Use 0 for default (the > > + pool maximum). */ > > + u

Re: [lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added limits for packet len on alloc

2016-11-10 Thread Maxim Uvarov
On 11/10/16 14:07, Petri Savolainen wrote: There's no use case for application to allocate zero length packets. Application should always have some knowledge about the new packet data length before allocation. Also implementations are more efficient when a check for zero length is avoided. Also

[lng-odp] [API-NEXT PATCH v3 17/19] api: packet: added limits for packet len on alloc

2016-11-10 Thread Petri Savolainen
There's no use case for application to allocate zero length packets. Application should always have some knowledge about the new packet data length before allocation. Also implementations are more efficient when a check for zero length is avoided. Also added a pool parameter to specify the maximum