net: hns3: add cmdq check for vf periodic service task
authorJie Wang <wangjie125@huawei.com>
Mon, 18 Sep 2023 07:48:36 +0000 (15:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:40 +0000 (14:56 +0200)
commit430f18eed1c1b255cc3e51e0820f4cd6f2898827
treee3539e8035ee08b995a677fc7d76085547a8fc27
parentadbcec23c8423e3d5df1839c5ae91599dcf703cb
net: hns3: add cmdq check for vf periodic service task

[ Upstream commit bd3caddf299a640efb66c6022efed7fe744db626 ]

When the vf cmdq is disabled, there is no need to keep these task running.
So this patch skip these task when the cmdq is disabled.

Fixes: ff200099d271 ("net: hns3: remove unnecessary work in hclgevf_main")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c