From patchwork Sun Nov 9 13:01:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Choonho Son X-Patchwork-Id: 1224 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 29E1D58F7; Sun, 9 Nov 2014 13:52:03 +0100 (CET) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id 751B258DD for ; Sun, 9 Nov 2014 13:52:01 +0100 (CET) Received: by mail-pa0-f41.google.com with SMTP id rd3so6460211pab.14 for ; Sun, 09 Nov 2014 05:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=AtA6opU8skwf89fhdhqq3jD966x8OUmII+AKERUBvII=; b=nxRf8mvGgHqPTRJF7JXAsoKghkUE57UHczHyZ6oO1bR004rgyqrjhGP53kEZ9Yq7RV rM41qTNZQqIDoO4v9mzg4nw3DBLJJa+1M0QG4m/o0AZc5fwsiCJdZQeYm7umDUdmPPik bUO/hVnRBRoy0aHfwY0ACKwzmeaWob3/ig29qY+GLNR72ZDJyc8Cv5vMH2h8ACjkMQwB KNBG3teYhPsnKx099HB18ZaSVYSw++I6U/f794fjH3hd9Q15ubiElSIpn64AqOmp9ybz UNgIyR5AFltrMdxrRdmR6s9gSRMEnN78VmWNhfgn0nqRJMriCA/vCxZ9CLVArbhV0brE l5cQ== X-Received: by 10.68.246.229 with SMTP id xz5mr3055510pbc.131.1415538100936; Sun, 09 Nov 2014 05:01:40 -0800 (PST) Received: from localhost.localdomain ([112.186.72.30]) by mx.google.com with ESMTPSA id u8sm13798501pbs.40.2014.11.09.05.01.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Nov 2014 05:01:40 -0800 (PST) From: Choonho Son To: dev@dpdk.org Date: Sun, 9 Nov 2014 22:01:28 +0900 Message-Id: <1415538088-11249-1-git-send-email-choonho.son@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] ixgbe: fix link speed detection of ixgbevf 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Link speed of virtual function is detected as default speed(100Mbps, half-duplex). Before checking VF link, get_link_status must be set. Checking link status PMD: ixgbe_check_for_rst_vf(): ixgbe_check_for_rst_vf done PMD: ixgbe_check_for_rst_vf(): ixgbe_check_for_rst_vf Port 0 Link Up - speed 100 Mbps - half-duplex Signed-off-by: Choonho Son --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index 9c73a30..6eab1e8 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c +++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c @@ -2002,6 +2002,7 @@ ixgbe_dev_link_update(struct rte_eth_dev *dev, int wait_to_complete) memset(&old, 0, sizeof(old)); rte_ixgbe_dev_atomic_read_link_status(dev, &old); + hw->mac.get_link_status = 1; /* check if it needs to wait to complete, if lsc interrupt is enabled */ if (wait_to_complete == 0 || dev->data->dev_conf.intr_conf.lsc != 0) diag = ixgbe_check_link(hw, &link_speed, &link_up, 0);