net: hns3: refactor mailbox response scheme between PF and VF
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 18 Mar 2020 03:57:07 +0000 (11:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 03:22:25 +0000 (20:22 -0700)
commitbb5790b71bad6c14c8952e9c111aef84889e78ec
tree83a2d2d5c69524147329fa84c2138c53d137fb50
parentd3410018468562f43a58690c4d9e154e96bccf95
net: hns3: refactor mailbox response scheme between PF and VF

Currently, PF responds to VF depending on what mailbox it is
handling, it is a bit inflexible. The correct way is, PF should
check the mbx_need_resp field to decide whether gives response
to VF.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yufeng Mo <moyufeng@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_mbx.c