net: hns3: package new functions to simplify hclgevf_mbx_handler code
authorPeng Li <lipeng321@huawei.com>
Fri, 27 Aug 2021 09:28:22 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 10:20:21 +0000 (11:20 +0100)
commitd7517f8f6b3b12c883ca0975659450ae009b1524
tree428a73cd1b68ab5d8fa9cb4db26e358cc1c560a9
parent5f22a80f32deed391011f7ab3ce8951ea89282f8
net: hns3: package new functions to simplify hclgevf_mbx_handler code

This patch packages two new function to simplify the function
hclgevf_mbx_handler, and it can reduce the code cycle complexity
and make code more concise.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c