]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:22 +0000 (16:56 +0000)
commitbb0f14257c0462c74e5550496bd576ebd6df5173
tree34f3f4c3d4e4ade801ce41d294c0e23f6816485b
parent1d8f66d4060abd35ebb9e8f815283576caf476e3
net: hns3: refine the definition for struct hclge_pf_to_vf_msg

[ Upstream commit 6fde96df0447a29ab785de4fcb229e5543f0cbf7 ]

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>
Stable-dep-of: ac92c0a9a060 ("net: hns3: add barrier in vf mailbox reply process")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c