[dpdk-dev] [RFC 09/14] sfc: use new rte_eth_link helpers

Stephen Hemminger stephen at networkplumber.org
Mon Jul 17 18:02:29 CEST 2017


On Sun, 16 Jul 2017 16:48:50 +0300
Andrew Rybchenko <arybchenko at solarflare.com> wrote:

> On 07/14/2017 09:30 PM, Stephen Hemminger wrote:
> > Use the new API (_rte_eth_link_update) to handle link status update.
> > ALso fixes a bug where this driver was not returning -1 when link status changed.  
> 
> It is really good that you raise it, since:
>   -  as far as I can see the return value of the link_update is never used
>   - return value is not described and it is unclear what is meant by "link
>      status changed" since initial point is unspecified
> 
> We have interpreted link status change as change in data->dev_link
> made in the current execution flow, but not in parallel execution flow.

All drivers must do the same thing. Private interpretation is not good.


More information about the dev mailing list