I think we have started to form a policy on adding new todos to the code.
We should not take a patch until we hook any todo to a traceable bug

You can create one here
https://bugs.linaro.org/enter_bug.cgi?product=OpenDataPlane.



On 11 September 2014 09:03, Ola Liljedahl <[email protected]> wrote:

> Shouldn't we have a TODO or FIXME comment in the code 
> (odp_crypto_session_destroy)?
> Some well-defined text that can easily be searched for?
>
> On 11 September 2014 03:10, Victor Kamensky <[email protected]>
> wrote:
>
>> Signed-off-by: Victor Kamensky <[email protected]>
>> ---
>>  platform/linux-generic/include/api/odp_crypto.h | 2 ++
>>  platform/linux-generic/odp_crypto.c             | 9 +++++++++
>>  2 files changed, 11 insertions(+)
>>
>> diff --git a/platform/linux-generic/include/api/odp_crypto.h
>> b/platform/linux-generic/include/api/odp_crypto.h
>> index 9220fb5..918249a 100644
>> --- a/platform/linux-generic/include/api/odp_crypto.h
>> +++ b/platform/linux-generic/include/api/odp_crypto.h
>> @@ -220,6 +220,8 @@ odp_crypto_session_create(odp_crypto_session_params_t
>> *params,
>>                           odp_crypto_session_t *session,
>>                           enum odp_crypto_ses_create_err *status);
>>
>> +int odp_crypto_session_destroy(odp_crypto_session_t ses);
>> +
>>  /**
>>   * Crypto session creation (asynchronous)
>>   *
>> diff --git a/platform/linux-generic/odp_crypto.c
>> b/platform/linux-generic/odp_crypto.c
>> index ef91a34..15aeb51 100644
>> --- a/platform/linux-generic/odp_crypto.c
>> +++ b/platform/linux-generic/odp_crypto.c
>> @@ -472,3 +472,12 @@ odp_crypto_get_operation_compl_packet(odp_buffer_t
>> completion_event)
>>  {
>>         return odp_packet_from_buffer(completion_event);
>>  }
>> +
>> +int odp_crypto_session_destroy(odp_crypto_session_t ses ODP_UNUSED)
>> +{
>> +       /*
>> +        * Just stub for now, there is no clean short way to reclaim
>> +        * slot of odp_crypto_global_t.sessions
>> +        */
>> +       return 0;
>> +}
>> --
>> 1.8.1.4
>>
>>
>> _______________________________________________
>> 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
>
>


-- 
*Mike Holmes*
Linaro Technical Manager / Lead
LNG - ODP
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to