net/fm10k: initialize link status in device start
authorXiao Wang <xiao.w.wang@intel.com>
Thu, 22 Jun 2017 11:20:03 +0000 (04:20 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
commit20c0a0c4e8c6cd626a93f2a4b0cdc3cb2a36b6ac
tree62d3116eb6d334f5484f4ea98bbbc98064d2ac75
parent84a9b48128c18c9713edd46400ed8840eb7a931f
net/fm10k: initialize link status in device start

Fm10k host driver can't manage PHY directly and provides a fake link
status by always reporting LINK_UP. We should initialize link status
in device start, otherwise application will get LINK_DOWN status
when LSC configured.

Fixes: 9ae6068c86da ("fm10k: add dev start/stop")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c