net/e1000: fix link status update
authorLunyuan Cui <lunyuanx.cui@intel.com>
Wed, 20 Nov 2019 09:22:03 +0000 (09:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commite7c1d6b2d8f320732780783ce0999367e9b86957
tree13dd855bcd45f3eca581e43a86831555a57ac2c2
parentf3e7fb09c6a4f47203e255f7129fc8bf62900c42
net/e1000: fix link status update

Meaningless to judge the link state according to the memset'ed
link variable, this patch fixes this logical issue.

In addition, this patch changes the variable from link_check to link_up
according to its real meaning.

Fixes: 80ba61115e77 ("net/e1000: use link status helper functions")
Cc: stable@dpdk.org
Signed-off-by: Lunyuan Cui <lunyuanx.cui@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/em_ethdev.c