summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCui LunyuanX <lunyuanx.cui@intel.com>2019-11-13 12:46:59 +0000
committerXiaolong Ye <xiaolong.ye@intel.com>2019-11-26 10:38:32 +0800
commit8d004fce3336e961a79fb77fdafff23e7c061246 (patch)
tree2967566179c8bd2cecab787effe6aa85fe5dada6
parent6b74749fd5e5d8d28f1885086a69cb88a86b6e45 (diff)
downloaddpdk-next-net-intel-8d004fce3336e961a79fb77fdafff23e7c061246.zip
dpdk-next-net-intel-8d004fce3336e961a79fb77fdafff23e7c061246.tar.gz
dpdk-next-net-intel-8d004fce3336e961a79fb77fdafff23e7c061246.tar.xz
net/e1000: fix link status
The link status got from link status register was not correct, because register has been reset when ports reset. After port reset, set the link status down. Fixes: c431ec66c54c ("net/igb: support setting link up or down") Cc: stable@dpdk.org Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
-rw-r--r--drivers/net/e1000/igb_ethdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
index 2d2dc9c..a3e30db 100644
--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -891,6 +891,8 @@ eth_igb_dev_init(struct rte_eth_dev *eth_dev)
/* enable support intr */
igb_intr_enable(eth_dev);
+ eth_igb_dev_set_link_down(eth_dev);
+
/* initialize filter info */
memset(filter_info, 0,
sizeof(struct e1000_filter_info));