[PATCH] fib: fix return value behavior

Medvedkin, Vladimir vladimir.medvedkin at intel.com
Wed Oct 16 17:59:48 CEST 2024


Hi Stephen,

On 16/10/2024 06:29, Stephen Hemminger wrote:
> On Tue, 15 Oct 2024 17:11:43 +0000
> Vladimir Medvedkin<vladimir.medvedkin at intel.com>  wrote:
>
>> Fixes the behavior of the rte_fib_rcu_qsbr_add() function regarding its
>> return value to align with the existing rte_fib API.
>>
>> Fixes: 96c3d06a3547 ("fib: implement RCU rule reclamation")
>>
>> Signed-off-by: Vladimir Medvedkin<vladimir.medvedkin at intel.com>
>> ---
> Looks good, although DPDK often uses rte_errno, it is better for this part
> in fib to be consistent across rcu and non-rcu variants.
Iwouldpreferit tobeconsistentwith the restof the FIBAPI.
> PS: there don't seem to be any negative tests on this function in test_fib.c
> would be good to hit some of the basics.
maybeIdidn'tquiteunderstandyou,butthere is basic negative teston 
thisfunction (plz see test_invalid_rcu() test)
>
> Reviewed-by: Stephen Hemminger<stephen at networkplumber.org>

-- 
Regards,
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20241016/f1d51edd/attachment.htm>


More information about the dev mailing list