I didn't thought of that. it's a great idea.

On 11/05/2015 11:20 AM, Savolainen, Petri (Nokia - FI/Espoo) wrote:
> In this case e.g. the recv callback function should be set to something that 
> reports the bug and exits. Application should never call recv if it first 
> declares pktio input disabled.
>
> -Petri
>
>> -----Original Message-----
>> From: lng-odp [mailto:[email protected]] On Behalf Of
>> EXT Nicolas Morey-Chaisemartin
>> Sent: Thursday, November 05, 2015 12:10 PM
>> To: LNG ODP Mailman List
>> Subject: [lng-odp] pktio in/out mode
>>
>> Hi,
>>
>> In the current implementation, it is possible to open a pktio and
>> disable Rx, Tx (or even both) using odp_pktio_params_t.
>> However these value are never checked. So if a user calls send/recv
>> while it is disabled, the pktio specific implementation is still
>> called.
>>
>> As the goal of one way pktio is to free resources, there's a high
>> probability that things might go wrong if a user call goes through.
>> I can check that in my implementation but I fill that like start/stop
>> check, these checks should be done at the pktio level and not in the
>> pktio specific implementation.
>>
>> If every one agrees, I'll post a patch.
>>
>> Nicolas
>> _______________________________________________
>> lng-odp mailing list
>> [email protected]
>> https://lists.linaro.org/mailman/listinfo/lng-odp

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to