From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Yuanhan Liu <yliu@fridaylinux.org>,
Maxime Coquelin <maxime.coquelin@redhat.com>,
Tiwei Bie <tiwei.bie@intel.com>,
Shrikrishna Khare <skhare@vmware.com>
Cc: dev@dpdk.org, Ferruh Yigit <ferruh.yigit@intel.com>,
stephen@networkplumber.org, chas3@att.com
Subject: [dpdk-dev] [PATCH 2/2] net/vmxnet3: fix link autoneg value
Date: Fri, 16 Mar 2018 10:51:54 +0000 [thread overview]
Message-ID: <20180316105155.38843-2-ferruh.yigit@intel.com> (raw)
In-Reply-To: <20180316105155.38843-1-ferruh.yigit@intel.com>
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 <ferruh.yigit@intel.com>
---
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
next prev parent reply other threads:[~2018-03-16 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-16 10:51 [dpdk-dev] [PATCH 1/2] net/virtio: " Ferruh Yigit
2018-03-16 10:51 ` Ferruh Yigit [this message]
2018-03-16 11:06 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180316105155.38843-2-ferruh.yigit@intel.com \
--to=ferruh.yigit@intel.com \
--cc=chas3@att.com \
--cc=dev@dpdk.org \
--cc=maxime.coquelin@redhat.com \
--cc=skhare@vmware.com \
--cc=stephen@networkplumber.org \
--cc=tiwei.bie@intel.com \
--cc=yliu@fridaylinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).