net: hns3: Add support to reset the enet/ring mgmt layer
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 22 Mar 2018 14:28:56 +0000 (14:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:29:04 +0000 (15:29 -0400)
commit6988eb2a9b7772d57b1d09bdf769db4c697869ea
treebdb1dba046f17241e0bf998b0ef56e630ef5ec8d
parenta8dedb65926005e99ab23716b1c77586de83c4f4
net: hns3: Add support to reset the enet/ring mgmt layer

After VF driver knows that hardware reset has been performed
successfully, it should proceed ahead and reset the enet layer.
This primarily consists of bringing down interface, clearing
TX/RX rings, disassociating vectors from ring etc.

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