summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2017-12-22 12:21:40 +0800
committerDavid S. Miller <davem@davemloft.net>2017-12-27 10:40:10 -0500
commit482d2e9c1cc7c0e154464e3e052db09e5e62541f (patch)
tree227314fa34978ac3c759d6bd56410edf3a34ef4f /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parent214bb1c78a4dd94ba748f1707ecc70041abe1fd3 (diff)
downloadlwn-482d2e9c1cc7c0e154464e3e052db09e5e62541f.tar.gz
lwn-482d2e9c1cc7c0e154464e3e052db09e5e62541f.zip
net: hns3: add support to query tqps number
This patch adds the support to query tqps number for PF driver by using ehtool -l command. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Mingguang Qu <qumingguang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index a9e2b32834c5..d8877215723d 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -386,6 +386,8 @@ struct hnae3_ae_ops {
u16 vlan, u8 qos, __be16 proto);
void (*reset_event)(struct hnae3_handle *handle,
enum hnae3_reset_type reset);
+ void (*get_channels)(struct hnae3_handle *handle,
+ struct ethtool_channels *ch);
};
struct hnae3_dcb_ops {