]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita82f1048ed68d916a3d0ea0c2048904299bf26d9
treed8e84a2ba3f2621b5d67a1d96d6c3a2637ca3d44
parent1c740505ebd5558c726eaf7ce27942ee4454d8de
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