From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo de Lara Subject: [PATCH v2] ixgbe: Fix for 82599 Bypass NIC, getting incorrect media type Date: Tue, 10 Jun 2014 22:33:27 +0100 Message-ID: <1402436007-25730-1-git-send-email-pablox.de.lara.guarch@intel.com> References: <1402412388-12580-1-git-send-email-pablox.de.lara.guarch@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1402412388-12580-1-git-send-email-pablox.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Pablo de Lara 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. change in v2: Fixed compilation error when RTE_NIC_BYPASS=n Signed-off-by: Pablo de Lara --- lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_82599.c index db07789..7d9decd 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: -- 1.7.0.7