net: hns3: reset tqp while doing DOWN operation
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 20 Dec 2018 03:52:02 +0000 (11:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Dec 2018 07:47:58 +0000 (23:47 -0800)
commit39cfbc9c4fc4a2888548c2624789e42e3f775721
treee81da4b3b4bfb79906efdde5e572b3eab85f54f4
parent75edb610860fda65ceedb017fc69afabd2806b8b
net: hns3: reset tqp while doing DOWN operation

While doing DOWN operation, the driver will reclaim the memory which has
already used for TX. If the hardware is processing this memory, it will
cause a RCB error to the hardware. According the hardware's description,
the driver should reset the tqp before reclaim the memory during DOWN.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@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/hns3vf/hclgevf_main.c