[dpdk-stable] [dpdk-dev] [PATCH] ethdev: fix errno to have positive value

Burakov, Anatoly anatoly.burakov at intel.com
Wed Jan 23 12:49:11 CET 2019


On 22-Jan-19 4:03 PM, Thomas Monjalon wrote:
> 21/01/2019 17:18, Andrew Rybchenko:
>> rte_errno should be set to positive value from errno.h plus
>> few RTE-specific values.
>>
>> Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation")
>> Fixes: 439a90b5f2a7 ("ethdev: reorder inline functions")
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
> 
> Applied, thanks
> 
> There are other occurrences in drivers:
> 	git grep 'rte_errno = -E'
> 

There could also possibly be rte_errno = -value; type assignments. I 
imagine most of them are correct (since the value itself was negative in 
the first place, so additional '-' flips the sign again), but it doesn't 
hurt to check :)

-- 
Thanks,
Anatoly


More information about the stable mailing list