From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Dai Subject: [PATCH 11/29] net/ixgbe/base: fix getting phy type Date: Sun, 4 Dec 2016 14:31:22 +0800 Message-ID: <1480833100-48545-11-git-send-email-wei.dai@intel.com> References: <1480833100-48545-1-git-send-email-wei.dai@intel.com> Cc: dev@dpdk.org, Wei Dai To: helin.zhang@intel.com, konstantin.ananyev@intel.com Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 259875678 for ; Sun, 4 Dec 2016 07:35:37 +0100 (CET) In-Reply-To: <1480833100-48545-1-git-send-email-wei.dai@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes ixgbe_get_supported_physical_layer_X550em to correctly return physical layer as IXGBE_PHYSICAL_LAYER_1000BASE_T for some devices. Fixes: 76d5b807ff74 ("ixgbe/base: new X557 phy") Fixes: d2e72774e58c ("ixgbe/base: support X550") Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_x550.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c index a338a79..d5dffdf 100644 --- a/drivers/net/ixgbe/base/ixgbe_x550.c +++ b/drivers/net/ixgbe/base/ixgbe_x550.c @@ -3797,6 +3797,8 @@ u32 ixgbe_get_supported_physical_layer_X550em(struct ixgbe_hw *hw) if (ext_ability & IXGBE_MDIO_PHY_1000BASET_ABILITY) physical_layer |= IXGBE_PHYSICAL_LAYER_1000BASE_T; break; + case ixgbe_phy_m88: + physical_layer = IXGBE_PHYSICAL_LAYER_1000BASE_T; default: break; } -- 2.7.4