From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 (+0000) Subject: ixgbe: force phy power up/down X-Git-Tag: spdx-start~11209 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d27a7e4e0babf386b51c49fae5beab311bfcedb8;p=dpdk.git ixgbe: force phy power up/down Signed-off-by: Intel --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index c61a9279d3..759450bc44 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c +++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c @@ -1205,8 +1205,7 @@ ixgbe_dev_start(struct rte_eth_dev *dev) } /* Turn on the laser */ - if (hw->phy.multispeed_fiber) - ixgbe_enable_tx_laser(hw); + ixgbe_enable_tx_laser(hw); err = ixgbe_check_link(hw, &speed, &link_up, 0); if (err) @@ -1297,8 +1296,7 @@ ixgbe_dev_stop(struct rte_eth_dev *dev) ixgbe_stop_adapter(hw); /* Turn off the laser */ - if (hw->phy.multispeed_fiber) - ixgbe_disable_tx_laser(hw); + ixgbe_disable_tx_laser(hw); ixgbe_dev_clear_queues(dev);