From 359ae1cc65dedc6906c24bec5d29af18b604bbe1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 27 Dec 2014 09:41:35 -0800 Subject: [PATCH] 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 --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1