From 74144773b9d37e6e2816eba6f2f7b7a7e01b6eef Mon Sep 17 00:00:00 2001 From: Shelton Chia Date: Sat, 7 Mar 2015 11:57:38 +0800 Subject: [PATCH] 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 --- lib/librte_pmd_e1000/igb_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.20.1