From: Shelton Chia Date: Sat, 7 Mar 2015 03:57:38 +0000 (+0800) Subject: e1000: fix power down of fiber serdes link X-Git-Tag: spdx-start~9370 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=74144773b9d37e6e2816eba6f2f7b7a7e01b6eef;p=dpdk.git e1000: fix power down of fiber serdes link When stopping interface, only shutdown method for copper cable was called. Signed-off-by: Shelton Chia Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_e1000/igb_ethdev.c b/lib/librte_pmd_e1000/igb_ethdev.c index 79ad267246..b3892a5155 100644 --- a/lib/librte_pmd_e1000/igb_ethdev.c +++ b/lib/librte_pmd_e1000/igb_ethdev.c @@ -945,7 +945,10 @@ eth_igb_stop(struct rte_eth_dev *dev) } /* Power down the phy. Needed to make the link go Down */ - e1000_power_down_phy(hw); + if (hw->phy.media_type == e1000_media_type_copper) + e1000_power_down_phy(hw); + else + e1000_shutdown_fiber_serdes_link(hw); igb_dev_clear_queues(dev);