summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2018-01-12 16:23:07 +0800
committerDavid S. Miller <davem@davemloft.net>2018-01-12 10:12:31 -0500
commit849e460776898e465e2d3e27a34399fb1adc0061 (patch)
tree1c4a8132c9795ddcf907ac5b691f734957f105d0 /drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
parent19d28fbd306e7ae7c1acf05c3e6968b56f0d196b (diff)
downloadlwn-849e460776898e465e2d3e27a34399fb1adc0061.tar.gz
lwn-849e460776898e465e2d3e27a34399fb1adc0061.zip
net: hns3: add ethtool_ops.get_channels support for VF
This patch supports the ethtool's get_channels() for VF. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
index d3cb3ec2c62b..f44336c6acb8 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
@@ -900,6 +900,7 @@ static const struct ethtool_ops hns3vf_ethtool_ops = {
.get_rxfh = hns3_get_rss,
.set_rxfh = hns3_set_rss,
.get_link_ksettings = hns3_get_link_ksettings,
+ .get_channels = hns3_get_channels,
};
static const struct ethtool_ops hns3_ethtool_ops = {