ixgbe: force phy power up/down
authorIntel <intel.com>
Mon, 3 Jun 2013 00:00:00 +0000 (00:00 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Sep 2013 12:16:08 +0000 (14:16 +0200)
Signed-off-by: Intel
lib/librte_pmd_ixgbe/ixgbe_ethdev.c

index c61a927..759450b 100644 (file)
@@ -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);