From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id AD0081C01 for ; Thu, 26 Jul 2018 04:34:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2018 19:34:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,403,1526367600"; d="scan'208";a="243385526" Received: from wuyanglong.sh.intel.com ([10.67.111.89]) by orsmga005.jf.intel.com with ESMTP; 25 Jul 2018 19:34:17 -0700 From: Yanglong Wu To: dev@dpdk.org Cc: qi.z.zhang@intel.com, dong1.wang@intel.com, Yanglong Wu Date: Thu, 26 Jul 2018 10:24:49 +0800 Message-Id: <20180726022449.108272-1-yanglong.wu@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180724073032.33332-1-yanglong.wu@intel.com> References: <20180724073032.33332-1-yanglong.wu@intel.com> Subject: [dpdk-dev] [PATCH v3] net/ixgbe: fix ixgbevf link status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2018 02:34:21 -0000 ixgbevf can't get right link status unless it check PF link status in wait mode. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Yanglong Wu --- v3: change to wait mode in ixgbevf --- v2: no need to set link status again --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 26b192737..b90b352e3 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4006,7 +4006,8 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, wait = 0; if (vf) - diag = ixgbevf_check_link(hw, &link_speed, &link_up, wait); + /* ixgbevf need to wait to get link status */ + diag = ixgbevf_check_link(hw, &link_speed, &link_up, 1); else diag = ixgbe_check_link(hw, &link_speed, &link_up, wait); -- 2.11.0