From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E088DB0AE for ; Tue, 10 Jun 2014 23:33:41 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 10 Jun 2014 14:33:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.98,1011,1392192000"; d="scan'208";a="555356116" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 10 Jun 2014 14:33:32 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s5ALXV0W007269; Tue, 10 Jun 2014 22:33:31 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id s5ALXVs5025766; Tue, 10 Jun 2014 22:33:31 +0100 Received: (from pdelarax@localhost) by sivswdev01.ir.intel.com with id s5ALXVHp025762; Tue, 10 Jun 2014 22:33:31 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Tue, 10 Jun 2014 22:33:27 +0100 Message-Id: <1402436007-25730-1-git-send-email-pablox.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1402412388-12580-1-git-send-email-pablox.de.lara.guarch@intel.com> References: <1402412388-12580-1-git-send-email-pablox.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2] ixgbe: Fix for 82599 Bypass NIC, getting incorrect media type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 21:33:42 -0000 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