net/e1000: fix link status
authorLunyuan Cui <lunyuanx.cui@intel.com>
Wed, 13 Nov 2019 12:46:59 +0000 (12:46 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commita407d7c2ddfe05d0f13ca6170b1b8849023347e9
treee908ef6e879e8a785c1f8bbdb6bd4a9a49c348d6
parentc3f2fbff78cf5bd4f213b4f281251d401b09943f
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>
drivers/net/e1000/igb_ethdev.c