Skip to content

Commit

Permalink
net/hns3: fix mailbox error message
Browse files Browse the repository at this point in the history
[ upstream commit 871aa63 ]

The hns3_dev_handle_mbx_msg() could be called under both PF and VF,
but the error messages show VF.

Fixes: 109e4dd ("net/hns3: get link state change through mailbox")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and cpaelzer committed May 17, 2021
1 parent 6e41fc0 commit b13a99c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/hns3/hns3_mbx.c
Expand Up @@ -454,8 +454,7 @@ hns3_dev_handle_mbx_msg(struct hns3_hw *hw)
hns3_handle_link_change_event(hw, req);
break;
default:
hns3_err(hw,
"VF received unsupported(%d) mbx msg from PF",
hns3_err(hw, "received unsupported(%d) mbx msg",
req->msg[0]);
break;
}
Expand Down

0 comments on commit b13a99c

Please sign in to comment.