net: hns3: fix return value error when query mac link status fail
driver inclusion category: bugfix bugzilla: NA CVE: NA Currently, PF queries the mac link status per second by calling function hclge_get_mac_link_status(). It return the error code when failed to send cmdq command to firmware. It's incorrect, because this return value is used as the mac link status, which 0 means link down, and none-zero means link up. This patch fixes it by changing the return value to 0. Feature or Bugfix:Bugfix Signed-off-by: Nshenjian (K) <shenjian15@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录