]> 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)
commitf42a1ee738512f68f3f4e2b1f382f8b5ea1ba69a
tree7bbfee998e41c58baf61a902db1891327bae7dad
parentc9f8750fb78076acb385d497523f298d38011055
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