]> 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:43:35 +0000 (06:43 -0700)
commite88bd7e3df92ce0e6fb62ee716c9f4c845c7c763
tree52e93bdc94917b239375d612d4ebd113ad9a020a
parent930d69e957979cb4dd52baf2be667f07e25d9762
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