Skip to contentSkip to conversation

failsafe depending on return value from PMD link_update function.

BUG Stephen Hemminger 2 participants 2 messages Jan 16, 2018

lore
Share & tools
lore
#0 lore raw

While doing link status refactoring, I noticed that the eth_dev_link_update function return value is unused by common code (in rte_eth_dev_link_get); but is being expected by failsafe driver.

The return values are not consistent across drivers, and link update function is only valid if device is not using LSC. Therefore, the failsafe PMD should not be calling device internal functions directly and expecting a valid return value.

#1 lore raw

Hi Stephen,

Quoted 7 lines · Stephen Hemminger

While doing link status refactoring, I noticed that the eth_dev_link_update function return value is unused by common code (in rte_eth_dev_link_get); but is being expected by failsafe driver.

The return values are not consistent across drivers, and link update function is only valid if device is not using LSC. Therefore, the failsafe PMD should not be calling device internal functions directly and expecting a valid return value.

Yes, you are right. I will look into it.

Signature · 2 lines
Gaëtan Rivet
6WIND