net: hns3: Add timeout process in hns3_enet
authorLipeng <lipeng321@huawei.com>
Thu, 2 Nov 2017 12:45:20 +0000 (20:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 12:28:35 +0000 (21:28 +0900)
commitf8fa222ca57cccb066d18767010275e9e3a2b9fe
tree1da960a63c4b23c8e84991d42480cf33be4e1453
parent4ed340ab8f49275a83337cb66e8f53e544f34674
net: hns3: Add timeout process in hns3_enet

This patch add timeout handler in hns3_enet.c to handle
TX side timeout event, when TX timeout event occur, it will triger
NIC driver into reset process.

Signed-off-by: qumingguang <qumingguang@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h