From: Stephen Hemminger Date: Sat, 27 Dec 2014 17:41:35 +0000 (-0800) Subject: ixgbe: initialize link status on initialization X-Git-Tag: spdx-start~9828 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=359ae1cc65dedc6906c24bec5d29af18b604bbe1;p=dpdk.git 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. Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index e36cdf541b..07b72d7289 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c +++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c @@ -1514,6 +1514,8 @@ ixgbe_dev_start(struct rte_eth_dev *dev) 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;