Skip to contentSkip to conversation

ixgbe: initialize link status on initialization

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 27, 2014 – Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: initialize link status on initialization

The link_status variable is not set when device is initialized. This can lead to problems with link never being reported as up if using some SFP modules where the link is instantly on.

lib/librte_pmd_ixgbe/ixgbe_ethdev.c +2 -0
@@ -1314,6 +1314,8 @@
 	err = ixgbe_check_link(hw, &speed, &link_up, 0);
 	if (err)
 		goto error;
+	dev->data->dev_link.link_status = link_up;
+
 	err = ixgbe_get_link_capabilities(hw, &speed, &negotiate);
 	if (err)
 		goto error;