net: hns3: Add support to re-initialize the hclge device
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 22 Mar 2018 14:28:57 +0000 (14:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:29:04 +0000 (15:29 -0400)
commit7a01c89723301c343f75862098e4fa0885b75b3b
treed6e8b3a76fabbe365d4dfcc6347b963114b38747
parent6988eb2a9b7772d57b1d09bdf769db4c697869ea
net: hns3: Add support to re-initialize the hclge device

After the hardware reset we should re-fetch the configuration from
PF like queue info and tc info. This might have impact on allocations
made like that of TQPs. Hence, we should release all such allocations
and re-allocate fresh according to new fetched configuration after
reset.

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