net/fm10k: redefine link status semantics
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 24 Oct 2017 13:45:49 +0000 (06:45 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit6f22f2f67268254305f24d9bdc8629793b112eb7
treeefe029a4e8c22b1b07fac4f19660f83f20121449
parentdb303de11eedfaeb7d27a611cdcb3b8e8b633d93
net/fm10k: redefine link status semantics

As fm10k host interface is not directly connected to PHY, marking the
link status as UP doesn't mean a lot to the application.

So, this patch basically redefines the link status as the state of
switch manager: when switch manager is running, it's LINK_UP;
when switch manager goes down by calling the fmTerminate function,
status turns to LINK_DOWN.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/fm10k/fm10k.h
drivers/net/fm10k/fm10k_ethdev.c