]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: fix keep_alive_timer not stop problem
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:36 +0000 (15:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:08 +0000 (06:45 -0700)
commitcc1ac79257c28dcb4154976bc7b82c863b63c418
treebe7c18c8aab8ff4614fa9a0603a36e82a8ca8636
parentde48733de46bb4b08307734e361b869691ed32fd
net: hns3: fix keep_alive_timer not stop problem

[ Upstream commit e233516e6a92baeec20aa40fa5b63be6b94f1627 ]

When hclgevf_client_start() fails or VF driver unloaded, there is
nobody to disable keep_alive_timer.

So this patch fixes them.

Fixes: a6d818e31d08 ("net: hns3: Add vport alive state checking support")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c