aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h
diff options
context:
space:
mode:
authorLipeng <lipeng321@huawei.com>2017-11-02 20:45:20 +0800
committerDavid S. Miller <davem@davemloft.net>2017-11-02 21:28:35 +0900
commitf8fa222ca57cccb066d18767010275e9e3a2b9fe (patch)
tree1da960a63c4b23c8e84991d42480cf33be4e1453 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h
parentnet: hns3: Add reset process in hclge_main (diff)
downloadlinux-dev-f8fa222ca57cccb066d18767010275e9e3a2b9fe.tar.xz
linux-dev-f8fa222ca57cccb066d18767010275e9e3a2b9fe.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h
index 58dc30bf893c..8a9de759957b 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h
@@ -518,6 +518,8 @@ struct hns3_nic_priv {
/* The most recently read link state */
int link;
u64 tx_timeout_count;
+ enum hnae3_reset_type reset_level;
+ unsigned long last_reset_time;
unsigned long state;