On 6/15/2020 10:01 AM, Ivan Dyukov wrote: > rte_ethdev has declared new NUM_UNKNOWN speed which > could be used in case when no speed information is available and > link is up. NUM_NONE should be returned, if link is down. > > Signed-off-by: Ivan Dyukov <i.dyu...@samsung.com> > --- > drivers/net/ice/ice_ethdev.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c > index d5110c439..1c0c087ea 100644 > --- a/drivers/net/ice/ice_ethdev.c > +++ b/drivers/net/ice/ice_ethdev.c > @@ -3112,8 +3112,11 @@ ice_link_update(struct rte_eth_dev *dev, int > wait_to_complete) > link.link_speed = ETH_SPEED_NUM_100G; > break; > case ICE_AQ_LINK_SPEED_UNKNOWN: > - default: > PMD_DRV_LOG(ERR, "Unknown link speed"); > + link.link_speed = ETH_SPEED_NUM_UNKNOWN; > + break; > + default: > + PMD_DRV_LOG(ERR, "None link speed"); > link.link_speed = ETH_SPEED_NUM_NONE; > break; > } >
Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>