From: Pablo de Lara Date: Tue, 10 Jun 2014 21:33:27 +0000 (+0100) Subject: ixgbe: fix link status interrupt of bypass device X-Git-Tag: spdx-start~10681 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=60a70d4e042350ca;p=dpdk.git ixgbe: fix link status interrupt of bypass device Function ixgbe_get_media_type_82599 returns media_type = ixgbe_media_type_unknown, when using an 82599 Bypass NIC, so that causes link status interrupt not to work properly. Signed-off-by: Pablo de Lara Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c index db07789659..7d9decd318 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c @@ -436,6 +436,9 @@ enum ixgbe_media_type ixgbe_get_media_type_82599(struct ixgbe_hw *hw) case IXGBE_DEV_ID_82599_SFP_SF2: case IXGBE_DEV_ID_82599_SFP_SF_QP: case IXGBE_DEV_ID_82599EN_SFP: +#ifdef RTE_NIC_BYPASS + case IXGBE_DEV_ID_82599_BYPASS: +#endif media_type = ixgbe_media_type_fiber; break; case IXGBE_DEV_ID_82599_CX4: