]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add *Asserting Reset* mailbox message & handling in VF
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 22 Mar 2018 14:28:59 +0000 (14:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:29:04 +0000 (15:29 -0400)
commitaafd6d4e075924cea0d75624d285ae017371a379
tree4e44ede6cf24829b3c73c4ac1c544f83046882c3
parent447940e77c8fde0350b4dd10156654aed1b59eb4
net: hns3: Add *Asserting Reset* mailbox message & handling in VF

Reset Asserting message is forwarded by PF to inform VF about
the hardware reset which is about to happen. This might be due
to the earlier VF reset request received by the PF or because PF
for any reason decides to undergo reset. This message results in
VF to go in pending state in which it polls the hardware to
complete the reset and then further resets/tears its own stack.

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