On Tue, Apr 4, 2017 at 1:53 PM, Maxim Uvarov <maxim.uva...@linaro.org> wrote:
> On 04/04/17 21:47, Brian Brooks wrote:
>> Signed-off-by: Brian Brooks <brian.bro...@arm.com>
>> Signed-off-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>
>> ---
>>  include/odp/api/spec/queue.h | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
>> index 7972feac..1cec4773 100644
>> --- a/include/odp/api/spec/queue.h
>> +++ b/include/odp/api/spec/queue.h
>> @@ -124,6 +124,11 @@ typedef struct odp_queue_param_t {
>>         * the queue type. */
>>       odp_queue_type_t type;
>>
>> +     /** Queue size
>> +       *
>> +       * Indicates the max ring size of the ring buffer. */
>> +     uint32_t ring_size;
>> +
>
> As Petri said api should say that has to be min size or requested size.
> I.e. implementation can allocate more then this size.

This seems to be a repost of v1. As mentioned in the earlier comments:

1. This needs to be size, not ring_size, since ring is an
implementation model, not something inherent to the API

2. We need a corresponding update to odp_queue_capability() to return
a max_size (or sizes)

3. The queue validation test needs to be updated to reflect these changes.

4. The user guide will need a documentation update to cover this as well.

Given that this is orthogonal to the rest of this series, the
suggestion was that it be posted as a separate series so we can
contrast it to Petri's suggested changes covering this area.

>
> Maxim.
>
>>       /** Enqueue mode
>>         *
>>         * Default value for both queue types is ODP_QUEUE_OP_MT. Application
>>
>

Reply via email to