]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor the mailbox message between PF and VF
authorYufeng Mo <moyufeng@huawei.com>
Wed, 18 Mar 2020 03:57:06 +0000 (11:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 03:22:25 +0000 (20:22 -0700)
commit66f95ea3ecc34ce06dd332736f70543edc0ebd7d
tree492fca46e1822ae53a3c823417acc7c0bfbc06cf
parent5130998371c2e4c43b725b83548161d42a33704f
net: hns3: refactor the mailbox message between PF and VF

For making the code more readable, this adds several new
structure to replace the msg field in structure
hclge_mbx_vf_to_pf_cmd and hclge_mbx_pf_to_vf_cmd.
Also uses macro to instead of some magic number.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c