aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorJian Shen <[email protected]>2020-07-21 19:03:54 +0800
committerDavid S. Miller <[email protected]>2020-07-21 15:49:17 -0700
commitfac24df7b9a6d9363abdff0e351ade041dd16daa (patch)
treeff1acbbdb6dd2cce0b09e147859c3394526d59fb /lib/mpi/mpi-cmp.c
parent8ceca59fb3ed48a693171bd571c4fcbd555b7f1f (diff)
net: hns3: fix return value error when query MAC link status fail
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. So fixes it. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Huazhong tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions