From d27a7e4e0babf386b51c49fae5beab311bfcedb8 Mon Sep 17 00:00:00 2001 From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 Subject: [PATCH] ixgbe: force phy power up/down Signed-off-by: Intel --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.20.1