[dpdk-dev] [PATCH 1/2] ethdev: deduplicate functions to get link infos

Andrew Rybchenko arybchenko at solarflare.com
Mon Apr 13 16:14:22 CEST 2020


On 4/8/20 1:26 AM, Thomas Monjalon wrote:
> There are two function to retrieve link informations.
> The only small difference is a boolean timeout parameter.
> Adding a new static function, with an additional parameter,
> removes the code redundancy.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>

and I'm fine with get_link_infos() function name since
there a number of ^get_*() static functions in the file.



More information about the dev mailing list