Skip to content

Commit

Permalink
net/e1000: fix link status
Browse files Browse the repository at this point in the history
[ upstream commit a407d7c ]

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: c431ec6 ("net/igb: support setting link up or down")

Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
  • Loading branch information
Lunyuan Cui authored and kevintraynor committed Dec 11, 2019
1 parent 258c3b5 commit e12bbb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/e1000/igb_ethdev.c
Expand Up @@ -884,6 +884,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));
Expand Down

0 comments on commit e12bbb4

Please sign in to comment.