From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 631B35F2A for ; Fri, 16 Mar 2018 11:52:02 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2018 03:52:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,315,1517904000"; d="scan'208";a="37975750" Received: from silpixa00399777.ir.intel.com (HELO silpixa00399777.ger.corp.intel.com) ([10.237.222.236]) by fmsmga004.fm.intel.com with ESMTP; 16 Mar 2018 03:51:59 -0700 From: Ferruh Yigit To: Yuanhan Liu , Maxime Coquelin , Tiwei Bie , Shrikrishna Khare Cc: dev@dpdk.org, Ferruh Yigit , stephen@networkplumber.org, chas3@att.com Date: Fri, 16 Mar 2018 10:51:54 +0000 Message-Id: <20180316105155.38843-2-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180316105155.38843-1-ferruh.yigit@intel.com> References: <20180316105155.38843-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH 2/2] net/vmxnet3: fix link autoneg value 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: Fri, 16 Mar 2018 10:52:02 -0000 link_autoneg shold use ETH_LINK_FIXED, not ETH_LINK_SPEED_FIXED Fixes: cd3c44c48caa ("net/vmxnet3: keep consistent link status") Cc: chas3@att.com Signed-off-by: Ferruh Yigit --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 2f65fe479..426008722 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -320,7 +320,7 @@ eth_vmxnet3_dev_init(struct rte_eth_dev *eth_dev) memset(&link, 0, sizeof(link)); link.link_duplex = ETH_LINK_FULL_DUPLEX; link.link_speed = ETH_SPEED_NUM_10G; - link.link_autoneg = ETH_LINK_SPEED_FIXED; + link.link_autoneg = ETH_LINK_FIXED; rte_eth_linkstatus_set(eth_dev, &link); return 0; @@ -813,7 +813,7 @@ vmxnet3_dev_stop(struct rte_eth_dev *dev) memset(&link, 0, sizeof(link)); link.link_duplex = ETH_LINK_FULL_DUPLEX; link.link_speed = ETH_SPEED_NUM_10G; - link.link_autoneg = ETH_LINK_SPEED_FIXED; + link.link_autoneg = ETH_LINK_FIXED; rte_eth_linkstatus_set(dev, &link); } -- 2.13.6