net: hns3: provide .get_cmdq_stat interface for the client
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 9 May 2020 09:27:39 +0000 (17:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 May 2020 02:43:22 +0000 (19:43 -0700)
commita4de02287abb9947336dfdccc83f6c0cc182e7d9
tree527bf626f850c146bd11f99a68b7d4f964d32f88
parent4279b4d5ec9c58f63fde23b2d86de4a1e494dc06
net: hns3: provide .get_cmdq_stat interface for the client

This patch provides a new interface for the client to query
whether CMDQ is ready to work.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c