ixgbe: force phy power up/down

Signed-off-by: Intel
This commit is contained in:
Intel 2013-06-03 00:00:00 +00:00 committed by Thomas Monjalon
parent 3af34dec0b
commit d27a7e4e0b

View File

@ -1205,7 +1205,6 @@ ixgbe_dev_start(struct rte_eth_dev *dev)
} }
/* Turn on the laser */ /* 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); err = ixgbe_check_link(hw, &speed, &link_up, 0);
@ -1297,7 +1296,6 @@ ixgbe_dev_stop(struct rte_eth_dev *dev)
ixgbe_stop_adapter(hw); ixgbe_stop_adapter(hw);
/* Turn off the laser */ /* Turn off the laser */
if (hw->phy.multispeed_fiber)
ixgbe_disable_tx_laser(hw); ixgbe_disable_tx_laser(hw);
ixgbe_dev_clear_queues(dev); ixgbe_dev_clear_queues(dev);