]> 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)
commit2d0ccffad7eaa3d6b98ab2dc088ad29fde4fef44
treed8e84a2ba3f2621b5d67a1d96d6c3a2637ca3d44
parentaafd6d4e075924cea0d75624d285ae017371a379
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