]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1ee76c0e821288792f010369946f76b1c016830
treed6e8b3a76fabbe365d4dfcc6347b963114b38747
parent396acb0485ed9718dadac2dbaa2dd12e69a545fc
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