net: hns3: Changes required in PF mailbox to support VF reset
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 22 Mar 2018 14:29:00 +0000 (14:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:29:04 +0000 (15:29 -0400)
commit2bfbd35d8ecd97a4a7f1db1754908b54542fa7aa
treed8e84a2ba3f2621b5d67a1d96d6c3a2637ca3d44
parenta15fa7d43b0b625f018c4f0c5856f9061a6d4c82
net: hns3: Changes required in PF mailbox to support VF reset

PF needs to assert the VF reset when it receives the request to
reset from VF. After receiving request PF ackknowledges the
request by replying back MBX_ASSERTING_RESET message to VF.
VF then goes to pending state and wait for hardware to complete
the reset.

This patch contains code to handle the received VF message, inform
the VF of assertion and reset the VF using cmdq interface.

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c