]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refine the definition for struct hclge_pf_to_vf_msg
authorJian Shen <shenjian15@huawei.com>
Tue, 19 Apr 2022 03:27:03 +0000 (11:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 09:45:50 +0000 (10:45 +0100)
commit01486ba8a2239488357e85b43b823752f3416a0d
tree7bbfee998e41c58baf61a902db1891327bae7dad
parent12f5778b9ecf9160fcf4788d75ba00612ef6095f
net: hns3: refine the definition for struct hclge_pf_to_vf_msg

The struct hclge_pf_to_vf_msg is used for mailbox message from
PF to VF, including both response and request. But its definition
can only indicate respone, which makes the message data copy in
function hclge_send_mbx_msg() unreadable. So refine it by edding
a general message definition into it.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@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