From: Lunyuan Cui Date: Wed, 13 Nov 2019 12:46:59 +0000 (+0000) Subject: net/e1000: fix link status X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a407d7c2ddfe05d0f13ca6170b1b8849023347e9;p=dpdk.git 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 Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 2d2dc9cbef..a3e30dbe5a 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));